Home
last modified time | relevance | path

Searched refs:getContext (Results 1 – 25 of 1724) sorted by relevance

12345678910>>...69

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsNotedWatcherTest.java63 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchNotedOps()
69 getContext().getPackageName()); in testWatchNotedOps()
71 getContext().getPackageName()); in testWatchNotedOps()
77 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps()
78 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchNotedOps()
83 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps()
84 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchNotedOps()
104 getContext().getPackageName()); in testWatchNotedOps()
109 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchNotedOps()
110 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchNotedOps()
[all …]
DAppOpsActiveWatcherTest.java79 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchActiveOps()
81 AppOpsManager.OPSTR_RECORD_AUDIO}, getContext().getMainExecutor(), listener); in testWatchActiveOps()
89 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchActiveOps()
100 Process.myUid(), getContext().getPackageName())).isTrue(); in testWatchActiveOps()
108 eq(Process.myUid()), eq(getContext().getPackageName()), isNull(), in testWatchActiveOps()
113 Process.myUid(), getContext().getPackageName())).isFalse(); in testWatchActiveOps()
138 getContext().getMainExecutor(), listener); in testWatchActiveOps()
146 eq(Process.myUid()), eq(getContext().getPackageName()), isNull(), in testWatchActiveOps()
164 getContext().getSystemService(PermissionManager.class); in testWatchActiveOpsForExternalDevice()
169 getContext().getOpPackageName(), in testWatchActiveOpsForExternalDevice()
[all …]
DAppOpsStartedWatcherTest.java63 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchStartedOps()
75 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchStartedOps()
76 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchStartedOps()
83 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchStartedOps()
84 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchStartedOps()
111 eq(Process.myUid()), eq(getContext().getPackageName()), in testWatchStartedOps()
112 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchStartedOps()
127 final VirtualDeviceManager virtualDeviceManager = getContext().getSystemService( in testWatchStartedOpsForExternalDevice()
139 getContext().getOpPackageName(), getContext().getAttributionTag(), in testWatchStartedOpsForExternalDevice()
142 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchStartedOpsForExternalDevice()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DInstallLocationUtilsTests.java169 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()
187 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()
245 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big()
251 volume = InstallLocationUtils.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputDialogReceiverTest.java63 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled()
64 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled()
67 .createAndShow(eq(getContext().getPackageName()), eq(false), any(), any(), any()); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled()
75 intent.putExtra("Wrong Package Name Key", getContext().getPackageName()); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled()
76 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled()
87 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_NoExtra_DialogFactoryNotCalled()
100 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in launchMediaOutputBroadcastDialog_flagOff_broadcastDialogFactoryNotCalled()
101 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_flagOff_broadcastDialogFactoryNotCalled()
114 intent.putExtra(MediaOutputConstants.EXTRA_PACKAGE_NAME, getContext().getPackageName()); in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled()
115 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityTest.java27 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()
DIntentSenderTest.java34 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in ignore_testRegisteredReceivePermissionGranted()
35 makeBroadcastIntent(BROADCAST_REGISTERED).setPackage(getContext().getPackageName()), in ignore_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 ignore_testLocalReceivePermissionDenied()
87 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, in ignore_testLocalReceivePermissionDenied()
DLaunchTest.java29 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()
DBroadcastTest.java113 intent.setPackage(getContext().getPackageName()); in makeBroadcastIntent()
183 getContext().registerReceiver(mReceiver, filter, permission, null, in registerMyReceiver()
196 getContext().unregisterReceiver(mReceiver); in unregisterMyReceiverNoCheck()
285 .setPackage(getContext().getPackageName()); in testResult()
286 getContext().sendOrderedBroadcast( in testResult()
321 Intent sticky = getContext().registerReceiver(null, filter, Context.RECEIVER_EXPORTED); in testSetSticky()
337 Intent sticky = getContext().registerReceiver(null, filter, Context.RECEIVER_EXPORTED); in testClearSticky()
351 Intent sticky = getContext().registerReceiver(null, filter, Context.RECEIVER_EXPORTED); in testReplaceSticky()
383 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REGISTERED)); in ignore_testRegisteredReceivePermissionGranted()
398 getContext().sendOrderedBroadcast( in testRegisteredReceivePermissionDenied()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DFindViewByIdTest.java41 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DIntentCreatorTest.java45 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()
66 getContext().getOrCreateTestableResources().addOverride(R.string.config_remoteCopyPackage, in test_getRemoteCopyIntent()
69 intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent()
75 getContext().getOrCreateTestableResources().addOverride(R.string.config_screenshotEditor, in test_getImageEditIntent()
78 Intent intent = IntentCreator.getImageEditIntent(fakeUri, getContext()); in test_getImageEditIntent()
89 getContext().getOrCreateTestableResources().addOverride(R.string.config_screenshotEditor, in test_getImageEditIntent()
91 intent = IntentCreator.getImageEditIntent(fakeUri, getContext()); in test_getImageEditIntent()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthService.java265 return getContext().getResources() in getUiPackage()
302 if (getContext().checkCallingOrSelfPermission(TEST_BIOMETRIC) in authenticate()
499 getContext().enforceCallingOrSelfPermission(USE_BIOMETRIC_INTERNAL, in getAuthenticatorIds()
562 result = getContext().getString(R.string.screen_lock_app_setting_name); in getButtonLabel()
565 result = getContext().getString(R.string.fingerprint_app_setting_name); in getButtonLabel()
568 result = getContext().getString(R.string.face_app_setting_name); in getButtonLabel()
571 result = getContext().getString(R.string.biometric_app_setting_name); in getButtonLabel()
611 result = getContext().getString( in getPromptMessage()
617 result = getContext().getString( in getPromptMessage()
620 result = getContext().getString( in getPromptMessage()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaPlayerUnitTest.java56 int vdmPlaybackSessionId = getContext().getSystemService( in testConstructionWithContext_virtualDeviceDefaultAudioPolicy()
70 int vdmPlaybackSessionId = getContext().getSystemService( in testConstructionWithContext_virtualDeviceCustomAudioPolicy()
83 int vdmPlaybackSessionId = getContext().getSystemService( in testConstructionWithContext_virtualSetSessionIdOverridesContext()
85 int anotherSessionId = getContext().getSystemService( in testConstructionWithContext_virtualSetSessionIdOverridesContext()
99 int vdmPlaybackSessionId = getContext().getSystemService( in testCreateFromResource_virtualDeviceDefaultAudioPolicy()
113 int vdmPlaybackSessionId = getContext().getSystemService( in testCreateFromResource_virtualDeviceCustomAudioPolicy()
126 int vdmPlaybackSessionId = getContext().getSystemService( in testCreateFromResource_explicitSessionIdOverridesContext()
128 int anotherSessionId = getContext().getSystemService( in testCreateFromResource_explicitSessionIdOverridesContext()
140 private Context getContext() { in getContext() method in MediaPlayerUnitTest
141 return InstrumentationRegistry.getInstrumentation().getContext(); in getContext()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DMccTableTest.java89 LocaleUtils.getLocaleFromMcc(getContext(), 302, null)); in testLocale()
91 LocaleUtils.getLocaleFromMcc(getContext(), 234, null)); in testLocale()
93 LocaleUtils.getLocaleFromMcc(getContext(), 0, "en")); in testLocale()
95 LocaleUtils.getLocaleFromMcc(getContext(), 454, null)); in testLocale()
97 LocaleUtils.getLocaleFromMcc(getContext(), 454, "en")); in testLocale()
99 LocaleUtils.getLocaleFromMcc(getContext(), 466, null)); in testLocale()
102 private Context getContext() { in getContext() method in MccTableTest
103 return InstrumentationRegistry.getContext(); in getContext()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationIntrusivenessExtractorTest.java44 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()
DGlobalSortKeyComparatorTest.java48 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()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java241 final ContentResolver cr = getContext().getContentResolver(); in onUserChanged()
381 final ContentResolver cr = getContext().getContentResolver(); in setUp()
417 setUpDisplayCompositionColorSpaces(getContext().getResources()); in setUp()
424 if (mNightDisplayTintController.isAvailable(getContext())) { in setUp()
429 mNightDisplayTintController.setUp(getContext(), dtm.needsLinearColorMatrix()); in setUp()
443 if (mDisplayWhiteBalanceTintController.isAvailable(getContext())) { in setUp()
445 mDisplayWhiteBalanceTintController.setUp(getContext(), true /* needsLinear */); in setUp()
450 if (mReduceBrightColorsTintController.isAvailable(getContext())) { in setUp()
451 mReduceBrightColorsTintController.setUp(getContext(), dtm.needsLinearColorMatrix()); in setUp()
465 getContext().getContentResolver().unregisterContentObserver(mContentObserver); in tearDown()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DDemoModeFragment.java72 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 …]
DPluginFragment.java64 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()
83 PreferenceScreen screen = getPreferenceManager().createPreferenceScreen(getContext()); in loadPrefs()
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()
[all …]
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DBottomSheetLayout.java51 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()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DBaseSettingsProviderTest.java80 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()
263 return Settings.System.getString(getContext().getContentResolver(), name); in getSetting()
275 Settings.Global.putString(getContext().getContentResolver(), name, value); in putSetting()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoDialog.java41 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()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic.cpp35 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in invokeFunction()
40 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in invokeRoot()
46 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in invokeInit()
51 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in setGlobalVar()
58 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in setGlobalVarWithElemDims()
63 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in setGlobalBind()
68 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in setGlobalObj()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DXmlConfigTests.java40 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.empty_config, in testEmptyConfigFile()
60 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.empty_trust, in testEmptyAnchors()
79 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.domain1, in testBasicDomainConfig()
116 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.pins1, in testBasicPinning()
132 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.expired_pin, in testExpiredPin()
147 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.override_pins, in testOverridesPins()
162 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.bad_pin, in testBadPin()
178 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.multiple_domains, in testMultipleDomains()
200 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.multiple_configs, in testMultipleDomainConfigs()
216 XmlConfigSource source = new XmlConfigSource(getContext(), R.xml.subdomains, in testIncludeSubdomains()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java90 mBatteryController = new BatteryControllerImpl(getContext(), in setUp()
122 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_true()
137 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_false()
152 mBatteryController.onReceive(getContext(), i); in testBatteryPresentState_notPresent()
167 mBatteryController.onReceive(getContext(), i); in testBatteryPresentState_callbackAddedAfterStateChange()
182 inOrder.verify(() -> BatterySaverUtils.setPowerSaveMode(getContext(), true, true, in testBatteryUtilsCalledOnSetPowerSaveMode()
184 inOrder.verify(() -> BatterySaverUtils.setPowerSaveMode(getContext(), false, true, in testBatteryUtilsCalledOnSetPowerSaveMode()
223 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_withChargingSourceDock_isChargingSourceDockTrue()
234 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_withChargingSourceNotDock_isChargingSourceDockFalse()
245 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_chargingStatusNotLongLife_outputsFalse()
[all …]

12345678910>>...69