/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarUxRestrictionsManagerServiceTest.java | 94 private Context mSpyContext; field in CarUxRestrictionsManagerServiceTest 102 mSpyContext = spy(InstrumentationRegistry.getTargetContext()); in setUp() 112 mService = new CarUxRestrictionsManagerService(mSpyContext, in setUp() 152 Resources spyResources = spy(mSpyContext.getResources()); in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml() 153 doReturn(spyResources).when(mSpyContext).getResources(); in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml() 165 mSpyContext, R.xml.car_ux_restrictions_map); in testLoadConfig_UseXml() 318 CarDrivingStateService drivingStateService = new CarDrivingStateService(mSpyContext, in testInitService_NoDeadlockWithCarDrivingStateService() 321 mSpyContext, drivingStateService, mMockCarPropertyService); in testInitService_NoDeadlockWithCarDrivingStateService() 420 CarDrivingStateService drivingStateService = new CarDrivingStateService(mSpyContext, in testSetUxRChangeBroadcastEnabled_NoDeadlockWithCarDrivingStateService() 423 mSpyContext, drivingStateService, mMockCarPropertyService); in testSetUxRChangeBroadcastEnabled_NoDeadlockWithCarDrivingStateService()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionTestBase.java | 64 protected Context mSpyContext; field in IkeSessionTestBase 78 mSpyContext = spy(mMockIpSecTestUtils.getContext()); in setUp() 80 .when(mSpyContext) in setUp() 86 doNothing().when(mSpyContext).unregisterReceiver(any(IkeAlarmReceiver.class)); in setUp() 91 doReturn(mPowerManager).when(mSpyContext).getSystemService(eq(PowerManager.class)); in setUp() 120 .when(mSpyContext) in setUp()
|
D | IkeLocalRequestSchedulerTest.java | 55 private Context mSpyContext; field in IkeLocalRequestSchedulerTest 63 mSpyContext = spy(InstrumentationRegistry.getContext()); in setUp() 67 doReturn(mMockPowerManager).when(mSpyContext).getSystemService(eq(PowerManager.class)); in setUp() 70 mScheduler = new IkeLocalRequestScheduler(mMockConsumer, mSpyContext); in setUp()
|
D | IkeSessionStateMachineTest.java | 773 mSpyContext, in makeAndStartIkeSession() 1518 eq(mSpyContext), in setupChildStateMachineFactory() 1577 eq(mSpyContext), in testCreateAdditionalChild() 2322 eq(mSpyContext), in verifyAuthenticationCommonAndGetIkeMessage() 2715 eq(mSpyContext), in verifyEapAuthenticatorCreatedAndGetCallback() 4394 eq(mSpyContext), in testOpenChildSession() 4479 mSpyContext, in testHandleUnexpectedExceptionInEnterState()
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
D | IkeSessionTest.java | 81 mSpyContext, in testConstructIkeSession() 111 mSpyContext, in testConstructFromDifferentThreads() 144 mSpyContext, in testOpensIkeSession() 164 doReturn(mockPackageMgr).when(mSpyContext).getPackageManager(); in testThrowWhenSetupTunnelWithMissingFeature() 170 mSpyContext, in testThrowWhenSetupTunnelWithMissingFeature()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | BluetoothSnoopLogPreferenceControllerTest.java | 47 private Context mSpyContext = RuntimeEnvironment.application; field in BluetoothSnoopLogPreferenceControllerTest 61 doReturn(mSpyResources).when(mSpyContext).getResources(); in setup() 64 mPreference = new ListPreference(mSpyContext); in setup() 68 mController = new BluetoothSnoopLogPreferenceController(mSpyContext); in setup()
|
D | BluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java | 53 private Context mSpyContext = RuntimeEnvironment.application; field in BluetoothMaxConnectedAudioDevicesPreferenceControllerTest 66 doReturn(mSpyResources).when(mSpyContext).getResources(); in setup() 69 mPreference = new ListPreference(mSpyContext); in setup() 76 mController = new BluetoothMaxConnectedAudioDevicesPreferenceController(mSpyContext); in setup()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | TelecomSystemTest.java | 326 Context mSpyContext; field in TelecomSystemTest 347 mSpyContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp() 348 doReturn(mSpyContext).when(mSpyContext).getApplicationContext(); in setUp() 349 doNothing().when(mSpyContext).sendBroadcastAsUser(any(), any(), any()); in setUp()
|
D | AnalyticsTests.java | 150 TelecomManager tm = (TelecomManager) mSpyContext.getSystemService(Context.TELECOM_SERVICE); in testAnalyticsDumping() 301 TelecomManager tm = (TelecomManager) mSpyContext.getSystemService(Context.TELECOM_SERVICE); in testAnalyticsLogSessionTiming()
|
D | BasicCallTests.java | 824 return mSpyContext.getContentResolver().acquireProvider(BlockedNumberContract.AUTHORITY); in getBlockedNumberProvider()
|