Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 25 of 4428) sorted by relevance

12345678910>>...178

/aosp12/frameworks/base/core/tests/coretests/src/android/text/format/
H A DFormatterTest.java46 private Context mContext; field in FormatterTest
177 mContext, 2 * DAY)); in testFormatShortElapsedTimeRoundingUpToMinutes()
183 mContext, 1 * DAY)); in testFormatShortElapsedTimeRoundingUpToMinutes()
189 mContext, 2 * HOUR)); in testFormatShortElapsedTimeRoundingUpToMinutes()
191 mContext, 1 * HOUR)); in testFormatShortElapsedTimeRoundingUpToMinutes()
199 mContext, 2 * MINUTE)); in testFormatShortElapsedTimeRoundingUpToMinutes()
203 mContext, 1 * MINUTE)); in testFormatShortElapsedTimeRoundingUpToMinutes()
207 mContext, 1 * SECOND)); in testFormatShortElapsedTimeRoundingUpToMinutes()
209 mContext, 1)); in testFormatShortElapsedTimeRoundingUpToMinutes()
211 mContext, 0)); in testFormatShortElapsedTimeRoundingUpToMinutes()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/content/
H A DPermissionCheckerTest.java39 private final Context mContext = InstrumentationRegistry.getContext();; field in PermissionCheckerTest
59 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted()
71 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied()
83 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted()
107 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeIgnored_returnsHardDenied()
118 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeErrored_returnsHardDenied()
119 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeErrored_returnsHardDenied()
131 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForDataDelivery_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted()
143 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForDataDelivery_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied()
155 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForDataDelivery_appOpPermission_modeAllowed_returnsGranted()
[all …]
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
H A DNavStateController.java66 private final Context mContext; field in NavStateController
90 mContext = container.getContext(); in NavStateController()
178 mContext.getResources().getValue(alphaId, typedValue, true); in getAlphaFromResource()
184 return mContext.getColor(R.color.low_traffic); in getTrafficColor()
186 return mContext.getColor(R.color.medium_traffic); in getTrafficColor()
188 return mContext.getColor(R.color.high_traffic); in getTrafficColor()
191 return mContext.getColor(R.color.unknown_traffic); in getTrafficColor()
250 return mContext.getDrawable(R.drawable.direction_depart); in getManeuverIcon()
346 return mContext.getDrawable(R.drawable.direction_close); in getManeuverIcon()
348 return mContext.getDrawable(R.drawable.direction_close); in getManeuverIcon()
[all …]
/aosp12/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
H A DNavStateController.java65 private Context mContext; field in NavStateController
89 mContext = container.getContext(); in NavStateController()
180 mContext.getResources().getValue(alphaId, typedValue, true); in getAlphaFromResource()
186 return mContext.getColor(R.color.low_traffic); in getTrafficColor()
188 return mContext.getColor(R.color.medium_traffic); in getTrafficColor()
190 return mContext.getColor(R.color.high_traffic); in getTrafficColor()
193 return mContext.getColor(R.color.unknown_traffic); in getTrafficColor()
252 return mContext.getDrawable(R.drawable.direction_depart); in getManeuverIcon()
348 return mContext.getDrawable(R.drawable.direction_close); in getManeuverIcon()
350 return mContext.getDrawable(R.drawable.direction_close); in getManeuverIcon()
[all …]
/aosp12/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
H A DCellBroadcastReceiverTest.java123 doReturn(mContext).when(mContext).getApplicationContext(); in setUp()
188 verify(mContext).startService(mIntent); in testOnReceive_actionSmsEmergencyCbReceived()
199 verify(mContext).startService(mIntent); in testOnReceive_smsCbReceivedAction()
220 verify(mContext, never()).startService(any()); in testInitializeSharedPreference_ifSystemUser_invalidSub()
245 verify(mContext, never()).startService(any()); in testInitializeSharedPreference_ifSystemUser_firstSub()
250 verify(mContext, never()).startService(any()); in testInitializeSharedPreference_ifSystemUser_firstSub()
257 verify(mContext, never()).startService(any()); in testInitializeSharedPreference_ifSystemUser_firstSub()
262 verify(mContext, never()).startService(any()); in testInitializeSharedPreference_ifSystemUser_firstSub()
279 verify(mContext, never()).startService(any()); in testInitializeSharedPreference_ifSystemUser_carrierChange()
286 verify(mContext).startService(any()); in testInitializeSharedPreference_ifSystemUser_carrierChange()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
H A DPrivacySettingsEnterprisePreference.java37 private final Context mContext; field in PrivacySettingsEnterprisePreference
40 mContext = context.getApplicationContext(); in PrivacySettingsEnterprisePreference()
68 controllers.add(new NetworkLogsPreferenceController(mContext)); in createPreferenceControllers()
69 controllers.add(new BugReportsPreferenceController(mContext)); in createPreferenceControllers()
74 mContext, async)); in createPreferenceControllers()
80 mContext, async)); in createPreferenceControllers()
82 mContext)); in createPreferenceControllers()
84 mContext)); in createPreferenceControllers()
86 mContext)); in createPreferenceControllers()
90 mContext)); in createPreferenceControllers()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/enterprise/
H A DPrivacySettingsEnterprisePreference.java34 private final Context mContext; field in PrivacySettingsEnterprisePreference
37 mContext = context.getApplicationContext(); in PrivacySettingsEnterprisePreference()
65 controllers.add(new NetworkLogsPreferenceController(mContext)); in createPreferenceControllers()
66 controllers.add(new BugReportsPreferenceController(mContext)); in createPreferenceControllers()
71 mContext, async)); in createPreferenceControllers()
77 mContext, async)); in createPreferenceControllers()
79 mContext)); in createPreferenceControllers()
81 mContext)); in createPreferenceControllers()
83 mContext)); in createPreferenceControllers()
87 mContext)); in createPreferenceControllers()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DShowOnLockscreenNotificationPreferenceControllerTest.java54 private Context mContext; field in ShowOnLockscreenNotificationPreferenceControllerTest
68 mContext = RuntimeEnvironment.application; in setUp()
84 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_noNotifsOnLockscreen()
88 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_noNotifsOnLockscreen()
103 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_alertingNotifsOnLockscreen()
106 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_alertingNotifsOnLockscreen()
120 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_allNotifsOnLockscreen()
123 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_allNotifsOnLockscreen()
149 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo()
152 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo()
[all …]
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationTest.java244 n1 = new Notification.Builder(mContext, "test"); in testRemoteViews_nullChange()
245 n2 = new Notification.Builder(mContext, "test") in testRemoteViews_nullChange()
249 n1 = new Notification.Builder(mContext, "test") in testRemoteViews_nullChange()
251 n2 = new Notification.Builder(mContext, "test"); in testRemoteViews_nullChange()
254 n1 = new Notification.Builder(mContext, "test"); in testRemoteViews_nullChange()
255 n2 = new Notification.Builder(mContext, "test") in testRemoteViews_nullChange()
259 n1 = new Notification.Builder(mContext, "test"); in testRemoteViews_nullChange()
260 n2 = new Notification.Builder(mContext, "test"); in testRemoteViews_nullChange()
350 Notification n1 = new Notification.Builder(mContext, "test") in testActionsDifferent_null()
352 Notification n2 = new Notification.Builder(mContext, "test") in testActionsDifferent_null()
[all …]
H A DNotificationComparatorTest.java63 @Mock Context mContext; field in NotificationComparatorTest
98 when(mContext.getResources()).thenReturn(getContext().getResources()); in setUp()
99 when(mContext.getTheme()).thenReturn(getContext().getTheme()); in setUp()
101 when(mContext.getPackageManager()).thenReturn(mPm); in setUp()
104 when(mContext.getString(anyInt())).thenCallRealMethod(); in setUp()
105 when(mContext.getColor(anyInt())).thenCallRealMethod(); in setUp()
111 when(mContext.getApplicationInfo()).thenReturn(legacy); in setUp()
116 smsPkg = Settings.Secure.getString(mContext.getContentResolver(), in setUp()
123 mRecordMinCallNonInterruptive = new NotificationRecord(mContext, in setUp()
131 Notification n1 = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp()
[all …]
/aosp12/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/
H A DQuickAccessWalletClientTest.java77 setDefaultPaymentApp(mContext.getPackageName()); in isWalletServiceAvailable_serviceAvailable_returnsTrue()
87 setDefaultPaymentApp(mContext.getPackageName()); in isWalletServiceAvailable_returnsFalseIfServiceUnavailable()
106 setDefaultPaymentApp(mContext.getPackageName()); in isWalletFeatureAvailable_happyCase()
109 ContentResolver cr = mContext.getContentResolver(); in isWalletFeatureAvailable_happyCase()
119 setDefaultPaymentApp(mContext.getPackageName()); in isWalletFeatureAvailable_wrongUser()
122 ContentResolver cr = mContext.getContentResolver(); in isWalletFeatureAvailable_wrongUser()
133 setDefaultPaymentApp(mContext.getPackageName()); in isWalletFeatureAvailable_userSetupIncomplete()
145 setDefaultPaymentApp(mContext.getPackageName()); in isWalletFeatureAvailable_globalActionsPanelDisabled()
148 ContentResolver cr = mContext.getContentResolver(); in isWalletFeatureAvailable_globalActionsPanelDisabled()
160 setDefaultPaymentApp(mContext.getPackageName()); in isWalletFeatureAvailable_userInLockdown()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
H A DOneHandedActionPullDownPrefControllerTest.java39 private Context mContext; field in OneHandedActionPullDownPrefControllerTest
46 mContext = RuntimeEnvironment.application; in setUp()
47 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
49 mPreference = new RadioButtonPreference(mContext); in setUp()
72 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, false); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
73 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
82 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
83 mUtils.setNavigationBarMode(mContext, "0" /* 3 button */); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
92 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in getAvailabilityStatus_setNaviGesturalMode_shouldEnabled()
114 mUtils.setShortcutEnabled(mContext, true); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
[all …]
H A DOneHandedActionShowNotificationPrefControllerTest.java39 private Context mContext; field in OneHandedActionShowNotificationPrefControllerTest
46 mContext = RuntimeEnvironment.application; in setUp()
47 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
49 mPreference = new RadioButtonPreference(mContext); in setUp()
55 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in updateState_setGesturalMode_shouldEnabled()
56 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in updateState_setGesturalMode_shouldEnabled()
91 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
92 mUtils.setNavigationBarMode(mContext, "0" /* 3 button */); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
101 OneHandedSettingsUtils.setOneHandedModeEnabled(mContext, true); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
113 mUtils.setShortcutEnabled(mContext, true); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
[all …]
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DWifiInjector.java133 private final WifiContext mContext; field in WifiInjector
258 mContext = context; in WifiInjector()
260 mWifiGlobals = new WifiGlobals(mContext); in WifiInjector()
261 mScoringParams = new ScoringParams(mContext); in WifiInjector()
265 mContext, mFrameworkFacade); in WifiInjector()
296 mFrameworkFacade, mContext); in WifiInjector()
343 mFrameworkFacade, mContext); in WifiInjector()
346 mContext); in WifiInjector()
371 new NetworkListSharedStoreData(mContext), in WifiInjector()
372 new NetworkListUserStoreData(mContext), in WifiInjector()
[all …]
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/development/
H A DDevelopmentSettingsUtilTest.java39 private Context mContext = ApplicationProvider.getApplicationContext(); field in DevelopmentSettingsUtilTest
40 private Context mSpiedContext = spy(mContext);
59 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_isAdmin_shouldReturnFalse()
69 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_isAdmin_shouldReturnTrue()
80 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_shouldReturnFalse()
91 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse()
105 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_doesNotHaveDisallowDebuggingRestriction_shouldReturnTrue()
114 Settings.Global.putInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setTrue()
119 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setTrue()
125 Settings.Global.putInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setFalse()
[all …]
/aosp12/frameworks/base/tests/testables/tests/src/android/testing/
H A DTestablePermissionsTest.java49 mContext.checkPermission(permission.INTERACT_ACROSS_USERS, 0, 0)); in testCheck()
51 mContext.checkPermission(permission.INTERACT_ACROSS_USERS_FULL, 0, 0)); in testCheck()
56 mContext.getTestablePermissions().setPermission(URI_1, PERMISSION_GRANTED); in testCheckUri()
57 mContext.getTestablePermissions().setPermission(URI_2, PERMISSION_DENIED); in testCheckUri()
59 assertEquals(PERMISSION_GRANTED, mContext.checkUriPermission(URI_1, 0, 0, 0)); in testCheckUri()
60 assertEquals(PERMISSION_DENIED, mContext.checkUriPermission(URI_2, 0, 0, 0)); in testCheckUri()
67 mContext.enforceCallingOrSelfPermission(permission.INTERACT_ACROSS_USERS, ""); in testEnforceNoException()
79 mContext.getTestablePermissions().setPermission(URI_1, PERMISSION_GRANTED); in testEnforceUriNoException()
80 mContext.enforceUriPermission(URI_1, 0, 0, 0, ""); in testEnforceUriNoException()
85 mContext.getTestablePermissions().setPermission(URI_1, PERMISSION_DENIED); in testEnforceUriWithException()
[all …]
H A DTestableResourcesTest.java43 Resources before = mContext.getResources(); in testLazyInit()
44 mContext.ensureTestableResources(); in testLazyInit()
45 Resources after = mContext.getResources(); in testLazyInit()
54 mContext.getColor(nonExistentId); in testAddingResource()
60 assertEquals(0xffffff, mContext.getColor(nonExistentId)); in testAddingResource()
68 assertEquals(0xffffff, mContext.getColor(nonExistentId)); in testClearingResource()
71 mContext.getColor(nonExistentId); in testClearingResource()
81 assertNotNull(mContext.getString(existentId)); in testOverrideExisting()
84 assertEquals("Other strings", mContext.getString(existentId)); in testOverrideExisting()
91 assertNotNull(mContext.getString(existentId)); in testNonExistentException()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
H A DAccessibilityFloatingMenu.java59 private final Context mContext; field in AccessibilityFloatingMenu
86 getOpacityValue(mContext));
99 mContext = context; in AccessibilityFloatingMenu()
107 mContext = context; in AccessibilityFloatingMenu()
127 getOpacityValue(mContext)); in show()
128 mMenuView.setSizeType(getSizeType(mContext)); in show()
129 mMenuView.setShapeType(getShapeType(mContext)); in show()
166 if (isMigrationTooltipPromptEnabled(mContext)) { in showMigrationTooltipIfNecessary()
184 savePosition(mContext, position); in onDragEnd()
185 showDockTooltipIfNecessary(mContext); in onDragEnd()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DHdmiCecConfigTest.java63 private Context mContext; field in HdmiCecConfigTest
69 Resources resources = mContext.getResources(); in setBooleanResource()
81 HdmiCecConfig hdmiCecConfig = new HdmiCecConfig(mContext, mStorageAdapter); in getAllCecSettings_BasicSanity()
102 HdmiCecConfig hdmiCecConfig = new HdmiCecConfig(mContext, mStorageAdapter); in getUserCecSettings_BasicSanity()
124 HdmiCecConfig hdmiCecConfig = new HdmiCecConfig(mContext, mStorageAdapter); in getUserCecSettings_WithOverride()
144 HdmiCecConfig hdmiCecConfig = new HdmiCecConfig(mContext, mStorageAdapter); in isStringValueType_InvalidSetting()
151 HdmiCecConfig hdmiCecConfig = new HdmiCecConfig(mContext, mStorageAdapter); in isStringValueType_BasicSanity()
275 () -> new HdmiCecConfig(mContext, mStorageAdapter)); in getDefaultStringValue_MultipleDefaults()
282 () -> new HdmiCecConfig(mContext, mStorageAdapter)); in getDefaultStringValue_NoDefault()
529 String originalValue = Global.getString(mContext.getContentResolver(), in globalSettingObserver_BasicSanity()
[all …]
/aosp12/frameworks/base/core/java/android/content/
H A DClipboardManager.java73 private final Context mContext; field in ClipboardManager
114 mContext = context; in ClipboardManager()
132 mService.setPrimaryClip(clip, mContext.getOpPackageName(), mContext.getUserId()); in setPrimaryClip()
157 clip, mContext.getOpPackageName(), mContext.getUserId(), sourcePackage); in setPrimaryClipAsPackage()
170 mService.clearPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in clearPrimaryClip()
186 return mService.getPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in getPrimaryClip()
204 mContext.getUserId()); in getPrimaryClipDescription()
218 return mService.hasPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in hasPrimaryClip()
230 mContext.getUserId()); in addPrimaryClipChangedListener()
283 return mService.hasClipboardText(mContext.getOpPackageName(), mContext.getUserId()); in hasText()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/notification/zen/
H A DZenModeSettings.java107 private Context mContext; field in ZenModeSettings.SummaryBuilder
110 mContext = context; in SummaryBuilder()
158 return mContext.getString(R.string.zen_mode_none_calls); in getCallsSettingSummary()
160 return mContext.getString(R.string.zen_mode_calls_summary_one, in getCallsSettingSummary()
163 return mContext.getString(R.string.zen_mode_calls_summary_two, in getCallsSettingSummary()
174 return mContext.getString(R.string.zen_mode_none_messages); in getMessagesSettingSummary()
181 int zenMode = NotificationManager.from(mContext).getZenMode(); in getSoundSummary()
205 return mContext.getResources().getString( in getBlockedEffectsSummary()
208 return mContext.getResources().getString( in getBlockedEffectsSummary()
211 return mContext.getResources().getString( in getBlockedEffectsSummary()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DCreateViewTest.java42 new CreateViewTest.ViewOne(mContext); in testLayout1()
56 ViewOne one = new ViewOne(mContext); in testLayout3()
59 ViewOne two = new ViewOne(mContext); in testLayout3()
62 ViewOne three = new ViewOne(mContext); in testLayout3()
65 ViewOne four = new ViewOne(mContext); in testLayout3()
68 ViewOne five = new ViewOne(mContext); in testLayout3()
71 ViewOne six = new ViewOne(mContext); in testLayout3()
77 TextView text = new TextView(mContext); in testLayout4()
94 TextView one = new TextView(mContext); in testLayout6()
98 TextView two = new TextView(mContext); in testLayout6()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
H A DSliceBuilderUtilsTest.java77 private Context mContext; field in SliceBuilderUtilsTest
82 mContext = RuntimeEnvironment.application; in setUp()
159 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_allowDynamicSummary_returnsControllerSummary()
172 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_allowDynamicSummary_nullSummary_returnsNull()
185 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_noScreenTitle_returnsPrefControllerSummary()
198 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_screenTitleMatchesTitle_returnsPrefControllerSummary()
221 new FakePreferenceController(mContext, KEY)); in getDynamicSummary_screenTitleAndControllerPlaceholder_returnsSliceEmptyString()
288 Settings.Global.putInt(mContext.getContentResolver(), in testUnsupportedSlice_validTitleSummary()
301 Settings.Global.putInt(mContext.getContentResolver(), in testDisabledForUserSlice_validTitleSummary()
314 Settings.Global.putInt(mContext.getContentResolver(), in testDisabledDependentSettingSlice_validTitleSummary()
[all …]
/aosp12/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java247 long curCon = mContext; in nContextDestroy()
249 mContext = 0; in nContextDestroy()
282 rsnContextFinish(mContext); in nContextFinish()
324 rsnContextPause(mContext); in nContextPause()
329 rsnContextResume(mContext); in nContextResume()
412 if (mContext != 0) { in nObjDestroy()
567 rsnAllocationData2D(mContext, in nAllocationData2D()
1033 long mContext; field in RenderScript
1245 if (mContext == 0) { in validate()
1427 if (rs.mContext == 0) { in internalCreate()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/app/backup/
H A DFullBackupTest.java45 private Context mContext; field in FullBackupTest
54 mContext = getContext(); in setUp()
66 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyInclude()
88 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag()
113 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag()
134 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag()
159 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionAndD2DFlags()
185 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlagAndIngoreGarbage()
223 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyExclude()
293 mContext.getDatabasePath("foo").getParentFile(), in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes()
[all …]

12345678910>>...178