| /packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
| D | CardEmulationManager.java | 152 public void onUserSwitched(int userId) { in onUserSwitched() 241 public void onServicesUpdated(int userId, List<ApduServiceInfo> services) { in onServicesUpdated() 253 public void onNfcFServicesUpdated(int userId, List<NfcFServiceInfo> services) { in onNfcFServicesUpdated() 260 void verifyDefaults(int userId, List<ApduServiceInfo> services) { in verifyDefaults() 290 ComponentName getDefaultServiceForCategory(int userId, String category, in getDefaultServiceForCategory() 312 boolean setDefaultServiceForCategoryChecked(int userId, ComponentName service, in setDefaultServiceForCategoryChecked() 331 boolean isServiceRegistered(int userId, ComponentName service) { in isServiceRegistered() 345 boolean isNfcFServiceInstalled(int userId, ComponentName service) { in isNfcFServiceInstalled() 374 public boolean isDefaultServiceForCategory(int userId, ComponentName service, in isDefaultServiceForCategory() 387 public boolean isDefaultServiceForAid(int userId, in isDefaultServiceForAid() [all …]
|
| /packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
| D | UserMetricsTest.java | 56 int userId = 12; in testStartingEvent_multipleCallsDifferentUser() local 129 int userId = 12; in testStopingEvent_multipleCallsDifferentUser() local 162 private long sendStartingEvent(@UserIdInt int userId) { in sendStartingEvent() 169 private long sendSwitchingEvent(@UserIdInt int fromUserId, @UserIdInt int userId) { in sendSwitchingEvent() 175 private long sendUnlockingEvent(@UserIdInt int userId) { in sendUnlockingEvent() 182 private long sendUnlockedEvent(@UserIdInt int userId) { in sendUnlockedEvent() 189 private long sendStopingEvent(@UserIdInt int userId) { in sendStopingEvent() 196 private long sendStoppedEvent(@UserIdInt int userId) { in sendStoppedEvent() 203 private void assertStartTime(long timestamp, @UserIdInt int userId) { in assertStartTime() 210 @UserIdInt int userId) { in assertSwitchTime() [all …]
|
| D | ExperimentalCarUserManagerUnitTest.java | 72 int userId = 10; in testCreateDriver_Success_Admin() local 86 int userId = 10; in testCreateDriver_Success_NonAdmin() local 111 int userId = mManager.createPassenger("test passenger", 10); in testCreatePassenger_Success() local 118 int userId = mManager.createPassenger("test passenger", 20); in testCreatePassenger_Error() local 188 private void expectCreateDriverSucceed(String name, @UserIdInt int userId) throws Exception { in expectCreateDriverSucceed() 209 private void expectSwitchDriverSucceed(@UserIdInt int userId) throws Exception { in expectSwitchDriverSucceed() 219 private void expectSwitchDriverFail(@UserIdInt int userId) throws Exception { in expectSwitchDriverFail()
|
| /packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
| D | ShadowContentResolver.java | 58 protected static SyncAdapterType[] getSyncAdapterTypesAsUser(int userId) { in getSyncAdapterTypesAsUser() 63 protected static int getIsSyncableAsUser(Account account, String authority, int userId) { in getIsSyncableAsUser() 69 int userId) { in getSyncAutomaticallyAsUser() 74 protected static boolean getMasterSyncAutomaticallyAsUser(int userId) { in getMasterSyncAutomaticallyAsUser() 79 protected static List<SyncInfo> getCurrentSyncsAsUser(@UserIdInt int userId) { in getCurrentSyncsAsUser() 85 @UserIdInt int userId) { in getSyncStatusAsUser() 100 boolean sync, @UserIdInt int userId) { in setSyncAutomaticallyAsUser() 105 protected static void setMasterSyncAutomaticallyAsUser(boolean sync, @UserIdInt int userId) { in setMasterSyncAutomaticallyAsUser() 118 public static void cancelSyncAsUser(Account account, String authority, @UserIdInt int userId) { in cancelSyncAsUser() 125 public static void requestSyncAsUser(Account account, String authority, @UserIdInt int userId, in requestSyncAsUser() [all …]
|
| D | ShadowAccountManager.java | 40 protected Account[] getAccountsAsUser(int userId) { in getAccountsAsUser() 47 public void addAccountAsUser(int userId, Account account) { in addAccountAsUser() 58 protected AuthenticatorDescription[] getAuthenticatorTypesAsUser(int userId) { in getAuthenticatorTypesAsUser() 65 public void addAuthenticatorAsUser(int userId, AuthenticatorDescription authenticator) { in addAuthenticatorAsUser()
|
| /packages/apps/Settings/src/com/android/settings/notification/ |
| D | RedactNotificationPreferenceController.java | 88 int userId = KEY_LOCKSCREEN_REDACT.equals(getPreferenceKey()) in isChecked() local 96 int userId = KEY_LOCKSCREEN_REDACT.equals(getPreferenceKey()) in setChecked() local 112 int userId = KEY_LOCKSCREEN_REDACT.equals(getPreferenceKey()) in getAvailabilityStatus() local 152 private boolean adminAllowsNotifications(int userId) { in adminAllowsNotifications() 157 private boolean adminAllowsUnredactedNotifications(int userId) { in adminAllowsUnredactedNotifications() 162 private boolean getAllowPrivateNotifications(int userId) { in getAllowPrivateNotifications() 167 private boolean getLockscreenNotificationsEnabled(int userId) { in getLockscreenNotificationsEnabled()
|
| /packages/services/Telecomm/src/com/android/server/telecom/ |
| D | DefaultDialerCache.java | 46 String getDefaultDialerApplication(Context context, int userId); in getDefaultDialerApplication() 47 boolean setDefaultDialerApplication(Context context, String packageName, int userId); in setDefaultDialerApplication() 57 public String getDefaultDialerApplication(Context context, int userId) { in getDefaultDialerApplication() 63 int userId) { in setDefaultDialerApplication() 178 public String getDefaultDialerApplication(int userId) { in getDefaultDialerApplication() 224 public boolean isDefaultOrSystemDialer(String packageName, int userId) { in isDefaultOrSystemDialer() 230 public boolean setDefaultDialer(String packageName, int userId) { in setDefaultDialer() 242 private String refreshCacheForUser(int userId) { in refreshCacheForUser() 258 int userId = mCurrentDefaultDialerPerUser.keyAt(i); in refreshCachesForUsersWithPackage() local 277 private void removeUserFromCache(int userId) { in removeUserFromCache()
|
| /packages/services/Car/car-test-lib/src/android/car/test/mocks/ |
| D | CarArgumentMatchers.java | 42 public static UserInfo isUserInfo(@UserIdInt int userId) { in isUserInfo() 49 public static UserHandle isUserHandle(@UserIdInt int userId) { in isUserHandle() 69 public final @UserIdInt int userId; field in CarArgumentMatchers.UserInfoMatcher 71 private UserInfoMatcher(@UserIdInt int userId) { in UserInfoMatcher() 97 public final @UserIdInt int userId; field in CarArgumentMatchers.UserHandleMatcher 99 private UserHandleMatcher(@UserIdInt int userId) { in UserHandleMatcher()
|
| /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
| D | ShadowLockPatternUtils.java | 46 protected int getActivePasswordQuality(int userId) { in getActivePasswordQuality() 61 protected List<ComponentName> getEnabledTrustAgents(int userId) { in getEnabledTrustAgents() 71 int userId) { in getPasswordHistoryHashFactor() 76 protected boolean checkPasswordHistory(byte[] passwordToCheck, byte[] hashFactor, int userId) { in checkPasswordHistory()
|
| D | ShadowAccountManager.java | 39 protected AuthenticatorDescription[] getAuthenticatorTypesAsUser(int userId) { in getAuthenticatorTypesAsUser() 53 protected Account[] getAccountsAsUser(int userId) { in getAccountsAsUser() 61 public static void addAccountForUser(int userId, Account account) { in addAccountForUser()
|
| D | ShadowContentResolver.java | 45 protected static SyncAdapterType[] getSyncAdapterTypesAsUser(int userId) { in getSyncAdapterTypesAsUser() 59 protected static int getIsSyncableAsUser(Account account, String authority, int userId) { in getIsSyncableAsUser() 65 int userId) { in getSyncAutomaticallyAsUser() 71 boolean sync, int userId) { in setSyncAutomaticallyAsUser() 78 protected static boolean getMasterSyncAutomaticallyAsUser(int userId) { in getMasterSyncAutomaticallyAsUser() 95 public static void setMasterSyncAutomatically(int userId, boolean syncAutomatically) { in setMasterSyncAutomatically()
|
| /packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
| D | ProvidersAccess.java | 48 RootInfo getRootOneshot(UserId userId, String authority, String rootId); in getRootOneshot() 56 RootInfo getRecentsRoot(UserId userId); in getRecentsRoot() 58 String getApplicationName(UserId userId, String authority); in getApplicationName() 60 String getPackageName(UserId userId, String authority); in getPackageName() 66 Collection<RootInfo> getRootsForAuthorityBlocking(UserId userId, String authority); in getRootsForAuthorityBlocking()
|
| /packages/apps/Car/Settings/src/com/android/car/settings/setupservice/ |
| D | InitialLockSetupService.java | 73 int userId = UserHandle.myUserId(); in onBind() local 141 int userId = UserHandle.myUserId(); in setLock() local 165 userId); in setLock() local 176 userId); in setLock() local 186 userId); in setLock() local
|
| /packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
| D | InitialUserSetterTest.java | 800 private UserInfo expectHasInitialUser(@UserIdInt int userId) { in expectHasInitialUser() 804 private UserInfo expectHasInitialUser(@UserIdInt int userId, in expectHasInitialUser() 809 private UserInfo expectHasInitialGuest(int userId) { in expectHasInitialGuest() 813 private UserInfo expectHasInitialUser(@UserIdInt int userId, boolean isGuest, in expectHasInitialUser() 821 private UserInfo expectUserExists(@UserIdInt int userId) { in expectUserExists() 828 private void expectUserIsSecure(@UserIdInt int userId) { in expectUserIsSecure() 832 private UserInfo expectGuestExists(@UserIdInt int userId, boolean isEphemeral) { in expectGuestExists() 847 private void expectSwitchUser(@UserIdInt int userId) throws Exception { in expectSwitchUser() 850 private void expectSwitchUserFails(@UserIdInt int userId) { in expectSwitchUserFails() 854 private void expectSwitchUserThrowsException(@UserIdInt int userId) { in expectSwitchUserThrowsException() [all …]
|
| D | UserHelperTest.java | 96 int userId = 20; in testDefaultNonAdminRestrictions() local 107 int userId = 20; in testDefaultNonAdminRestrictions_nullContext_throwsException() local 124 int userId = 20; in testAssignDefaultIcon() local 134 int userId = 20; in testAssignDefaultIcon_nullContext_throwsException() local
|
| /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
| D | SettingsFacade.java | 35 public void setUserSetupCompleted(Context context, int userId) { in setUserSetupCompleted() 37 Secure.putIntForUser(context.getContentResolver(), USER_SETUP_COMPLETE, 1, userId); in setUserSetupCompleted() local 57 public void setProfileContactRemoteSearch(Context context, boolean allowed, int userId) { in setProfileContactRemoteSearch() 65 public void setCrossProfileCalendarEnabled(Context context, boolean allowed, int userId) { in setCrossProfileCalendarEnabled()
|
| /packages/services/Car/car-test-lib/src/android/car/test/util/ |
| D | UserTestingHelper.java | 42 public static UserInfo newUser(@UserIdInt int userId) { in newUser() 60 public static UserInfo newSecondaryUser(@UserIdInt int userId) { in newSecondaryUser() 68 public static UserInfo newGuestUser(@UserIdInt int userId, boolean ephemeral) { in newGuestUser() 76 public static UserInfo newGuestUser(@UserIdInt int userId) { in newGuestUser() 98 public static void setUserLockCredentials(@UserIdInt int userId, int pin) { in setUserLockCredentials() 105 public static void clearUserLockCredentials(@UserIdInt int userId, int pin) { in clearUserLockCredentials() 135 public UserInfoBuilder(@UserIdInt int userId) { in UserInfoBuilder()
|
| /packages/services/Car/service/src/com/android/car/user/ |
| D | UserMetrics.java | 123 public void logFirstUnlockedUser(int userId, long timestampMs, long duration, in logFirstUnlockedUser() 145 private void onUserStartingEventLocked(long timestampMs, @UserIdInt int userId) { in onUserStartingEventLocked() 168 private void onUserUnlockingEventLocked(long timestampMs, @UserIdInt int userId) { in onUserUnlockingEventLocked() 175 private void onUserUnlockedEventLocked(long timestampMs, @UserIdInt int userId) { in onUserUnlockedEventLocked() 184 private void onUserStoppingEventLocked(long timestampMs, @UserIdInt int userId) { in onUserStoppingEventLocked() 196 private void onUserStoppedEventLocked(long timestampMs, @UserIdInt int userId) { in onUserStoppedEventLocked() 206 @NonNull SparseArray<? extends BaseUserMetric> metrics, @UserIdInt int userId) { in getExistingMetricsLocked() 221 @UserIdInt int userId) { in removeExistingMetricsLogged() 316 public final @UserIdInt int userId; field in UserMetrics.BaseUserMetric 318 protected BaseUserMetric(@UserIdInt int userId) { in BaseUserMetric() [all …]
|
| /packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
| D | OverlayManagerCompat.java | 55 public boolean setEnabledExclusiveInCategory(String packageName, int userId) { in setEnabledExclusiveInCategory() 64 public boolean disableOverlay(String packageName, int userId) { in disableOverlay() 98 public List<String> getOverlayPackagesForCategory(String category, int userId, in getOverlayPackagesForCategory() 113 private void ensureCategoryMapForUser(int userId) { in ensureCategoryMapForUser() 127 private List<OverlayInfo> getOverlayInfosForTarget(String targetPackageName, int userId) { in getOverlayInfosForTarget()
|
| /packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/ |
| D | FixedActivityServiceTest.java | 124 int userId = 10; in testStartFixedActivityModeForDisplayAndUser_noRunningActivity() local 141 int userId = 10; in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity() local 169 int userId = 10; in testStartFixedActivityModeForDisplayAndUser_runNewActivity() local 197 int userId = 10; in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated() local 245 int userId = 10; in testStartFixedActivityModeForDisplayAndUser_runOnDifferentDisplay() local 268 int userId = 10; in testStartFixedActivityModeForDisplayAndUser_invalidDisplay() local 295 int userId = 10; in testStartFixedActivityModeForDisplayAndUser_invalidComponent() local 307 int userId = 10; in testStopFixedActivityMode() local 332 int userId = 10; in testHandleTaskFocusChanged_returnForcusBack() local 362 int userId = 10; in testHandleTaskFocusChanged_returnForcusBackInTwoStackInfos() local [all …]
|
| /packages/apps/Settings/src/com/android/settings/accounts/ |
| D | AccountRestrictionHelper.java | 51 String userRestriction, @UserIdInt int userId) { in enforceRestrictionOnPreference() 67 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { in hasBaseUserRestriction() 81 private EnforcedAdmin getEnforcedAdmin(String userRestriction, int userId) { in getEnforcedAdmin() 96 private int getManagedUserId(int userId) { in getManagedUserId()
|
| /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
| D | OtaControllerTest.java | 253 public synchronized void execute(int userId, AbstractProvisioningTask task) { in execute() 258 private void addMeatUser(int userId) { in addMeatUser() 264 private void setDeviceOwner(int userId, ComponentName admin) { in setDeviceOwner() 269 private void addManagedProfile(int userId, ComponentName admin) { in addManagedProfile() 277 private void addManagedUser(int userId, ComponentName admin) { in addManagedUser() 297 private void assertTaskListContains(Integer userId, Class taskClass) { in assertTaskListContains() 306 private void assertInstallExistingPackageTask(int userId, String packageName) { in assertInstallExistingPackageTask()
|
| /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/ |
| D | NonRequiredAppsLogic.java | 98 public Set<String> getSystemAppsToRemove(int userId) { in getSystemAppsToRemove() 124 private void filterOutSystemAppsFromOta(Set<String> packagesToDelete, int userId) { in filterOutSystemAppsFromOta() 134 public void maybeTakeSystemAppsSnapshot(int userId) { in maybeTakeSystemAppsSnapshot() 140 private boolean shouldDeleteSystemApps(int userId) { in shouldDeleteSystemApps() 146 private int getCase(int userId) { in getCase()
|
| /packages/apps/Settings/src/com/android/settings/vpn2/ |
| D | VpnUtils.java | 64 final int userId = context.getUserId(); in isAnyLockdownActive() local 77 public static String getConnectedPackage(IConnectivityManager service, final int userId) in getConnectedPackage() 92 public static boolean isAlwaysOnVpnSet(ConnectivityManager cm, final int userId) { in isAlwaysOnVpnSet() 98 int userId = context.getUserId(); in disconnectLegacyVpn() local
|
| /packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
| D | VpnUtils.java | 64 final int userId = context.getUserId(); in isAnyLockdownActive() local 77 public static String getConnectedPackage(IConnectivityManager service, final int userId) in getConnectedPackage() 92 public static boolean isAlwaysOnVpnSet(ConnectivityManager cm, final int userId) { in isAlwaysOnVpnSet() 98 int userId = context.getUserId(); in disconnectLegacyVpn() local
|