Home
last modified time | relevance | path

Searched refs:am (Results 1 – 25 of 216) sorted by relevance

123456789

/packages/modules/StatsD/statsd/tests/
DAlarmMonitor_test.cpp27 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/
DStatsdAuthenticator.java65 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/DocumentsUI/tests/common/com/android/documentsui/testing/
DActivityManagers.java28 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/services/Car/tools/perf/janky-frame-test/
Djanky-frame-test.sh70 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/modules/Bluetooth/tools/rootcanal/desktop/
Droot_canal_main.cc133 [](AsyncManager* am, int port) { in main() argument
134 return std::make_shared<PosixAsyncSocketServer>(port, am); in main()
136 [](AsyncManager* am) { in main() argument
137 return std::make_shared<PosixAsyncSocketConnector>(am); in main()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxMetricsHostTest/sdkprovider/src/com/android/tests/sdkprovider/crashtest/
DCrashTestSandboxedSdkProvider.java51 final ActivityManager am = mContext.getSystemService(ActivityManager.class); in getSdkSandboxExitReasons() local
52 if (am == null) { in getSdkSandboxExitReasons()
55 return am.getHistoricalProcessExitReasons( in getSdkSandboxExitReasons()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DAccessibilityUtils.java40 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/
DTouchSoundPreferenceController.java44 final AudioManager am = in TouchSoundPreferenceController()
47 am.loadSoundEffects(); in TouchSoundPreferenceController()
49 am.unloadSoundEffects(); in TouchSoundPreferenceController()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/accessibility/
DAccessibilityState.java102 AccessibilityManager am = (AccessibilityManager) in onCreate() local
104 if (am != null) { in onCreate()
105 am.addAccessibilityStateChangeListener(mAccessibilityStateChangeListener); in onCreate()
126 AccessibilityManager am = (AccessibilityManager) in onStop() local
128 if (am != null && mServicesPref != null) { in onStop()
129 am.removeAccessibilityStateChangeListener(mAccessibilityStateChangeListener); in onStop()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityButtonPreviewPreferenceController.java84 final AccessibilityManager am = mContext.getSystemService(AccessibilityManager.class); in onResume() local
85 am.addTouchExplorationStateChangeListener(mTouchExplorationStateChangeListener); in onResume()
100 final AccessibilityManager am = mContext.getSystemService(AccessibilityManager.class); in onPause() local
101 am.removeTouchExplorationStateChangeListener(mTouchExplorationStateChangeListener); in onPause()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/
DAccessibilityFragment.java125 AccessibilityManager am = (AccessibilityManager) in onStop() local
127 if (am != null) { in onStop()
128 am.removeAccessibilityStateChangeListener(mAccessibilityStateChangeListener); in onStop()
167 AccessibilityManager am = (AccessibilityManager) in onCreatePreferences() local
169 if (am != null) { in onCreatePreferences()
170 am.addAccessibilityStateChangeListener(mAccessibilityStateChangeListener); in onCreatePreferences()
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java49 public ForegroundUtils(ActivityManager am) { in ForegroundUtils() argument
50 mActivityManager = am; in ForegroundUtils()
70 public static ForegroundUtils getInstance(ActivityManager am) { in getInstance() argument
72 Singleton.sInstance = new ForegroundUtils(am); in getInstance()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/content/pm/
DPackageManagerHelper.java184 ActivityManager am = context.getSystemService(ActivityManager.class); in forceStopPackageAsUser() local
185 am.forceStopPackageAsUser(packageName, userId); in forceStopPackageAsUser()
191 ActivityManager am = context.getSystemService(ActivityManager.class); in forceStopPackageAsUserEvenWhenStopping() local
192 am.forceStopPackageAsUserEvenWhenStopping(packageName, userId); in forceStopPackageAsUserEvenWhenStopping()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/
DVolumeChangePreferenceFragment.java131 AudioManager am = getContext().getSystemService(AudioManager.class); in commit()
132 final int minIndex = am.getStreamMinVolume(AudioManager.STREAM_MUSIC); in commit()
133 final int maxIndex = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in commit()
143 am.disableSafeMediaVolume(); in commit()
/packages/apps/StorageManager/tests/unit/
DREADME8 $ 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/Traceur/uitests/
DREADME8 $ 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/modules/Wifi/service/java/com/android/server/wifi/
DWifiCountryCode.java327 for (ActiveModeManager am : mAmmToReadyForChangeMap.keySet()) { in isAllCmmReady()
328 if (am instanceof ConcreteClientModeManager) { in isAllCmmReady()
330 if (!mAmmToReadyForChangeMap.get(am)) { in isAllCmmReady()
677 for (ActiveModeManager am : amms) { in setCountryCodeNative()
679 && am instanceof ConcreteClientModeManager) { in setCountryCodeNative()
687 ConcreteClientModeManager cm = (ConcreteClientModeManager) am; in setCountryCodeNative()
700 } else if (!isClientModeOnly && am instanceof SoftApManager) { in setCountryCodeNative()
701 SoftApManager sm = (SoftApManager) am; in setCountryCodeNative()
/packages/providers/MediaProvider/
Dlogging.sh34 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/TV/tests/tunerscripts/
Dusbtuner-test.sh40 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/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DAccessibilityTestUtils.java69 AccessibilityManager am = mock(AccessibilityManager.class); in setupMockAccessibilityManager() local
70 when(mockContext.getSystemService(AccessibilityManager.class)).thenReturn(am); in setupMockAccessibilityManager()
71 return am; in setupMockAccessibilityManager()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/
DSetupGuidedStepFragment.java115 AccessibilityManager am = in onResume() local
117 mAccessibilityMode = am != null && am.isEnabled() && am.isTouchExplorationEnabled(); in onResume()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DAccessibilityContextMenuMaker.java113 AccessibilityManager am = mActivity.getSystemService(AccessibilityManager.class); in isScreenReaderEnabled() local
114 return am.isEnabled() && am.isTouchExplorationEnabled(); in isScreenReaderEnabled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountsFragment.java114 final AccountManager am = AccountManager.get(getContext()); in updateAccounts() local
115 final AuthenticatorDescription[] authTypes = am.getAuthenticatorTypes(); in updateAccounts()
128 Account[] accounts = am.getAccountsByType(authDesc.type); in updateAccounts()
207 final AccountManager am = AccountManager.get(context); in setUpAddAccountPrefIntent() local
208 final AuthenticatorDescription[] authTypes = am.getAuthenticatorTypes(); in setUpAddAccountPrefIntent()
/packages/apps/TV/src/com/android/tv/license/
DLicenseUtils.java28 public static boolean hasRatingAttribution(AssetManager am) { in hasRatingAttribution() argument
29 try (InputStream is = am.open("rating_sources.html")) { in hasRatingAttribution()
/packages/apps/Settings/tests/unit/
DREADME20 $ 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…

123456789