/cts/tests/tests/app/src/android/app/cts/ |
D | Instrumentation_ActivityMonitorTest.java | 41 ActivityMonitor am = instrumentation.addMonitor( in testActivityMonitor() local 47 Activity lastActivity = am.getLastActivity(); in testActivityMonitor() 52 lastActivity = am.getLastActivity(); in testActivityMonitor() 54 Activity activity = am.waitForActivity(); in testActivityMonitor() 56 assertEquals(1, am.getHits()); in testActivityMonitor() 65 activity = am.waitForActivityWithTimeout(WAIT_TIMEOUT); in testActivityMonitor() 69 instrumentation.removeMonitor(am); in testActivityMonitor() 71 am = new ActivityMonitor(InstrumentationTestActivity.class.getName(), result, true); in testActivityMonitor() 72 assertSame(result, am.getResult()); in testActivityMonitor() 73 assertTrue(am.isBlocking()); in testActivityMonitor() [all …]
|
D | ActivityManager_RunningAppProcessInfoTest.java | 34 final ActivityManager am = (ActivityManager) in testRunningAppProcessInfo() local 36 final List<RunningAppProcessInfo> list = am.getRunningAppProcesses(); in testRunningAppProcessInfo()
|
D | InstrumentationTest.java | 111 ActivityMonitor am = mInstrumentation.addMonitor(filter, result, false); in testMonitor() local 114 activity = am.waitForActivity(); in testMonitor() 117 mInstrumentation.removeMonitor(am); in testMonitor() 118 am = mInstrumentation in testMonitor() 121 activity = am.waitForActivity(); in testMonitor() 124 mInstrumentation.removeMonitor(am); in testMonitor()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerTest.java | 99 private static AccountManager am; field in AccountManagerTest 128 am = AccountManager.get(mContext); in setUp() 136 assertTrue(removeAccount(am, ACCOUNT, mActivity, null /* callback */).getBoolean( in tearDown() 138 assertTrue(removeAccount(am, ACCOUNT_SAME_TYPE, mActivity, null /* callback */).getBoolean( in tearDown() 142 Account[] ctsAccounts = am.getAccountsByType(ACCOUNT_TYPE); in tearDown() 143 Account[] ctsCustomAccounts = am.getAccountsByType(ACCOUNT_TYPE_CUSTOM); in tearDown() 147 removeAccount(am, ctsAccount, mActivity, null /* callback */); in tearDown() 204 am.invalidateAuthToken(account.type, token); in validateSuccessfulTokenFetchingLifecycle() 281 Account[] accounts = am.getAccounts(); in getAccountsCount() 286 private Bundle addAccount(AccountManager am, String accountType, String authTokenType, in addAccount() argument [all …]
|
D | MockAccountAuthenticator.java | 123 AccountManager am = AccountManager.get(mContext); in callAccountAuthenticated() local 124 am.notifyAccountAuthenticated(mAccount); in callAccountAuthenticated() 128 AccountManager am = AccountManager.get(mContext); in callSetPassword() local 129 am.setPassword(mAccount, "password"); in callSetPassword() 154 AccountManager am = AccountManager.get(mContext); in addAccount() local 155 am.addAccountExplicitly(AccountManagerTest.ACCOUNT, "fakePassword", null); in addAccount()
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
D | AuthenticatorContentProvider.java | 81 AccountManager am = AccountManager.get(context); in setup() local 82 AuthenticatorDescription[] authenticators = am.getAuthenticatorTypes(); in setup() 91 am.addAccountExplicitly(account, Fixtures.PREFIX_PASSWORD + name, null); in setup() 99 AccountManager am = AccountManager.get(context); in teardown() local 100 AuthenticatorDescription[] authenticators = am.getAuthenticatorTypes(); in teardown() 107 Account[] accountsToRemove = am.getAccountsByType(a.type); in teardown() 109 am.removeAccountExplicitly(account); in teardown()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | LoudnessEnhancerTest.java | 49 AudioManager am = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in test0_0ConstructorAndRelease() local 50 assertNotNull("null AudioManager", am); in test0_0ConstructorAndRelease() 54 int session = am.generateAudioSessionId(); in test0_0ConstructorAndRelease() 108 AudioManager am = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in test2_0MeasureGainChange() local 109 assertNotNull("null AudioManager", am); in test2_0MeasureGainChange() 110 int originalVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); in test2_0MeasureGainChange() 111 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0MeasureGainChange() 112 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0); in test2_0MeasureGainChange() 161 am.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in test2_0MeasureGainChange()
|
D | PostProcTestBase.java | 59 AudioManager am = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in getSessionId() local 60 assertNotNull("could not get AudioManager", am); in getSessionId() 61 int sessionId = am.generateAudioSessionId(); in getSessionId()
|
D | VisualizerTest.java | 307 AudioManager am = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in test4_1MeasurePeakRms() local 308 assertNotNull("null AudioManager", am); in test4_1MeasurePeakRms() 309 int originalVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); in test4_1MeasurePeakRms() 310 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test4_1MeasurePeakRms() 311 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0); in test4_1MeasurePeakRms() 337 am.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0); in test4_1MeasurePeakRms() 380 AudioManager am = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in test4_2MeasurePeakRmsLongMP3() local 381 assertNotNull("null AudioManager", am); in test4_2MeasurePeakRmsLongMP3() 382 int originalVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); in test4_2MeasurePeakRmsLongMP3() 383 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test4_2MeasurePeakRmsLongMP3() [all …]
|
D | MediaPlayerTest.java | 647 AudioManager am = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 648 int oldRingerMode = am.getRingerMode(); 649 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); 650 int oldvolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); 651 am.setStreamVolume(AudioManager.STREAM_MUSIC, 1, 0); 690 am.setRingerMode(oldRingerMode); 691 am.setStreamVolume(AudioManager.STREAM_MUSIC, oldvolume, 0);
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AccountUtilsTest.java | 56 static void removeAllAccountsForType(AccountManager am, String accountType) in removeAllAccountsForType() argument 58 Account[] accounts = am.getAccountsByType(accountType); in removeAllAccountsForType() 60 AccountManagerFuture<Boolean> result = am.removeAccount(account, null, null); in removeAllAccountsForType() 63 assertEquals(0, am.getAccountsByType(accountType).length); in removeAllAccountsForType()
|
/cts/tests/ProcessTest/src/com/android/cts/process/ |
D | ProcessTest.java | 50 ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in testPid() local 53 List<RunningAppProcessInfo> list = am.getRunningAppProcesses(); in testPid() 61 List<RunningAppProcessInfo> sharelist = am.getRunningAppProcesses(); in testPid() 69 List<RunningAppProcessInfo> shareStublist = am.getRunningAppProcesses(); in testPid() 79 List<RunningAppProcessInfo> noShareStublist = am.getRunningAppProcesses(); in testPid()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioLoopbackActivity.java | 110 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() local 111 mMaxLevel = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in onCreate() 113 am.setStreamVolume(AudioManager.STREAM_MUSIC, (int)(0.7 * mMaxLevel), 0); in onCreate() 128 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() 129 am.setStreamVolume(AudioManager.STREAM_MUSIC, in onCreate() 145 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in refreshLevel() local 147 int currentLevel = am.getStreamVolume(AudioManager.STREAM_MUSIC); in refreshLevel() 184 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in startAudioTest() local 185 String value = am.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER); in startAudioTest()
|
D | AudioFrequencySpeakerActivity.java | 231 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setMaxLevel() local 232 mMaxLevel = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in setMaxLevel() 233 am.setStreamVolume(AudioManager.STREAM_MUSIC, (int)(mMaxLevel), 0); in setMaxLevel() 237 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setMinLevel() local 238 am.setStreamVolume(AudioManager.STREAM_MUSIC, 0, 0); in setMinLevel()
|
D | AudioFrequencyMicActivity.java | 257 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setMaxLevel() local 258 mMaxLevel = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in setMaxLevel() 259 am.setStreamVolume(AudioManager.STREAM_MUSIC, (int)(mMaxLevel), 0); in setMaxLevel() 263 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setMinLevel() local 264 am.setStreamVolume(AudioManager.STREAM_MUSIC, 0, 0); in setMinLevel()
|
D | AudioFrequencyLineActivity.java | 203 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in setMaxLevel() local 204 mMaxLevel = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in setMaxLevel() 205 am.setStreamVolume(AudioManager.STREAM_MUSIC, (int)(mMaxLevel), 0); in setMaxLevel()
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | LeakTest.java | 52 ActivityManager am = (ActivityManager) getContext().getSystemService("activity"); in testForLeaks() local 53 int mc = am.getLargeMemoryClass() / 32; in testForLeaks()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | URLSpanTest.java | 68 ActivityMonitor am = instrumentation.addMonitor(MockURLSpanTestActivity.class.getName(), in testOnClick() local 81 Activity newActivity = am.waitForActivityWithTimeout(5000); in testOnClick()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
D | AlarmOperation.java | 90 AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in execute() local 95 am.setExact(AlarmManager.RTC_WAKEUP, wakeupTimeMs, pendingIntent); in execute()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ClonedSecureRandomTest.java | 113 ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in testCheckForDuplicateOutput() local 164 am.killBackgroundProcesses(packageName); in testCheckForDuplicateOutput()
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | DeviceInfoActivity.java | 120 ActivityManager am = in onCreate() local 122 ConfigurationInfo info = am.getDeviceConfigurationInfo(); in onCreate()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorProcessTest.java | 118 final ActivityManager am = (ActivityManager) mContext.getSystemService( in tearDown() local 120 am.killBackgroundProcesses(context.getPackageName()); in tearDown()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TabHost_TabSpecTest.java | 192 ActivityMonitor am = instrumentation.addMonitor(MockURLSpanTestActivity.class.getName(), in testSetContent3() local 195 Activity newActivity = am.waitForActivityWithTimeout(5000); in testSetContent3()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverSyncTestCase.java | 79 private boolean removeAccount(AccountManager am, Account account, in removeAccount() argument 83 AccountManagerFuture<Boolean> futureBoolean = am.removeAccount(account, in removeAccount()
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | crypto.js | 148 BigInteger.prototype.am = fn; method in BigInteger 424 for(i = 0; i < y.t; ++i) r_array[i+x.t] = x.am(0,y_array[i],r,i,0,x.t); 439 var c = x.am(i,x_array[i],r,2*i,0,1); 440 if((r_array[i+x.t]+=x.am(i+1,2*x_array[i],r,2*i+1,c,x.t-i-1)) >= BI_DV) { 445 if(r.t > 0) r_array[r.t-1] += x.am(i,x_array[i],r,2*i,0,1); 488 if((r_array[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out 593 x_array[j] += this.m.am(0,u0,x,i,0,this.m.t); 995 this_array[this.t] = this.am(0,n-1,this,0,0,this.t); 1036 for(j = r.t-this.t; i < j; ++i) r_array[i+this.t] = this.am(0,a_array[i],r,i,0,this.t); 1037 for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a_array[i],r,i,0,n-i); [all …]
|