Home
last modified time | relevance | path

Searched defs:userId (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java152 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/
DUserMetricsTest.java56 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 …]
DExperimentalCarUserManagerUnitTest.java72 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/
DShadowContentResolver.java58 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 …]
DShadowAccountManager.java40 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/
DRedactNotificationPreferenceController.java88 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/
DDefaultDialerCache.java46 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/
DCarArgumentMatchers.java42 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/
DShadowLockPatternUtils.java46 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()
DShadowAccountManager.java39 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()
DShadowContentResolver.java45 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/
DProvidersAccess.java48 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/
DInitialLockSetupService.java73 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/
DInitialUserSetterTest.java800 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 …]
DUserHelperTest.java96 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/
DSettingsFacade.java35 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/
DUserTestingHelper.java42 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/
DUserMetrics.java123 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/
DOverlayManagerCompat.java55 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/
DFixedActivityServiceTest.java124 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/
DAccountRestrictionHelper.java51 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/
DOtaControllerTest.java253 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/
DNonRequiredAppsLogic.java98 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/
DVpnUtils.java64 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/
DVpnUtils.java64 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

12345678910>>...18