/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 46 private Context mContext; field in FormatterTest 50 mContext = InstrumentationRegistry.getContext(); in setup() 51 mOriginalLocale = mContext.getResources() in setup() 100 BytesResult r = Formatter.formatBytes(mContext.getResources(), 1, 0); in testFormatBytes() 138 assertEquals("3 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 12 * HOUR)); in testFormatShortElapsedTime() 139 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY + 11 * HOUR)); in testFormatShortElapsedTime() 140 assertEquals("2 days", Formatter.formatShortElapsedTime(mContext, 2 * DAY)); in testFormatShortElapsedTime() 142 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime() 144 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); in testFormatShortElapsedTime() 145 assertEquals("1 day", Formatter.formatShortElapsedTime(mContext, 1 * DAY)); in testFormatShortElapsedTime() [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableResourcesTest.java | 39 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext()); field in TestableResourcesTest 43 Resources before = mContext.getResources(); in testLazyInit() 44 mContext.ensureTestableResources(); in testLazyInit() 45 Resources after = mContext.getResources(); in testLazyInit() 54 mContext.getColor(nonExistentId); in testAddingResource() 58 mContext.getOrCreateTestableResources().addOverride(nonExistentId, 0xffffff); in testAddingResource() 60 assertEquals(0xffffff, mContext.getColor(nonExistentId)); in testAddingResource() 67 mContext.getOrCreateTestableResources().addOverride(nonExistentId, 0xffffff); in testClearingResource() 68 assertEquals(0xffffff, mContext.getColor(nonExistentId)); in testClearingResource() 69 mContext.getOrCreateTestableResources().removeOverride(nonExistentId); in testClearingResource() [all …]
|
D | TestablePermissionsTest.java | 40 public TestableContext mContext = new TestableContext(InstrumentationRegistry.getContext()); field in TestablePermissionsTest 44 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, in testCheck() 46 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS_FULL, in testCheck() 49 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() 65 mContext.getTestablePermissions().setPermission(permission.INTERACT_ACROSS_USERS, in testEnforceNoException() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiInjector.java | 84 private final Context mContext; field in WifiInjector 175 mContext = context; in WifiInjector() 178 mContext, getWifiStackPackageName(), mFrameworkFacade); in WifiInjector() 180 Secure.getString(mContext.getContentResolver(), Secure.ANDROID_ID)); in WifiInjector() 181 mSettingsStore = new WifiSettingsStore(mContext); in WifiInjector() 182 mWifiPermissionsWrapper = new WifiPermissionsWrapper(mContext); in WifiInjector() 183 mNetworkScoreManager = mContext.getSystemService(NetworkScoreManager.class); in WifiInjector() 184 mWifiNetworkScoreCache = new WifiNetworkScoreCache(mContext); in WifiInjector() 187 mWifiPermissionsUtil = new WifiPermissionsUtil(mWifiPermissionsWrapper, mContext, in WifiInjector() 188 UserManager.get(mContext), this); in WifiInjector() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ScreenDecorationsTest.java | 101 mView = spy(new StatusBarWindowView(mContext, null)); in setup() 103 mContext.putComponent(StatusBar.class, mStatusBar); in setup() 105 Display display = mContext.getSystemService(WindowManager.class).getDefaultDisplay(); in setup() 107 mContext.addMockSystemService(WindowManager.class, mWindowManager); in setup() 137 mScreenDecorations.mContext = mContext; in setup() 138 mScreenDecorations.mComponents = mContext.getComponents(); in setup() 144 mContext.getOrCreateTestableResources().addOverride( in testNoRounding_NoCutout() 146 mContext.getOrCreateTestableResources().addOverride( in testNoRounding_NoCutout() 148 mContext.getOrCreateTestableResources().addOverride( in testNoRounding_NoCutout() 150 mContext.getOrCreateTestableResources().addOverride( in testNoRounding_NoCutout() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | CreateViewTest.java | 42 new CreateViewTest.ViewOne(mContext); in testLayout1() 47 LinearLayout vert = new LinearLayout(mContext); in testLayout2() 48 vert.addView(new CreateViewTest.ViewOne(mContext), in testLayout2() 54 LinearLayout vert = new LinearLayout(mContext); in testLayout3() 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() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationTest.java | 78 Notification.Builder nb = new Notification.Builder(mContext, "channel"); in testStripsExtendersInLowRamModeNoWhitelistNoTv() 104 Notification.Builder nb = new Notification.Builder(mContext, "channel"); in testStripsExtendersInLowRamModeHasWhitelist() 111 Context context = spy(mContext); in testStripsExtendersInLowRamModeHasWhitelist() 130 Context context = spy(mContext); in testStripsRemoteViewsInLowRamMode() 144 mContext); in testStripsRemoteViewsInLowRamMode() 155 Notification.Builder nb = new Notification.Builder(mContext, "channel"); in testDoesNotStripsExtendersInNormalRamMode() 161 mContext); in testDoesNotStripsExtendersInNormalRamMode() 172 Notification.Builder n1 = new Notification.Builder(mContext, "test"); in testStyleChangeVisiblyDifferent_noStyles() 173 Notification.Builder n2 = new Notification.Builder(mContext, "test"); in testStyleChangeVisiblyDifferent_noStyles() 180 Notification.Builder n1 = new Notification.Builder(mContext, "test"); in testStyleChangeVisiblyDifferent_noStyleToStyle() [all …]
|
D | NotificationComparatorTest.java | 58 @Mock Context mContext; field in NotificationComparatorTest 92 when(mContext.getResources()).thenReturn(getContext().getResources()); in setUp() 93 when(mContext.getContentResolver()).thenReturn(getContext().getContentResolver()); in setUp() 94 when(mContext.getPackageManager()).thenReturn(mPm); in setUp() 95 when(mContext.getSystemService(eq(Context.TELECOM_SERVICE))).thenReturn(mTm); in setUp() 101 when(mContext.getApplicationInfo()).thenReturn(legacy); in setUp() 106 smsPkg = Settings.Secure.getString(mContext.getContentResolver(), in setUp() 109 Notification nonInterruptiveNotif = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp() 113 mRecordMinCallNonInterruptive = new NotificationRecord(mContext, in setUp() 121 Notification n1 = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 52 private Context mContext; field in AdaptiveIconTest 57 mContext = RuntimeEnvironment.application; in setUp() 59 mActivityInfo.packageName = mContext.getPackageName(); in setUp() 67 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in createIcon_shouldSetBackgroundAndInset() 76 spy(new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK))); in setBackgroundColor_shouldUpdateColorFilter() 89 doReturn(Icon.createWithResource(mContext, R.drawable.ic_system_update)) in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 90 .when(tile).getIcon(mContext); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 92 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 94 icon.setBackgroundColor(mContext, tile); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 101 doReturn(Icon.createWithResource(mContext, R.drawable.ic_system_update)) in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ClipboardManager.java | 51 private final Context mContext; field in ClipboardManager 88 mContext = context; in ClipboardManager() 106 mService.setPrimaryClip(clip, mContext.getOpPackageName(), mContext.getUserId()); in setPrimaryClip() 119 mService.clearPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in clearPrimaryClip() 135 return mService.getPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in getPrimaryClip() 152 return mService.getPrimaryClipDescription(mContext.getOpPackageName(), in getPrimaryClipDescription() 153 mContext.getUserId()); in getPrimaryClipDescription() 167 return mService.hasPrimaryClip(mContext.getOpPackageName(), mContext.getUserId()); in hasPrimaryClip() 178 mPrimaryClipChangedServiceListener, mContext.getOpPackageName(), in addPrimaryClipChangedListener() 179 mContext.getUserId()); in addPrimaryClipChangedListener() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | FullBackupTest.java | 43 private Context mContext; field in FullBackupTest 52 mContext = getContext(); in setUp() 64 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyInclude() 74 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyInclude() 86 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag() 96 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireEncryptionFlag() 111 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag() 118 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testParseBackupSchemeFromXml_onlyIncludeRequireFakeEncryptionFlag() 132 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag() 142 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyIncludeRequireD2DFlag() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
D | DevelopmentSettingsEnablerTest.java | 36 private Context mContext; field in DevelopmentSettingsEnablerTest 41 mContext = RuntimeEnvironment.application; in setUp() 42 mUserManager = Shadow.extract(mContext.getSystemService(UserManager.class)); in setUp() 48 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_noRestriction_isAdmin_shouldReturnTrue() 51 assertThat(DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(mContext)).isFalse(); in isEnabled_settingsOn_noRestriction_isAdmin_shouldReturnTrue() 53 DevelopmentSettingsEnabler.setDevelopmentSettingsEnabled(mContext, true); in isEnabled_settingsOn_noRestriction_isAdmin_shouldReturnTrue() 55 assertThat(DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(mContext)).isTrue(); in isEnabled_settingsOn_noRestriction_isAdmin_shouldReturnTrue() 60 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_noRestriction_isAdmin_shouldReturnFalse() 63 assertThat(DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(mContext)).isTrue(); in isEnabled_settingsOff_noRestriction_isAdmin_shouldReturnFalse() 65 DevelopmentSettingsEnabler.setDevelopmentSettingsEnabled(mContext, false); in isEnabled_settingsOff_noRestriction_isAdmin_shouldReturnFalse() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScript.java | 242 long curCon = mContext; in nContextDestroy() 244 mContext = 0; in nContextDestroy() 252 rsnContextSetSurface(mContext, w, h, sur); in nContextSetSurface() 257 rsnContextSetSurfaceTexture(mContext, w, h, sur); in nContextSetSurfaceTexture() 262 rsnContextSetPriority(mContext, p); in nContextSetPriority() 267 rsnContextSetCacheDir(mContext, cacheDir); in nContextSetCacheDir() 272 rsnContextDump(mContext, bits); in nContextDump() 277 rsnContextFinish(mContext); in nContextFinish() 283 rsnContextSendMessage(mContext, id, data); in nContextSendMessage() 289 rsnContextBindRootScript(mContext, script); in nContextBindRootScript() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | KeyValueBackupJobTest.java | 37 private Context mContext; field in KeyValueBackupJobTest 45 mContext = RuntimeEnvironment.application; in setUp() 46 mConstants = new BackupManagerConstants(Handler.getMain(), mContext.getContentResolver()); in setUp() 56 KeyValueBackupJob.cancel(mUserOneId, mContext); in tearDown() 57 KeyValueBackupJob.cancel(mUserTwoId, mContext); in tearDown() 68 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterScheduling_returnsTrue() 69 KeyValueBackupJob.schedule(mUserTwoId, mContext, mConstants); in testIsScheduled_afterScheduling_returnsTrue() 77 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalse() 78 KeyValueBackupJob.schedule(mUserTwoId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalse() 79 KeyValueBackupJob.cancel(mUserOneId, mContext); in testIsScheduled_afterCancelling_returnsFalse() [all …]
|
D | FullBackupJobTest.java | 42 private Context mContext; field in FullBackupJobTest 51 mContext = RuntimeEnvironment.application; in setUp() 52 mConstants = new BackupManagerConstants(Handler.getMain(), mContext.getContentResolver()); in setUp() 55 mShadowJobScheduler = Shadows.shadowOf(mContext.getSystemService(JobScheduler.class)); in setUp() 64 FullBackupJob.cancel(mUserOneId, mContext); in tearDown() 65 FullBackupJob.cancel(mUserTwoId, mContext); in tearDown() 70 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testSchedule_afterScheduling_jobExists() 71 FullBackupJob.schedule(mUserTwoId, mContext, 0, mConstants); in testSchedule_afterScheduling_jobExists() 79 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testCancel_afterCancelling_jobDoesntExist() 80 FullBackupJob.schedule(mUserTwoId, mContext, 0, mConstants); in testCancel_afterCancelling_jobDoesntExist() [all …]
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderProxy.cpp | 44 : mRenderThread(RenderThread::getInstance()), mContext(nullptr) { in RenderProxy() 45 mContext = mRenderThread.queue().runSync([&]() -> CanvasContext* { in RenderProxy() 48 mDrawFrameTask.setContext(&mRenderThread, mContext, rootRenderNode); in RenderProxy() 56 if (mContext) { in destroyContext() 60 mRenderThread.queue().runSync([this]() { delete mContext; }); in destroyContext() 61 mContext = nullptr; in destroyContext() 66 mRenderThread.queue().post([this, swapBehavior]() { mContext->setSwapBehavior(swapBehavior); }); in setSwapBehavior() 72 if (mContext->profiler().consumeProperties()) { in loadSystemProperties() 82 mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); }); in setName() 87 mContext->setSurface(std::move(surf), enableTimeout); in setSurface() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 143 private DpmMockContext mContext; field in DevicePolicyManagerTest 182 mContext = getContext(); in setUp() 183 mServiceContext = mContext; in setUp() 228 final long ident = mContext.binder.clearCallingIdentity(); in initializeDpms() 231 dpms = new DevicePolicyManagerServiceTestable(getServices(), mContext); in initializeDpms() 235 dpm = new DevicePolicyManagerTestable(mContext, dpms); in initializeDpms() 237 mContext.binder.restoreCallingIdentity(ident); in initializeDpms() 291 new DevicePolicyManagerServiceTestable(getServices(), mContext); in testHasNoFeature() local 351 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin_SecurityException() 368 mContext.callerPermissions.add(android.Manifest.permission.MANAGE_DEVICE_ADMINS); in testSetActiveAdmin() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationTest.java | 54 private Context mContext; field in NotificationTest 58 mContext = InstrumentationRegistry.getContext(); in setUp() 63 Notification n = new Notification.Builder(mContext, "test") in testColorizedByPermission() 69 n = new Notification.Builder(mContext, "test") in testColorizedByPermission() 74 n = new Notification.Builder(mContext, "test") in testColorizedByPermission() 83 Notification n = new Notification.Builder(mContext, "test") in testColorizedByForeground() 89 n = new Notification.Builder(mContext, "test") in testColorizedByForeground() 94 n = new Notification.Builder(mContext, "test") in testColorizedByForeground() 120 Notification n = new Notification.Builder(mContext).build(); in testHasCompletedProgress_noProgress() 127 Notification n = new Notification.Builder(mContext) in testHasCompletedProgress_complete() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ShortcutManager.java | 65 private final Context mContext; field in ShortcutManager 73 mContext = context; in ShortcutManager() 102 return mService.setDynamicShortcuts(mContext.getPackageName(), in setDynamicShortcuts() 121 return mService.getDynamicShortcuts(mContext.getPackageName(), injectMyUserId()) in getDynamicShortcuts() 140 return mService.getManifestShortcuts(mContext.getPackageName(), injectMyUserId()) in getManifestShortcuts() 162 return mService.addDynamicShortcuts(mContext.getPackageName(), in addDynamicShortcuts() 176 mService.removeDynamicShortcuts(mContext.getPackageName(), shortcutIds, in removeDynamicShortcuts() 190 mService.removeAllDynamicShortcuts(mContext.getPackageName(), injectMyUserId()); in removeAllDynamicShortcuts() 208 return mService.getPinnedShortcuts(mContext.getPackageName(), injectMyUserId()) in getPinnedShortcuts() 229 return mService.updateShortcuts(mContext.getPackageName(), in updateShortcuts() [all …]
|
/frameworks/base/cmds/statsd/src/logd/ |
D | LogEvent.cpp | 39 mContext = in LogEvent() 43 init(mContext); in LogEvent() 44 if (mContext) { in LogEvent() 46 android_log_destroy(&mContext); in LogEvent() 127 mContext = create_android_logger(1937006964); // the event tag shared by all stats logs in LogEvent() 128 if (mContext) { in LogEvent() 129 android_log_write_int64(mContext, elapsedTimestampNs); in LogEvent() 130 android_log_write_int32(mContext, tagId); in LogEvent() 231 mContext = create_android_logger(1937006964); // the event tag shared by all stats logs in LogEvent() 232 if (mContext) { in LogEvent() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | HashedStringCacheTest.java | 43 private Context mContext; field in HashedStringCacheTest 48 mContext = null; in setup() 49 mContext = InstrumentationRegistry.getContext(); in setup() 69 cache.hashString(mContext, TAG, TEST_STRING, 7); in testHashedStringNotOriginalString() 77 cache.hashString(mContext, TAG, TEST_STRING, 7); in testThatMultipleCallsResultInSameHash() 79 cache.hashString(mContext, TAG, TEST_STRING, 7); in testThatMultipleCallsResultInSameHash() 88 cache.hashString(mContext, TAG, TEST_STRING, 7); in testThatMultipleInputResultInDifferentHash() 90 cache.hashString(mContext, TAG, "different_test", 7); in testThatMultipleInputResultInDifferentHash() 98 cache.hashString(mContext, TAG, TEST_STRING, 7); in testThatZeroDaysResultsInNewHash() 100 cache.hashString(mContext, TAG, TEST_STRING, 0); in testThatZeroDaysResultsInNewHash() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | StringUtilTest.java | 37 private Context mContext; field in StringUtilTest 41 mContext = spy(RuntimeEnvironment.application); in setUp() 49 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true).toString()) in testFormatElapsedTime_WithSeconds_ShowSeconds() 58 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_NoSeconds_DoNotShowSeconds() 68 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly() 77 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_ZeroFieldsInTheMiddleDontShow() 86 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, true).toString()) in testFormatElapsedTime_FormatZero_WithSeconds() 95 assertThat(StringUtil.formatElapsedTime(mContext, testMillis, false).toString()) in testFormatElapsedTime_FormatZero_NoSeconds() 104 StringUtil.formatElapsedTime(mContext, testMillis, false); in testFormatElapsedTime_onlyContainsMinute_hasTtsSpan() 120 assertThat(StringUtil.formatRelativeTime(mContext, testMillis, true, in testFormatRelativeTime_WithSeconds_ShowSeconds() [all …]
|
D | PowerUtilTest.java | 51 private Context mContext; field in PowerUtilTest 56 mContext = spy(RuntimeEnvironment.application); in setup() 61 String info = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_withPercentage() 65 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_withPercentage() 87 String info = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_noPercentage() 91 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_moreThanFifteenMinutes_noPercentage() 113 String info = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_lessThanSevenMinutes_usesCorrectString() 117 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_lessThanSevenMinutes_usesCorrectString() 130 String info = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_betweenSevenAndFifteenMinutes_usesCorrectString() 134 String info2 = PowerUtil.getBatteryRemainingStringFormatted(mContext, in testGetBatteryRemainingStringFormatted_betweenSevenAndFifteenMinutes_usesCorrectString() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | RotationLockControllerImpl.java | 32 private final Context mContext; field in RotationLockControllerImpl 46 mContext = context; in RotationLockControllerImpl() 60 return RotationPolicy.getRotationLockOrientation(mContext); in getRotationLockOrientation() 64 return RotationPolicy.isRotationLocked(mContext); in isRotationLocked() 68 RotationPolicy.setRotationLock(mContext, locked); in setRotationLocked() 72 RotationPolicy.setRotationLockAtAngle(mContext, locked, rotation); in setRotationLockedAtAngle() 76 return RotationPolicy.isRotationLockToggleVisible(mContext); in isRotationLockAffordanceVisible() 82 RotationPolicy.registerRotationPolicyListener(mContext, mRotationPolicyListener, in setListening() 85 RotationPolicy.unregisterRotationPolicyListener(mContext, mRotationPolicyListener); in setListening() 96 callback.onRotationLockStateChanged(RotationPolicy.isRotationLocked(mContext), in notifyChanged() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/ |
D | MffEnvironment.java | 34 private FilterContext mContext; field in MffEnvironment 50 mContext = new FilterContext(); in MffEnvironment() 51 mContext.setFrameManager(frameManager); in MffEnvironment() 59 return mContext; in getContext() 67 mContext.initGLEnvironment(glEnvironment); in setGLEnvironment() 85 GLEnvironment glEnv = mContext.getGLEnvironment(); in activateGLEnvironment() 87 mContext.getGLEnvironment().activate(); in activateGLEnvironment() 99 GLEnvironment glEnv = mContext.getGLEnvironment(); in deactivateGLEnvironment() 101 mContext.getGLEnvironment().deactivate(); in deactivateGLEnvironment()
|