Home
last modified time | relevance | path

Searched refs:CURRENT (Results 1 – 25 of 165) sorted by relevance

1234567

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DPackageUserKeyTest.java47 new PackageItemInfo(TEST_PACKAGE, UserHandle.CURRENT)); in fromPackageItemInfo_shouldCreateExpectedObject()
51 assertThat(packageUserKey.mUser).isEqualTo(UserHandle.CURRENT); in fromPackageItemInfo_shouldCreateExpectedObject()
56 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in constructor_packageNameAndUserHandle_shouldCreateExpectedObject()
60 assertThat(packageUserKey.mUser).isEqualTo(UserHandle.CURRENT); in constructor_packageNameAndUserHandle_shouldCreateExpectedObject()
65 PackageUserKey packageUserKey = new PackageUserKey(CONVERSATIONS, UserHandle.CURRENT); in constructor_widgetCategoryAndUserHandle_shouldCreateExpectedObject()
69 assertThat(packageUserKey.mUser).isEqualTo(UserHandle.CURRENT); in constructor_widgetCategoryAndUserHandle_shouldCreateExpectedObject()
74 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_sameObject_shouldReturnTrue()
82 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_differentObjectSameContent_shouldReturnTrue()
83 PackageUserKey otherPackageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_differentObjectSameContent_shouldReturnTrue()
90 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_compareAgainstNull_shouldReturnFalse()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallRedirectionProcessorTest.java125 when(mCallsManager.getCurrentUserHandle()).thenReturn(UserHandle.CURRENT); in setUp()
140 anyInt(), eq(UserHandle.CURRENT))).thenReturn(true); in setUp()
198 mProcessor.performCallRedirection(UserHandle.CURRENT); in testNoUserDefinedServiceNoCarrierSerivce()
200 any(ServiceConnection.class), anyInt(), eq(UserHandle.CURRENT)); in testNoUserDefinedServiceNoCarrierSerivce()
213 mProcessor.performCallRedirection(UserHandle.CURRENT); in testCarrierServiceTimeoutNoUserDefinedService()
215 any(ServiceConnection.class), anyInt(), eq(UserHandle.CURRENT)); in testCarrierServiceTimeoutNoUserDefinedService()
233 mProcessor.performCallRedirection(UserHandle.CURRENT); in testUserDefinedServiceTimeoutNoCarrierService()
235 any(ServiceConnection.class), anyInt(), eq(UserHandle.CURRENT)); in testUserDefinedServiceTimeoutNoCarrierService()
261 mProcessor.performCallRedirection(UserHandle.CURRENT); in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
264 any(ServiceConnection.class), anyInt(), eq(UserHandle.CURRENT)); in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
[all …]
DIncomingCallNotifierTest.java77 thenReturn(UserHandle.CURRENT); in setUp()
86 thenReturn(UserHandle.CURRENT); in setUp()
106 eq(UserHandle.CURRENT)); in testSingleCall()
120 eq(UserHandle.CURRENT)); in testIncomingDuringOngoingCall()
138 eq(UserHandle.CURRENT)); in testIncomingDuringOngoingCall2()
156 eq(UserHandle.CURRENT)); in testCallRemoved()
159 eq(IncomingCallNotifier.NOTIFICATION_INCOMING_CALL), eq(UserHandle.CURRENT)); in testCallRemoved()
180 eq(UserHandle.CURRENT)); in testDontShowDuringHandover1()
201 eq(UserHandle.CURRENT)); in testDontShowDuringHandover2()
DCallIntentProcessorTest.java114 intent.putExtra(CallIntentProcessor.KEY_INITIATING_USER, UserHandle.CURRENT); in testNonPrivateSpaceCall_noConsentDialogShown()
115 when(mCallsManager.isSelfManaged(any(), eq(UserHandle.CURRENT))).thenReturn(false); in testNonPrivateSpaceCall_noConsentDialogShown()
123 eq(UserHandle.CURRENT), eq(intent), eq(TEST_PACKAGE_NAME)); in testNonPrivateSpaceCall_noConsentDialogShown()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/drivemode/
DDriveModeThemeSwitcher.java77 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(packageName, UserHandle.CURRENT); in isOverlayActive()
85 mOverlayManager.setEnabled(packageName, true, UserHandle.CURRENT); in enableOverlay()
94 if (mOverlayManager.getOverlayInfo(overlayPackage, UserHandle.CURRENT).isEnabled()) { in disableActiveOverlays()
95 mOverlayManager.setEnabled(overlayPackage, false, UserHandle.CURRENT); in disableActiveOverlays()
109 UserHandle.CURRENT in createDriveModeToRROPackageMap()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryStateDaoTest.java40 private static final long CURRENT = System.currentTimeMillis(); field in BatteryStateDaoTest
41 private static final long TIMESTAMP1 = CURRENT;
42 private static final long TIMESTAMP2 = CURRENT + 2;
43 private static final long TIMESTAMP3 = CURRENT + 4;
DBatteryUsageSlotDaoTest.java40 private static final long CURRENT = System.currentTimeMillis(); field in BatteryUsageSlotDaoTest
41 private static final long TIMESTAMP1 = CURRENT;
42 private static final long TIMESTAMP2 = CURRENT + 2;
/packages/modules/SdkExtensions/javatests/com/android/os/ext/
DSdkExtensionsTest.java66 CURRENT, enumConstant
73 private static final Expectation CURRENT = Expectation.CURRENT; field in SdkExtensionsTest
92 case CURRENT: in assertVersion()
229 return SdkLevel.isAtLeastT() && isGoWithSideloadedModules() ? AT_LEAST_BASE : CURRENT; in dessertExpectation()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/drivemode/
DDriveModeThemeSwitcherTest.java80 UserHandle.CURRENT)).thenReturn(list); in initOverlayMock()
83 UserHandle.CURRENT)).thenReturn(mEcoRRO); in initOverlayMock()
85 UserHandle.CURRENT)).thenReturn(mSportRRO); in initOverlayMock()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserLifecycleEventFilterTest.java107 .addUser(UserHandle.CURRENT).build(); in testBuild_currentUser_notEvaluatedAtFilterCreation()
112 .containsExactly(UserHandle.CURRENT.getIdentifier()); in testBuild_currentUser_notEvaluatedAtFilterCreation()
198 .addUser(UserHandle.CURRENT).build(); in testApply_currentUserFilter()
209 .addUser(UserHandle.CURRENT).build(); in testApply_currentUserFilter_evaluatedAtFilterApplyTime()
/packages/apps/Messaging/src/com/android/messaging/sms/
DApnDatabase.java79 Telephony.Carriers.CURRENT + " INTEGER," +
95 Telephony.Carriers.CURRENT, // 5
138 Telephony.Carriers.CURRENT,
142 private static final String CURRENT_SELECTION = Telephony.Carriers.CURRENT + " NOT NULL";
232 if (!Telephony.Carriers.CURRENT.equals(key)) { in saveUserDataFromOldTable()
DBugleApnSettingsLoader.java142 CURRENT_NULL_VALUE.putNull(Telephony.Carriers.CURRENT);
144 CURRENT_SET_VALUE.put(Telephony.Carriers.CURRENT, "1"); // 1 for auto selected APN in CURRENT_SET_VALUE.put() argument
146 private static final String CLEAR_UPDATE_SELECTION = Telephony.Carriers.CURRENT + " =?";
292 Telephony.Carriers.CURRENT,
303 private static final String SELECTION_CURRENT = Telephony.Carriers.CURRENT + " IS NOT NULL";
305 private static final String ORDER_BY = Telephony.Carriers.CURRENT + " DESC";
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingRequest.java54 context.startActivityAsUser(pairingIntent, UserHandle.CURRENT); in onReceive()
58 context.startServiceAsUser(intent, UserHandle.CURRENT); in onReceive()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/systemui/systembarpresets/
DSystemBarPresetsReducer.kt71 if (overlayManager.getOverlayInfo(persistentRRO, UserHandle.CURRENT) != null) { in <lambda>()
75 /*user =*/ UserHandle.CURRENT in <lambda>()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/systemui/themepresets/
DThemePresetsReducer.kt45 toggleRROs(action.themeToEnable.userPackages, enable = true, UserHandle.CURRENT) in <lambda>()
50 toggleRROs(theme.userPackages, enable = false, UserHandle.CURRENT) in <lambda>()
DThemePresetsItem.kt35 overlayManager.getOverlayInfo(rroPackage, UserHandle.CURRENT)?.isValid() ?: false in <lambda>()
43 overlayManager.getOverlayInfo(rroPackage, UserHandle.CURRENT)?.isEnabled ?: false in <lambda>()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingRequest.java80 context.startActivityAsUser(pairingIntent, UserHandle.CURRENT); in onReceive()
85 context.startServiceAsUser(intent, UserHandle.CURRENT); in onReceive()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/unbundled/apprro/
DUnbundledRroPanelReducer.kt49 UserHandle.CURRENT in <lambda>()
85 overlayManager.setEnabled(action.rroPackage, action.newState, UserHandle.CURRENT) in <lambda>()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/notifications/
DTvNotificationPanel.java86 mContext.sendBroadcastAsUser(closeNotificationIntent, UserHandle.CURRENT); in animateCollapsePanels()
119 mContext.startActivityAsUser(intent, UserHandle.CURRENT); in startNotificationHandlerActivity()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/util/
DWidgetsTableUtilsTest.java285 ComponentName.createRelative(TEST_PACKAGE, ".shortcut1"), UserHandle.CURRENT), in initTestShortcuts()
288 ComponentName.createRelative(TEST_PACKAGE, ".shortcut2"), UserHandle.CURRENT), in initTestShortcuts()
291 ComponentName.createRelative(TEST_PACKAGE, ".shortcut3"), UserHandle.CURRENT), in initTestShortcuts()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPaymentPreferenceControllerTest.java79 when(mContext.createContextAsUser(UserHandle.CURRENT, 0)).thenReturn(mContextAsUser); in setUp()
160 appInfo.userHandle = UserHandle.CURRENT; in onPaymentAppsChanged_shouldRefreshSummary()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringNotificationUpdater.java273 mContext.createContextAsUser(UserHandle.CURRENT, 0 /* flags */), in notifyTetheringDisabledByRestriction()
296 mContext.createContextAsUser(UserHandle.CURRENT, 0 /* flags */), in notifyTetheringNoUpstream()
318 mContext.createContextAsUser(UserHandle.CURRENT, 0 /* flags */), in setupRoamingNotification()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnSettingsActivity.java135 sCurrentNullMap.putNull(Telephony.Carriers.CURRENT);
138 sCurrentSetMap.put(Telephony.Carriers.CURRENT, "2"); // 2 for user-selected APN, in sCurrentSetMap.put() argument
323 private static final String UPDATE_SELECTION = Telephony.Carriers.CURRENT + " =?";
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/chooser/
DTargetInfoTest.kt106 UserHandle.CURRENT in testNewSelectableTargetInfo()
146 UserHandle.CURRENT in test_SelectableTargetInfo_componentName_no_source_info()
199 UserHandle.CURRENT in testSelectableTargetInfo_noSourceIntentMatchingProposedRefinement()
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/
DCallRedirectionProcessor.java358 performCarrierCallRedirection(UserHandle.CURRENT); in onCallRedirectionComplete()
378 performCarrierCallRedirection(UserHandle.CURRENT); in performCallRedirection()
397 performCarrierCallRedirection(UserHandle.CURRENT); in performUserDefinedCallRedirection()

1234567