Home
last modified time | relevance | path

Searched refs:mAlert (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp35 : mAlert(alert), mConfigKey(configKey), mNumOfPastBuckets(mAlert.num_buckets() - 1) { in AnomalyTracker()
37 if (mAlert.num_buckets() <= 0) { in AnomalyTracker()
38 ALOGE("Cannot create AnomalyTracker with %lld buckets", (long long)mAlert.num_buckets()); in AnomalyTracker()
41 if (!mAlert.has_trigger_if_sum_gt()) { in AnomalyTracker()
206 return mAlert.has_trigger_if_sum_gt() && in detectAnomaly()
207 getSumOverPastBuckets(key) + currentBucketValue > mAlert.trigger_if_sum_gt(); in detectAnomaly()
218 if (mAlert.has_refractory_period_secs()) { in declareAnomaly()
220 + mAlert.refractory_period_secs(); in declareAnomaly()
228 mAlert.id(), key.toString().c_str()); in declareAnomaly()
234 StatsdStats::getInstance().noteAnomalyDeclared(mConfigKey, mAlert.id()); in declareAnomaly()
[all …]
DDurationAnomalyTracker.cpp68 declareAnomaly(timestampNs, mAlert.metric_id(), dimensionKey, in stopAlarm()
69 mAlert.trigger_if_sum_gt() + (timestampNs / NS_PER_SEC) - in stopAlarm()
106 timestampNs, mAlert.metric_id(), kv.first, in informAlarmsFired()
107 mAlert.trigger_if_sum_gt() + (timestampNs / NS_PER_SEC) - kv.second->timestampSec); in informAlarmsFired()
DAnomalyTracker.h94 return mAlert.trigger_if_sum_gt(); in getAnomalyThreshold()
126 const Alert mAlert; variable
/frameworks/base/core/java/com/android/internal/globalactions/
DActionsDialog.java31 private final AlertController mAlert; field in ActionsDialog
37 mAlert = AlertController.create(mContext, this, getWindow()); in ActionsDialog()
39 params.apply(mAlert); in ActionsDialog()
56 return mAlert.getListView(); in getListView()
62 mAlert.installContent(); in onCreate()
81 if (mAlert.onKeyDown(keyCode, event)) { in onKeyDown()
89 if (mAlert.onKeyUp(keyCode, event)) { in onKeyUp()
/frameworks/base/core/java/android/app/
DAlertDialog.java75 private AlertController mAlert; field in AlertDialog
208 mAlert = AlertController.create(getContext(), this, getWindow()); in AlertDialog()
243 return mAlert.getButton(whichButton); in getButton()
252 return mAlert.getListView(); in getListView()
258 mAlert.setTitle(title); in setTitle()
265 mAlert.setCustomTitle(customTitleView); in setCustomTitle()
269 mAlert.setMessage(message); in setMessage()
274 mAlert.setMessageMovementMethod(movementMethod); in setMessageMovementMethod()
280 mAlert.setMessageHyphenationFrequency(hyphenationFrequency); in setMessageHyphenationFrequency()
287 mAlert.setView(view); in setView()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DAlertActivity.java43 protected AlertController mAlert; field in AlertActivity
55 mAlert = AlertController.create(this, this, getWindow()); in onCreate()
98 mAlert.installContent(mAlertParams); in setupAlert()
103 if (mAlert.onKeyDown(keyCode, event)) return true; in onKeyDown()
109 if (mAlert.onKeyUp(keyCode, event)) return true; in onKeyUp()
DHarmfulAppWarningActivity.java79 mAlert.installContent(mAlertParams); in onCreate()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallSuccess.java72 mAlert.setIcon(as.icon); in onCreate()
73 mAlert.setTitle(as.label); in onCreate()
74 mAlert.setView(R.layout.install_content_view); in onCreate()
75 mAlert.setButton(DialogInterface.BUTTON_POSITIVE, getString(R.string.launch), null, in onCreate()
77 mAlert.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.done), in onCreate()
98 Button launchButton = mAlert.getButton(DialogInterface.BUTTON_POSITIVE); in onCreate()
DInstallFailed.java115 mAlert.setIcon(as.icon); in onCreate()
116 mAlert.setTitle(as.label); in onCreate()
117 mAlert.setView(R.layout.install_content_view); in onCreate()
118 mAlert.setButton(DialogInterface.BUTTON_POSITIVE, getString(R.string.done), in onCreate()
DInstallStaging.java61 mAlert.setIcon(R.drawable.ic_file_download); in onCreate()
62 mAlert.setTitle(getString(R.string.app_name_unknown)); in onCreate()
63 mAlert.setView(R.layout.install_content_view); in onCreate()
64 mAlert.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), in onCreate()
DInstallInstalling.java98 mAlert.setIcon(as.icon); in onCreate()
99 mAlert.setTitle(as.label); in onCreate()
100 mAlert.setView(R.layout.install_content_view); in onCreate()
101 mAlert.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), in onCreate()
176 mCancelButton = mAlert.getButton(DialogInterface.BUTTON_NEGATIVE); in onCreate()
DPackageInstallerActivity.java381 mAlert.setIcon(mAppSnippet.icon); in bindUi()
382 mAlert.setTitle(mAppSnippet.label); in bindUi()
383 mAlert.setView(R.layout.install_content_view); in bindUi()
384 mAlert.setButton(DialogInterface.BUTTON_POSITIVE, getString(R.string.install), in bindUi()
395 mAlert.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), in bindUi()
406 mOk = mAlert.getButton(DialogInterface.BUTTON_POSITIVE); in bindUi()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DConfirmDialog.java85 Button button = mAlert.getButton(DialogInterface.BUTTON_POSITIVE); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDebuggingActivity.java108 mAlert.getButton(BUTTON_POSITIVE).setOnTouchListener(filterTouchListener); in onCreate()