本文整理汇总了Java中com.splunk.mint.Mint.logEvent方法的典型用法代码示例。如果您正苦于以下问题:Java Mint.logEvent方法的具体用法?Java Mint.logEvent怎么用?Java Mint.logEvent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.splunk.mint.Mint
的用法示例。
在下文中一共展示了Mint.logEvent方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onIabPurchaseFinished
import com.splunk.mint.Mint; //导入方法依赖的package包/类
public void onIabPurchaseFinished(IabResult result, Purchase purchase) {
if (mHelper == null) {
return;
}
if (result.isFailure()) {
complain("Error purchasing: " + result.getMessage());
return;
}
if (!verifyDeveloperPayload(purchase)) {
complain("Error purchasing. Authenticity verification failed.");
return;
}
String sku = purchase.getSku();
mInventorySet.add(sku);
if (listener != null) {
listener.onQueryFinished(mInventorySet);
}
Mint.logEvent("pro_user");
initBilling();
}
示例2: accept
import com.splunk.mint.Mint; //导入方法依赖的package包/类
/**
*
*/
public Bundle accept() {
Util.hideKeyboard(editName);
customProbe.setName(editName.getText().toString());
customProbe.setDescription(editDescription.getText().toString());
customProbe.setFooter(editFooter.getText().toString());
customProbe.getProbeInfo().applyBePattern(editBe.getText().toString());
customProbe.getProbeInfo().applyProbePattern(editAttrs.getText().toString());
customProbe.setValue(Util.parseInteger(editValue.getText().toString()));
customProbe.setProbeType((ProbeType) editProbeType.getSelectedItem());
customProbe.setModificatorType((ModificatorType) editModType.getSelectedItem());
customProbe.setIconUri(iconUri);
if (Intent.ACTION_INSERT.equals(getActivity().getIntent().getAction())) {
DsaTabApplication.getInstance().getHero().getHeroConfiguration().addCustomProbe(customProbe);
}
Mint.logEvent("Save CustomProbe", MintLogLevel.Info,"Name",customProbe.getName());
Bundle data = new Bundle();
// TODO fill data
return data;
}
示例3: accept
import com.splunk.mint.Mint; //导入方法依赖的package包/类
public Bundle accept() {
Bundle data = new Bundle();
Bundle extra = getExtra();
if (extra != null) {
data.putSerializable(INTENT_ID, extra.getSerializable(INTENT_ID));
}
String name = etName.getText().toString();
String comment = etComment.getText().toString();
String rules = etRules.getText().toString();
if (TextUtils.isEmpty(rules)) {
etRules.setError(getString(R.string.mandatory));
return null;
}
data.putString(INTENT_NAME, name);
data.putString(INTENT_COMMENT, comment);
data.putString(INTENT_RULES, rules);
data.putBoolean(INTENT_ACTIVE, cbActive.isChecked());
Mint.logEvent("Save Modificator", MintLogLevel.Info,"Name",name);
return data;
}
示例4: onCreate
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// released:
Mint.initAndStartSession(DogWord.this, "39338683");
// testing:
// Mint.initAndStartSession(this, "7de6e2e0");
Mint.logEvent("Start");
setContentView(R.layout.activity_bog_word);
gridLayout = (CellGridLayout) findViewById(R.id.grid);
displayArea = (TextView) findViewById(R.id.display);
progressArea = (TextView) findViewById(R.id.progress);
gridLayout.setCanvasView((CanvasView) findViewById(R.id.canvas));
try {
// load the dictionary
// Our dictionary is WORDS trimmed down to words that occurred at least 500 times
// in the Google Books corpus in 2008, plus more obscure words, proper names,
// abbreviations removed by other means.
if (dictionary == null) {
dictionary = LetterTree.read(new DataInputStream(getResources().openRawResource(R.raw.words)));
}
} catch (IOException e) {
throw new RuntimeException("failed to read dictionary");
}
wordFinder = new GridWordFinder(dictionary);
if (savedInstanceState != null) {
onRestoreGame(savedInstanceState);
} else {
onNewGame();
}
}
示例5: publish
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public void publish(EventPayload eventPayload) {
HashMap<String, Object> payload = new HashMap<>();
payload.put("deviceId", deviceIdentifier);
payload.put("log", eventPayload.getPayload());
Mint.logEvent("EMM Logs", MintLogLevel.Info, payload);
}
示例6: onIabPurchaseFinished
import com.splunk.mint.Mint; //导入方法依赖的package包/类
public void onIabPurchaseFinished(IabResult result, Purchase purchase) {
if (mHelper == null) {
return;
}
if (result.isFailure()) {
complain("Error purchasing: " + result);
setWaitScreen(false);
return;
}
if (!verifyDeveloperPayload(purchase)) {
complain("Error purchasing. Authenticity verification failed.");
setWaitScreen(false);
return;
}
if (purchase == null) {
return;
}
String sku = purchase.getSku();
mInventorySet.add(sku);
if (!sku.equals("donation_1") && getActivity() != null) {
AppSettings.getInstance().setPro(getActivity(), true);
}
if (!BuildConfig.DEBUG) {
Mint.logEvent("donated");
}
}
示例7: setName
import com.splunk.mint.Mint; //导入方法依赖的package包/类
public void setName(String name) {
name = name.trim();
this.info = DataManager.getSpellByName(name);
if (info == null) {
Mint.logEvent("Spell unknown", MintLogLevel.Warning,"Name",name);
info = new SpellInfo();
info.setName(name);
}
}
示例8: fillAdvantages
import com.splunk.mint.Mint; //导入方法依赖的package包/类
/**
* @param heldElement
*/
private static void fillAdvantages(AbstractBeing being, Element heldElement) {
List<Element> list = new ArrayList<Element>();
list.addAll(DomUtil.getChildrenByTagName(heldElement, Xml.KEY_VT, Xml.KEY_VORTEIL));
list.addAll(DomUtil.getChildrenByTagName(heldElement, Xml.KEY_VORTEILE, Xml.KEY_VORTEIL));
for (Element element : list) {
FeatureType featureType = null;
String name = null;
try {
name = element.getAttributeValue(Xml.KEY_NAME).trim();
featureType = FeatureType.byXmlName(name);
} catch (FeatureTypeUnknownException e) {
Mint.logEvent("Unknown FeatureType", MintLogLevel.Warning, "Name", name);
continue;
}
if (featureType != null) {
Feature adv = new Feature(featureType);
String value = element.getAttributeValue(Xml.KEY_VALUE);
if (!TextUtils.isEmpty(value)) {
adv.addValue(value);
}
adv.setComment(element.getAttributeValue(Xml.KEY_COMMENT));
List<Element> auswahls = element.getChildren(Xml.KEY_AUSWAHL);
if (auswahls != null) {
for (Element auswahl : auswahls) {
adv.addValue(auswahl.getAttributeValue(Xml.KEY_VALUE));
}
}
being.addFeature(adv);
}
}
}
示例9: fileMintReport
import com.splunk.mint.Mint; //导入方法依赖的package包/类
private void fileMintReport () {
HashMap<String,Object> report = new HashMap<>();
report.put("grid", gridLayout.getGrid().toString());
Mint.logEvent("GameOver", MintLogLevel.Info, "grid", gridLayout.toString());
Mint.logEvent("GameOver", MintLogLevel.Info, report);
}
示例10: onOptionsItemSelected
import com.splunk.mint.Mint; //导入方法依赖的package包/类
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
Intent browserIntent = null;
switch (id) {
case R.id.my_apps:
if (!BuildConfig.DEBUG) {
Mint.logEvent("clicked_my_apps");
}
browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/search?q=pub%3AKozaxinan"));
break;
case R.id.xda:
if (!BuildConfig.DEBUG) {
Mint.logEvent("xdaforum");
}
browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://forum.xda-developers.com/oneplus-one/general/app-notification-panel-problem-phone-t2999061/"));
break;
case R.id.oneplus:
if (!BuildConfig.DEBUG) {
Mint.logEvent("oneplusforum");
}
browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://forums.oneplus.net/threads/fix-app-notification-panel-opening-problem-during-phone-call.186588/"));
break;
case R.id.ads:
if (mInterstitialAd.isLoaded()) {
mInterstitialAd.show();
AppSettings.getInstance().resetTry(MainActivity.this);
} else {
Toast.makeText(MainActivity.this, "Please try later. :)", Toast.LENGTH_SHORT)
.show();
}
requestNewInterstitial();
break;
case R.id.policy:
browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://cdn.rawgit.com/kozaxinan/127bc6197cf74ea8e363fe6633253550/raw/0100a0ce5fa8a4fa4bab4ba434338b44881a355f/policy.html"));
startActivity(browserIntent);
break;
}
if (browserIntent != null) {
startActivity(browserIntent);
}
// Feedback.with(this).checkMenu(item, this);
return super.onOptionsItemSelected(item);
}
示例11: setName
import com.splunk.mint.Mint; //导入方法依赖的package包/类
protected void setName(String name) {
name = name.trim();
setGroupType(ArtGroupType.getTypeOfArt(name));
String origName = name;
if (groupType != null) {
name = groupType.truncateName(name);
} else {
Mint.logEvent("Unknown Art GroupType", MintLogLevel.Warning,"Name",name);
}
String grade = null;
// we have a grade specification in the name: Erdsegen (III)
if (name.endsWith(")")) {
grade = name.substring(name.lastIndexOf("(") + 1);
grade = grade.substring(0, grade.length() - 1);
// we acutally found a grade (I)
if (Util.gradeToInt(grade) >= 0) {
name = name.substring(0, name.lastIndexOf("(")).trim();
} else {
grade = null;
}
}
// TODO Check for art that do not have a grade on first grade. to get
// loaded right!!!
if (grade == null) {
info = DataManager.getArtByName(origName);
if (info == null) {
info = DataManager.getArtByName(name);
}
if (info == null) {
info = DataManager.getArtLikeName(name);
}
} else {
info = DataManager.getArtByNameAndGrade(name, grade);
if (info == null) {
info = DataManager.getArtByNameAndGrade(origName, grade);
}
if (info == null) {
info = DataManager.getArtLikeNameAndGrade(name, grade);
}
}
if (info == null) {
info = new ArtInfo();
info.setName(name);
if (grade != null) {
info.setGrade(Util.gradeToInt(grade));
}
HashMap customData = new HashMap(2);
customData.put("Name" , name);
customData.put("Grade" , grade);
Mint.logEvent("Unknown Art", MintLogLevel.Warning, customData);
}
setProbePattern(info.getProbe());
if (probeInfo.getErschwernis() == null && info.getGrade() > 0) {
probeInfo.setErschwernis(info.getGrade() * 2 - 2);
}
}