/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | PackageUserKeyTest.java | 47 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/ |
D | CallRedirectionProcessorTest.java | 125 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 …]
|
D | IncomingCallNotifierTest.java | 77 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()
|
D | CallIntentProcessorTest.java | 114 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/ |
D | DriveModeThemeSwitcher.java | 77 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/ |
D | BatteryStateDaoTest.java | 40 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;
|
D | BatteryUsageSlotDaoTest.java | 40 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/ |
D | SdkExtensionsTest.java | 66 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/ |
D | DriveModeThemeSwitcherTest.java | 80 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/ |
D | UserLifecycleEventFilterTest.java | 107 .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/ |
D | ApnDatabase.java | 79 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()
|
D | BugleApnSettingsLoader.java | 142 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/ |
D | BluetoothPairingRequest.java | 54 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/ |
D | SystemBarPresetsReducer.kt | 71 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/ |
D | ThemePresetsReducer.kt | 45 toggleRROs(action.themeToEnable.userPackages, enable = true, UserHandle.CURRENT) in <lambda>() 50 toggleRROs(theme.userPackages, enable = false, UserHandle.CURRENT) in <lambda>()
|
D | ThemePresetsItem.kt | 35 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/ |
D | BluetoothPairingRequest.java | 80 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/ |
D | UnbundledRroPanelReducer.kt | 49 UserHandle.CURRENT in <lambda>() 85 overlayManager.setEnabled(action.rroPackage, action.newState, UserHandle.CURRENT) in <lambda>()
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/notifications/ |
D | TvNotificationPanel.java | 86 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/ |
D | WidgetsTableUtilsTest.java | 285 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/ |
D | NfcPaymentPreferenceControllerTest.java | 79 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/ |
D | TetheringNotificationUpdater.java | 273 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/ |
D | ApnSettingsActivity.java | 135 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/ |
D | TargetInfoTest.kt | 106 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/ |
D | CallRedirectionProcessor.java | 358 performCarrierCallRedirection(UserHandle.CURRENT); in onCallRedirectionComplete() 378 performCarrierCallRedirection(UserHandle.CURRENT); in performCallRedirection() 397 performCarrierCallRedirection(UserHandle.CURRENT); in performUserDefinedCallRedirection()
|