/packages/modules/StatsD/statsd/tests/ |
D | AlarmMonitor_test.cpp | 27 AlarmMonitor am(2, in TEST() local 31 set = am.popSoonerThan(5); in TEST() 41 am.add(a); in TEST() 42 am.add(b); in TEST() 43 am.add(c); in TEST() 44 am.add(d); in TEST() 45 am.add(e); in TEST() 46 am.add(f); in TEST() 48 set = am.popSoonerThan(5); in TEST() 51 set = am.popSoonerThan(30); in TEST() [all …]
|
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | StatsdAuthenticator.java | 65 final AccountManager am = context.getSystemService(AccountManager.class); in ensureTestAccount() local 67 if (!Arrays.asList(am.getAccountsByType(account.type)).contains(account) ){ in ensureTestAccount() 68 am.addAccountExplicitly(account, "password", new Bundle()); in ensureTestAccount() 76 final AccountManager am = context.getSystemService(AccountManager.class); in removeAllAccounts() local 78 for (Account account : am.getAccountsByType(ACCOUNT_TYPE)) { in removeAllAccounts() 80 am.removeAccountExplicitly(account); in removeAllAccounts()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/ |
D | AccessibilityFragment.java | 81 AccessibilityManager am = (AccessibilityManager) in onStop() local 83 if (am != null && mServicesPref != null) { in onStop() 84 am.removeAccessibilityStateChangeListener(mAccessibilityStateChangeListener); in onStop() 100 AccessibilityManager am = (AccessibilityManager) in onCreatePreferences() local 102 if (am != null) { in onCreatePreferences() 103 am.addAccessibilityStateChangeListener(mAccessibilityStateChangeListener); in onCreatePreferences()
|
/packages/services/Car/tools/perf/janky-frame-test/ |
D | janky-frame-test.sh | 70 adb shell am start -n ${NON_MAP_ACTIVITY} &> /dev/null 73 adb shell am force-stop ${MAP_PACKAGE} &> /dev/null 74 adb shell am start -n ${MAP_ACTIVITY} &> /dev/null 140 adb shell am start -n ${CAR_ACTIVITY} &> /dev/null
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | ActivityManagers.java | 28 final ActivityManager am = Mockito.mock(ActivityManager.class); in create() local 29 Mockito.when(am.isLowRamDevice()).thenReturn(lowRamDevice); in create() 30 return am; in create()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AccountsFragment.java | 97 final AccountManager am = AccountManager.get(getContext()); in updateAccounts() local 98 final AuthenticatorDescription[] authTypes = am.getAuthenticatorTypes(); in updateAccounts() 111 Account[] accounts = am.getAccountsByType(authDesc.type); in updateAccounts() 184 final AccountManager am = AccountManager.get(context); in setUpAddAccountPrefIntent() local 185 final AuthenticatorDescription[] authTypes = am.getAuthenticatorTypes(); in setUpAddAccountPrefIntent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | AccessibilityUtils.java | 40 AccessibilityManager am = (AccessibilityManager) ctx.getSystemService( in makeAnnouncement() local 42 if (!am.isEnabled()) return; in makeAnnouncement() 51 am.sendAccessibilityEvent(event); in makeAnnouncement()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | TouchSoundPreferenceController.java | 44 final AudioManager am = in TouchSoundPreferenceController() 47 am.loadSoundEffects(); in TouchSoundPreferenceController() 49 am.unloadSoundEffects(); in TouchSoundPreferenceController()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCountryCode.java | 452 for (ActiveModeManager am : amms) { in setCountryCodeNative() 453 if (!isConcreteClientModeManagerUpdated && am instanceof ConcreteClientModeManager) { in setCountryCodeNative() 457 ConcreteClientModeManager cm = (ConcreteClientModeManager) am; in setCountryCodeNative() 470 } else if (am instanceof SoftApManager) { in setCountryCodeNative() 480 SoftApManager sm = (SoftApManager) am; in setCountryCodeNative()
|
/packages/apps/Car/libs/car-messenger-common/tests/unit/ |
D | README.md | 13 `adb shell am instrument -w com.android.car.messenger.common.tests.unit` 17 `adb shell am instrument -w -e class com.android.car.messenger.common.<classPath> com.android.car.m… 21 `adb shell am instrument -w -e class com.android.car.messenger.common.<classPath>#<testMethod> com.…
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/ |
D | SetupGuidedStepFragment.java | 115 AccessibilityManager am = in onResume() local 117 mAccessibilityMode = am != null && am.isEnabled() && am.isTouchExplorationEnabled(); in onResume()
|
/packages/apps/Traceur/uitests/ |
D | README | 8 $ adb shell am instrument -w com.android.traceur.uitest/android.support.test.runner.AndroidJUnitRun… 11 $ adb shell am instrument -w -e class com.android.traceur.uitest.<class> 15 $ adb shell am instrument -w -e class com.android.traceur.uitest.<class>#<test>
|
/packages/apps/StorageManager/tests/unit/ |
D | README | 8 $ adb shell am instrument -w com.android.storagemanager.tests.unit/androidx.test.runner.AndroidJUni… 11 $ adb shell am instrument -w -e class com.android.storagemanager.<class> com.android.storagemanager… 14 $ adb shell am instrument -w -e class com.android.storagemanager.<class>#<test> com.android.storage…
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | PasswordUtils.java | 83 IActivityManager am = ActivityManager.getService(); in crashCallingApplication() local 85 int uid = am.getLaunchedFromUid(activityToken); in crashCallingApplication() 87 am.crashApplication( in crashCallingApplication()
|
/packages/apps/TV/tests/tunerscripts/ |
D | usbtuner-test.sh | 40 adb shell am force-stop com.android.tv 41 adb shell am start -n com.android.tv/.MainActivity > /dev/null 88 adb shell am start com.android.tv.settings/com.android.tv.settings.MainSettings
|
/packages/providers/MediaProvider/ |
D | logging.sh | 34 adb shell am force-stop com.android.providers.media 35 adb shell am force-stop com.android.providers.media.module 36 adb shell am force-stop com.google.android.providers.media.module
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | AccessibilityContextMenuMaker.java | 113 AccessibilityManager am = mActivity.getSystemService(AccessibilityManager.class); in isScreenReaderEnabled() local 114 return am.isEnabled() && am.isTouchExplorationEnabled(); in isScreenReaderEnabled()
|
/packages/apps/Settings/tests/unit/ |
D | README | 20 $ adb shell am instrument -w com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner 23 $ adb shell am instrument -w -e class com.android.settings.<class> com.android.settings.tests.unit/… 26 $ adb shell am instrument -w -e class com.android.settings.<class>#<test> com.android.settings.test…
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/ |
D | MainFragmentTest.java | 233 ShadowAccountManager am = extract(AccountManager.get(RuntimeEnvironment.application)); in testUpdateAccountPrefInfo_hasOneAccount() local 234 am.addAccount(new Account("test", "test")); in testUpdateAccountPrefInfo_hasOneAccount() 265 ShadowAccountManager am = extract(AccountManager.get(RuntimeEnvironment.application)); in testUpdateAccountPrefInfo_hasMoreThanOneAccount() local 266 am.addAccount(new Account("test", "test")); in testUpdateAccountPrefInfo_hasMoreThanOneAccount() 267 am.addAccount(new Account("test2", "test2")); in testUpdateAccountPrefInfo_hasMoreThanOneAccount()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.kt | 294 val am = context.getSystemService(Context.ALARM_SERVICE) as AlarmManager in getNextAlarmLOrLater() constant 295 val info = getNextAlarmClock(am) in getNextAlarmLOrLater() 307 private fun getNextAlarmClock(am: AlarmManager): AlarmClockInfo? { in getNextAlarmClock() 308 return am.nextAlarmClock in getNextAlarmClock() 312 fun updateNextAlarm(am: AlarmManager, info: AlarmClockInfo?, op: PendingIntent?) { in updateNextAlarm() 313 am.setAlarmClock(info, op) in updateNextAlarm()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkDialogActivity.java | 338 AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in cancelTimeOut() local 339 am.cancel(mAlarmListener); in cancelTimeOut() 365 AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in startTimeOut() local 366 am.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, mAlarmTime, DIALOG_ALARM_TAG, in startTimeOut()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStorageSettings.java | 369 ActivityManager am = (ActivityManager) in initiateClearUserData() local 373 res = am.clearApplicationUserData(packageName, mClearDataObserver); in initiateClearUserData() 409 ActivityManager am = (ActivityManager) getActivity().getSystemService( in refreshGrantedUriPermissions() local 412 am.getGrantedUriPermissions(mAppEntry.info.packageName).getList(); in refreshGrantedUriPermissions() 468 final ActivityManager am = (ActivityManager) context.getSystemService( in clearUriPermissions() local 470 am.clearGrantedUriPermissions(packageName); in clearUriPermissions()
|
/packages/apps/TV/src/com/android/tv/license/ |
D | LicenseUtils.java | 28 public static boolean hasRatingAttribution(AssetManager am) { in hasRatingAttribution() argument 29 try (InputStream is = am.open("rating_sources.html")) { in hasRatingAttribution()
|
/packages/apps/DocumentsUI/ |
D | wrap_alpha.py | 37 am = src.endswith("_am") variable 38 if am:
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | ActivityManagerCompatUtils.java | 38 final ActivityManager am = in isLowRamDevice() local 40 sBoolean = (Boolean)CompatUtils.invoke(am, false, METHOD_isLowRamDevice); in isLowRamDevice()
|