Home
last modified time | relevance | path

Searched refs:mShadowApplication (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingReceiverTest.java80 private ShadowApplication mShadowApplication; field in AudioSharingReceiverTest
92 mShadowApplication = Shadow.extract(mContext); in setUp()
93 mShadowApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNm); in setUp()
115 mShadowApplication.getRegisteredReceivers(); in broadcastReceiver_isRegistered()
218 assertThat(mShadowApplication.hasReceiverForIntent(intent)).isTrue(); in getAudioSharingReceiver()
220 mShadowApplication.getReceiversForIntent(intent); in getAudioSharingReceiver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaDeviceUpdateWorkerTest.java88 private ShadowApplication mShadowApplication; field in MediaDeviceUpdateWorkerTest
98 mShadowApplication = ShadowApplication.getInstance(); in setUp()
195 for (BroadcastReceiver receiver : mShadowApplication.getReceiversForIntent(intent)) { in onReceive_inCallState_shouldNotifyChange()
209 for (BroadcastReceiver receiver : mShadowApplication.getReceiversForIntent(intent)) { in onReceive_notInCallState_doNothing()
DMediaOutputIndicatorWorkerTest.java89 private ShadowApplication mShadowApplication; field in MediaOutputIndicatorWorkerTest
99 mShadowApplication = ShadowApplication.getInstance(); in setUp()
205 for (BroadcastReceiver receiver : mShadowApplication.getReceiversForIntent(intent)) { in onReceive_shouldNotifyChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DDiscoverableFooterPreferenceControllerTest.java70 private ShadowApplication mShadowApplication; field in DiscoverableFooterPreferenceControllerTest
75 mShadowApplication = Shadows.shadowOf(RuntimeEnvironment.application); in setUp()
200 mShadowApplication.getRegisteredReceivers(); in getRegisteredBroadcastReceivers()
/packages/modules/DeviceLock/tests/unittests/src/com/android/server/devicelock/
DDeviceLockServiceImplTest.java129 private ShadowApplication mShadowApplication; field in DeviceLockServiceImplTest
137 mShadowApplication = shadowOf((Application) mContext); in setup()
138 mShadowApplication.grantPermissions(MANAGE_DEVICE_LOCK_SERVICE_FROM_CONTROLLER); in setup()
139 mShadowApplication.setSystemService( in setup()
424 ServiceConnection connection = mShadowApplication.getBoundServiceConnections().get(0); in waitUntilConnected()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityHearingAidPreferenceControllerTest.java92 private ShadowApplication mShadowApplication; field in AccessibilityHearingAidPreferenceControllerTest
113 mShadowApplication = shadowOf((Application) ApplicationProvider.getApplicationContext()); in setUp()
315 for (BroadcastReceiver receiver : mShadowApplication.getReceiversForIntent(intent)) { in sendIntent()