/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
H A D | MediaOutputDialogReceiverTest.java | 60 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled() 63 .create(getContext().getPackageName(), false, null); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled() 70 intent.putExtra("Wrong Package Name Key", getContext().getPackageName()); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled() 71 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled() 80 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_NoExtra_DialogFactoryNotCalled() 91 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled() 95 .create(getContext().getPackageName(), true, null); in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled() 103 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_WrongExtraKey_DialogBroadcastFactoryNotCalled() 113 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_NoExtra_BroadcastDialogFactoryNotCalled() 124 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in unKnownAction_ExtraPackageName_FactoriesNotCalled() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | InstallLocationUtilsTests.java | 169 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 175 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 181 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 197 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 207 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 217 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 227 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp() 297 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 307 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() 317 InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeAdopted_3rdParty_existing_too_big() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
H A D | AppOpsNotedWatcherTest.java | 60 getContext().getPackageName()); in testWatchNotedOps() 62 getContext().getPackageName()); in testWatchNotedOps() 68 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps() 69 eq(getContext().getAttributionTag()), eq(AppOpsManager.OP_FLAG_SELF), in testWatchNotedOps() 73 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps() 74 eq(getContext().getAttributionTag()), eq(AppOpsManager.OP_FLAG_SELF), in testWatchNotedOps() 93 getContext().getPackageName()); in testWatchNotedOps() 98 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps() 99 eq(getContext().getAttributionTag()), eq(AppOpsManager.OP_FLAG_SELF), in testWatchNotedOps() 106 private static Context getContext() { in getContext() method in AppOpsNotedWatcherTest [all …]
|
H A D | AppOpsActiveWatcherTest.java | 61 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchActiveOps() 63 AppOpsManager.OPSTR_RECORD_AUDIO}, getContext().getMainExecutor(), listener); in testWatchActiveOps() 71 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchActiveOps() 82 Process.myUid(), getContext().getPackageName())).isTrue(); in testWatchActiveOps() 90 eq(Process.myUid()), eq(getContext().getPackageName()), isNull(), in testWatchActiveOps() 95 Process.myUid(), getContext().getPackageName())).isFalse(); in testWatchActiveOps() 120 getContext().getMainExecutor(), listener); in testWatchActiveOps() 128 eq(Process.myUid()), eq(getContext().getPackageName()), isNull(), in testWatchActiveOps() 138 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testIsRunning() 176 private static Context getContext() { in getContext() method in AppOpsActiveWatcherTest [all …]
|
H A D | AppOpsStartedWatcherTest.java | 52 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchStartedOps() 65 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchStartedOps() 66 eq(getContext().getAttributionTag()), eq(AppOpsManager.OP_FLAG_SELF), in testWatchStartedOps() 72 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchStartedOps() 73 eq(getContext().getAttributionTag()), eq(AppOpsManager.OP_FLAG_SELF), in testWatchStartedOps() 99 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchStartedOps() 100 eq(getContext().getAttributionTag()), eq(AppOpsManager.OP_FLAG_SELF), in testWatchStartedOps() 112 private static Context getContext() { in getContext() method in AppOpsStartedWatcherTest 113 return InstrumentationRegistry.getContext(); in getContext()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | SubActivityTest.java | 27 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testPendingResult() 33 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testNoResult() 39 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testResult() 46 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testFinishSub() 53 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteNoResult() 60 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteResult() 66 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testRemoteFinishSub() 73 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteRestartNoResult() 81 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteRestartResult() 88 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testRemoteRestartFinishSub()
|
H A D | IntentSenderTest.java | 34 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testRegisteredReceivePermissionGranted() 35 makeBroadcastIntent(BROADCAST_REGISTERED).setPackage(getContext().getPackageName()), in testRegisteredReceivePermissionGranted() 44 .setPackage(getContext().getPackageName()); in testRegisteredReceivePermissionDenied() 57 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, in testRegisteredReceivePermissionDenied() 66 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testLocalReceivePermissionGranted() 68 .setPackage(getContext().getPackageName()), PendingIntent.FLAG_MUTABLE); in testLocalReceivePermissionGranted() 76 .setPackage(getContext().getPackageName()); in testLocalReceivePermissionDenied() 87 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, in testLocalReceivePermissionDenied()
|
H A D | BroadcastTest.java | 194 getContext().unregisterReceiver(mReceiver); in unregisterMyReceiverNoCheck() 281 getContext().sendOrderedBroadcast( in testResult() 393 getContext().sendOrderedBroadcast( in testRegisteredReceivePermissionDenied() 403 getContext().sendBroadcast( in testRegisteredBroadcastPermissionGranted() 420 getContext().sendOrderedBroadcast( in testRegisteredBroadcastPermissionDenied() 442 getContext().sendOrderedBroadcast( in testLocalReceivePermissionDenied() 451 getContext().sendBroadcast( in testLocalBroadcastPermissionGranted() 466 getContext().sendOrderedBroadcast( in testLocalBroadcastPermissionDenied() 488 getContext().sendOrderedBroadcast( in testRemoteReceivePermissionDenied() 497 getContext().sendBroadcast( in testRemoteBroadcastPermissionGranted() [all …]
|
H A D | LaunchTest.java | 29 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); in testColdActivity() 35 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); in testLocalActivity() 41 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); in testColdScreen() 47 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); in testLocalScreen() 66 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopInCreate() 72 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopWhileResumed()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/color/ |
H A D | ColorDisplayService.java | 845 getContext().getResources() in isDisplayWhiteBalanceSettingEnabled() 1701 getContext().enforceCallingOrSelfPermission( in setColorMode() 1795 getContext().enforceCallingOrSelfPermission( in setNightDisplayActivated() 1819 getContext().enforceCallingOrSelfPermission( in setNightDisplayColorTemperature() 1842 getContext().enforceCallingOrSelfPermission( in setNightDisplayAutoMode() 1855 getContext().enforceCallingOrSelfPermission( in getNightDisplayAutoMode() 1878 getContext().enforceCallingOrSelfPermission( in setNightDisplayCustomStartTime() 1901 getContext().enforceCallingOrSelfPermission( in setNightDisplayCustomEndTime() 1924 getContext().enforceCallingOrSelfPermission( in setDisplayWhiteBalanceEnabled() 1957 getContext().enforceCallingOrSelfPermission( in setReduceBrightColorsActivated() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
H A D | FindViewByIdTest.java | 41 private Context getContext() { in getContext() method in FindViewByIdTest 52 LinearLayout contentView = new LinearLayout(getContext()); in testFindViewById() 54 View child1 = new View(getContext()); in testFindViewById() 55 View child2 = new View(getContext()); in testFindViewById() 69 LinearLayout contentView = new LinearLayout(getContext()); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 71 View child1 = new View(getContext()); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 72 View child2 = new View(getContext()); in testFindViewByIdReturnNullIfRemovedFromHierarchy() 87 LinearLayout contentView = new LinearLayout(getContext()); in testFindViewByIdReturnNullIfNotImportant() 89 View child1 = new View(getContext()); in testFindViewByIdReturnNullIfNotImportant() 90 View child2 = new View(getContext()); in testFindViewByIdReturnNullIfNotImportant()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/ |
H A D | IntentCreatorTest.java | 45 Intent intent = IntentCreator.getTextEditorIntent(getContext()); in test_getTextEditorIntent() 46 assertEquals(new ComponentName(getContext(), EditTextActivity.class), in test_getTextEditorIntent() 53 getContext().getOrCreateTestableResources().addOverride(R.string.config_remoteCopyPackage, in test_getRemoteCopyIntent() 57 Intent intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent() 69 intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent() 78 Intent intent = IntentCreator.getImageEditIntent(fakeUri, getContext()); in test_getImageEditIntent() 91 intent = IntentCreator.getImageEditIntent(fakeUri, getContext()); in test_getImageEditIntent() 98 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_plaintext() 111 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_html() 125 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_image() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | AuthService.java | 216 return getContext().getResources() in getUiPackage() 504 result = getContext().getString( in getPromptMessage() 510 result = getContext().getString( in getPromptMessage() 513 result = getContext().getString( in getPromptMessage() 520 result = getContext().getString( in getPromptMessage() 529 result = getContext().getString( in getPromptMessage() 532 result = getContext().getString( in getPromptMessage() 593 result = getContext().getString( in getSettingName() 597 result = getContext().getString( in getSettingName() 601 result = getContext().getString( in getSettingName() [all …]
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | GlobalSortKeyComparatorTest.java | 48 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) in testComparator() 50 NotificationRecord left = new NotificationRecord(getContext(), in testComparator() 57 NotificationRecord right = new NotificationRecord(getContext(), in testComparator() 64 NotificationRecord last = new NotificationRecord(getContext(), in testComparator() 87 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) in testNoCrash_leftNull() 89 NotificationRecord left = new NotificationRecord(getContext(), in testNoCrash_leftNull() 95 NotificationRecord right = new NotificationRecord(getContext(), in testNoCrash_leftNull() 117 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) in testNoCrash_rightNull() 119 NotificationRecord left = new NotificationRecord(getContext(), in testNoCrash_rightNull() 126 NotificationRecord right = new NotificationRecord(getContext(), in testNoCrash_rightNull()
|
H A D | NotificationIntrusivenessExtractorTest.java | 44 final Notification.Builder builder = new Notification.Builder(getContext()) in testNonIntrusive() 51 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testNonIntrusive() 59 final Notification.Builder builder = new Notification.Builder(getContext()) in testIntrusive_fillScreen() 62 getContext(), 0, new Intent(""), PendingIntent.FLAG_IMMUTABLE), in testIntrusive_fillScreen() 70 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testIntrusive_fillScreen() 78 final Notification.Builder builder = new Notification.Builder(getContext()) in testOldNotificationsNotIntrusive() 81 getContext(), 0, new Intent(""), PendingIntent.FLAG_IMMUTABLE), in testOldNotificationsNotIntrusive() 90 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); in testOldNotificationsNotIntrusive()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | DemoModeFragment.java | 72 Context context = getContext(); in onCreatePreferences() 107 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER_DEMO_MODE, true); in onResume() 113 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER_DEMO_MODE, false); in onPause() 140 MetricsLogger.action(getContext(), MetricsEvent.TUNER_DEMO_MODE_ENABLED, enabled); in onPreferenceChange() 143 MetricsLogger.action(getContext(), MetricsEvent.TUNER_DEMO_MODE_ON, enabled); in onPreferenceChange() 171 getContext().sendBroadcast(intent); in startDemoMode() 180 getContext().sendBroadcast(intent); in startDemoMode() 184 getContext().sendBroadcast(intent); in startDemoMode() 189 getContext().sendBroadcast(intent); in startDemoMode() 195 getContext().sendBroadcast(intent); in startDemoMode() [all …]
|
H A D | PluginFragment.java | 64 getContext().registerReceiver(mReceiver, filter); in onCreate() 66 getContext().registerReceiver(mReceiver, filter); in onCreate() 72 getContext().unregisterReceiver(mReceiver); in onDestroy() 77 mPluginEnabler = new PluginEnablerImpl(getContext()); in onCreatePreferences() 85 Context prefContext = getPreferenceManager().getContext(); in loadPrefs() 86 mPluginPrefs = new PluginPrefs(getContext()); in loadPrefs() 87 PackageManager pm = getContext().getPackageManager(); in loadPrefs() 199 getContext().sendBroadcast(intent); in persistBoolean() 212 ResolveInfo result = v.getContext().getPackageManager().resolveActivity( in onBindViewHolder() 216 v.getContext().startActivity(new Intent().setComponent( in onBindViewHolder() [all …]
|
H A D | TunerFragment.java | 83 if (!PluginPrefs.hasPlugins(getContext())) { in onCreatePreferences() 96 if (Settings.Secure.getInt(getContext().getContentResolver(), SETTING_SEEN_TUNER_WARNING, in onCreatePreferences() 105 return new AmbientDisplayConfiguration(getContext()).alwaysOnAvailable(); in alwaysOnAvailable() 113 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER, true); in onResume() 120 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER, false); in onPause() 148 return new AlertDialog.Builder(getContext()) in onCreateDialog() 154 Settings.Secure.putInt(getContext().getContentResolver(), in onCreateDialog()
|
/aosp14/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
H A D | BottomSheetLayout.java | 51 if (getContext() == null || getContext().getResources() == null) { in onMeasure() 64 DisplayMetrics displayMetrics = getContext().getResources().getDisplayMetrics(); in onMeasure() 66 final int pxOffset = getContext().getResources().getDimensionPixelSize( in onMeasure() 68 final int outerMargin = getContext().getResources().getDimensionPixelSize( in onMeasure() 72 getContext().getResources().getBoolean( in onMeasure() 88 Math.min(maxWidth, getContext().getResources().getDimensionPixelSize( in onMeasure()
|
/aosp14/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
H A D | BaseSettingsProviderTest.java | 80 ContentResolver contentResolver = getContext().getContentResolver(); in setStringViaFrontEndApiSetting() 102 ContentResolver contentResolver = getContext().getContentResolver(); in getStringViaFrontEndApiSetting() 133 return getContext().getContentResolver().insert(uri, values); in insertStringViaProviderApi() 138 return getContext().getContentResolver().delete(uri, "name=?", new String[]{name}); in deleteStringViaProviderApi() 146 return getContext().getContentResolver().update(uri, values, "name=?", in updateStringViaProviderApiSetting() 170 Cursor cursor = getContext().getContentResolver().query(uri, NAME_VALUE_COLUMNS, in queryStringViaProviderApi() 255 return Settings.Global.getString(getContext().getContentResolver(), name); in getSetting() 259 return Settings.Secure.getString(getContext().getContentResolver(), name); in getSetting() 325 protected Context getContext() { in getContext() method in BaseSettingsProviderTest 326 return InstrumentationRegistry.getContext(); in getContext() [all …]
|
/aosp14/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
H A D | XmlConfigTests.java | 48 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.empty_config, in testEmptyConfigFile() 68 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.empty_trust, in testEmptyAnchors() 87 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.domain1, in testBasicDomainConfig() 124 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.pins1, in testBasicPinning() 140 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.expired_pin, in testExpiredPin() 170 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.bad_pin, in testBadPin() 383 XmlConfigSource source = new XmlConfigSource(getContext(), configId, in testBadConfig() 420 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.bad_pin, in testTrustManagerKeystore() 473 source = new XmlConfigSource(getContext(), R.xml.extra_debug_resource, in testExtraDebugResource() 484 new XmlConfigSource(getContext(), R.xml.bad_extra_debug_resource, in testExtraDebugResourceIgnored() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | BatteryControllerTest.java | 119 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_true() 134 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_false() 149 mBatteryController.onReceive(getContext(), i); in testBatteryPresentState_notPresent() 164 mBatteryController.onReceive(getContext(), i); in testBatteryPresentState_callbackAddedAfterStateChange() 220 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_withChargingSourceDock_isChargingSourceDockTrue() 231 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_withChargingSourceNotDock_isChargingSourceDockFalse() 242 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_chargingStatusNotLongLife_outputsFalse() 253 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_chargingStatusLongLife_outputsTrue() 262 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_noChargingStatusGiven_outputsFalse() 273 mBatteryController.onReceive(getContext(), intent); in complianceChanged_complianceIncompatible_outputsTrue() [all …]
|
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoDialog.java | 41 RecyclerView view = new RecyclerView(getContext()); in NekoDialog() 42 mAdapter = new Adapter(getContext()); in NekoDialog() 43 view.setLayoutManager(new GridLayoutManager(getContext(), 2)); in NekoDialog() 52 PrefState prefs = new PrefState(getContext()); in onFoodSelected() 55 NekoService.registerJob(getContext(), food.getInterval(getContext())); in onFoodSelected() 78 return new Holder(LayoutInflater.from(parent.getContext()) in onCreateViewHolder()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | MediaPlayerUnitTest.java | 51 int vdmPlaybackSessionId = getContext().getSystemService( in testConstructionWithContext_virtualDeviceDefaultAudioPolicy() 65 int vdmPlaybackSessionId = getContext().getSystemService( in testConstructionWithContext_virtualDeviceCustomAudioPolicy() 78 int vdmPlaybackSessionId = getContext().getSystemService( in testConstructionWithContext_virtualSetSessionIdOverridesContext() 80 int anotherSessionId = getContext().getSystemService( in testConstructionWithContext_virtualSetSessionIdOverridesContext() 92 private Context getContext() { in getContext() method in MediaPlayerUnitTest 93 return InstrumentationRegistry.getInstrumentation().getContext(); in getContext() 100 when(mockContext.getAttributionSource()).thenReturn(getContext().getAttributionSource()); in getVirtualDeviceMockContext()
|
H A D | AudioRecordUnitTest.java | 60 int sessionId = getContext().getSystemService(AudioManager.class).generateAudioSessionId(); in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId() 74 int vdmPlaybackSessionId = getContext().getSystemService( in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy() 91 int vdmRecordingSessionId = getContext().getSystemService( in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy() 108 int vdmRecordingSessionId = getContext().getSystemService( in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext() 110 int anotherSessionId = getContext().getSystemService( in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext() 127 private Context getContext() { in getContext() method in AudioRecordUnitTest 128 return InstrumentationRegistry.getInstrumentation().getContext(); in getContext() 135 when(mockContext.getAttributionSource()).thenReturn(getContext().getAttributionSource()); in getVirtualDeviceMockContext()
|