/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
ShortcutManagerTest9.java | 101 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); 102 verify(mServiceContext, times(0)).startActivityAsUser( 117 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); 124 verify(mServiceContext).startActivityAsUser(intent.capture(), eq(HANDLE_USER_0)); 138 verify(mServiceContext, times(1)).sendIntentSender(eq(null)); 140 verify(mServiceContext, times(1)).sendIntentSender(any(IntentSender.class));
|
ShortcutManagerTest8.java | 182 verify(mServiceContext, times(0)) 184 verify(mServiceContext, times(0)) 194 verify(mServiceContext, times(0)) 196 verify(mServiceContext, times(0)) 206 verify(mServiceContext, times(0)) 208 verify(mServiceContext, times(0)) 233 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); 234 verify(mServiceContext, times(0)).startActivityAsUser( 269 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); 280 verify(mServiceContext).startActivityAsUser(intent.capture(), eq(HANDLE_USER_0)) [all...] |
ShortcutManagerTest10.java | 157 doReturn(getTestContext().getPackageName()).when(mServiceContext).getPackageName(); 158 doReturn(getTestContext().getContentResolver()).when(mServiceContext).getContentResolver();
|
ShortcutManagerTest6.java | 255 mService.mPackageMonitor.onReceive(mServiceContext, 270 mService.mPackageMonitor.onReceive(mServiceContext,
|
BaseShortcutManagerTest.java | 546 protected ServiceContext mServiceContext; 712 mServiceContext = spy(new ServiceContext()); [all...] |
ShortcutManagerTest2.java | [all...] |
ShortcutManagerTest1.java | [all...] |
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
SimChangeListenerTest.java | 54 private BroadcastInterceptingContext mServiceContext; 77 mServiceContext = new MockContext(mContext); 80 mSCL = new SimChangeListener(mServiceContext, mHandler, () -> doCallback()); 93 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
TetheringTest.java | 115 private BroadcastInterceptingContext mServiceContext; 164 mServiceContext = new MockContext(mContext); 165 mContentResolver = new MockContentResolver(mServiceContext); 174 mServiceContext.registerReceiver(mBroadcastReceiver, 178 mTethering = new Tethering(mServiceContext, mNMService, mStatsService, mPolicyManager, 186 mServiceContext.unregisterReceiver(mBroadcastReceiver); 244 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); 252 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL); 260 mServiceContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
NetworkPolicyManagerServiceTest.java | 202 private BroadcastInterceptingContext mServiceContext; 293 mServiceContext = new BroadcastInterceptingContext(context) { 333 mService = new NetworkPolicyManagerService(mServiceContext, mActivityManager, mStatsService, [all...] |
/frameworks/base/tests/net/java/com/android/server/net/ |
NetworkStatsServiceTest.java | 144 private BroadcastInterceptingContext mServiceContext; 165 mServiceContext = new BroadcastInterceptingContext(context); 171 PowerManager powerManager = (PowerManager) mServiceContext.getSystemService( 177 mServiceContext, mNetManager, mAlarmManager, wakeLock, mTime, 211 mServiceContext = null; 320 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SHUTDOWN)); 522 mServiceContext.sendBroadcast(intent); 524 mServiceContext.sendBroadcast(intent); [all...] |
/frameworks/base/tests/net/java/com/android/server/ |
ConnectivityServiceTest.java | 139 private MockContext mServiceContext; 341 mNetworkAgent = new NetworkAgent(mHandlerThread.getLooper(), mServiceContext, 827 mServiceContext = new MockContext(getContext()); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DevicePolicyManagerTest.java | 124 // TODO replace all instances of this with explicit {@link #mServiceContext}. 128 private DpmMockContext mServiceContext; 166 mServiceContext = mContext; 167 mServiceContext.binder.callingUid = DpmMockContext.CALLER_UID; 245 final long ident = mServiceContext.binder.clearCallingIdentity(); 247 mServiceContext.binder.callingUid = 249 runAsCaller(mServiceContext, dpms, dpm -> { 258 mServiceContext.binder.restoreCallingIdentity(ident); [all...] |