/frameworks/base/cmds/statsd/src/anomaly/ |
D | AnomalyTracker.cpp | 38 : mAlert(alert), mConfigKey(configKey), mNumOfPastBuckets(mAlert.num_buckets() - 1) { in AnomalyTracker() 40 if (mAlert.num_buckets() <= 0) { in AnomalyTracker() 41 ALOGE("Cannot create AnomalyTracker with %lld buckets", (long long)mAlert.num_buckets()); in AnomalyTracker() 44 if (!mAlert.has_trigger_if_sum_gt()) { in AnomalyTracker() 209 return mAlert.has_trigger_if_sum_gt() && in detectAnomaly() 210 getSumOverPastBuckets(key) + currentBucketValue > mAlert.trigger_if_sum_gt(); in detectAnomaly() 221 if (mAlert.has_refractory_period_secs()) { in declareAnomaly() 223 + mAlert.refractory_period_secs(); in declareAnomaly() 231 mAlert.id(), key.toString().c_str()); in declareAnomaly() 237 StatsdStats::getInstance().noteAnomalyDeclared(mConfigKey, mAlert.id()); in declareAnomaly() [all …]
|
D | DurationAnomalyTracker.cpp | 68 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()
|
D | AnomalyTracker.h | 93 return mAlert.trigger_if_sum_gt(); in getAnomalyThreshold() 136 const Alert mAlert; variable
|
/frameworks/base/core/java/com/android/internal/globalactions/ |
D | ActionsDialog.java | 31 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/ |
D | AlertDialog.java | 75 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/ |
D | AlertActivity.java | 47 protected AlertController mAlert; field in AlertActivity 59 mAlert = AlertController.create(this, this, getWindow()); in onCreate() 102 mAlert.installContent(mAlertParams); in setupAlert() 107 if (mAlert.onKeyDown(keyCode, event)) return true; in onKeyDown() 113 if (mAlert.onKeyUp(keyCode, event)) return true; in onKeyUp()
|
D | HarmfulAppWarningActivity.java | 79 mAlert.installContent(mAlertParams); in onCreate()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallSuccess.java | 72 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()
|
D | InstallFailed.java | 115 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()
|
D | InstallStaging.java | 61 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()
|
D | InstallInstalling.java | 98 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()
|
D | PackageInstallerActivity.java | 380 mAlert.setIcon(mAppSnippet.icon); in bindUi() 381 mAlert.setTitle(mAppSnippet.label); in bindUi() 382 mAlert.setView(R.layout.install_content_view); in bindUi() 383 mAlert.setButton(DialogInterface.BUTTON_POSITIVE, getString(R.string.install), in bindUi() 394 mAlert.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), in bindUi() 405 mOk = mAlert.getButton(DialogInterface.BUTTON_POSITIVE); in bindUi() 409 mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).requestFocus(); in bindUi()
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
D | ConfirmDialog.java | 96 Button button = mAlert.getButton(DialogInterface.BUTTON_POSITIVE); in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/ |
D | WifiDebuggingActivity.java | 121 mAlert.getButton(BUTTON_POSITIVE).setOnTouchListener(filterTouchListener); in onCreate()
|