Home
last modified time | relevance | path

Searched refs:userHandle (Results 1 – 20 of 20) sorted by relevance

/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/
DUserConnector.java37 void startConnecting(UserHandle userHandle); in startConnecting() argument
52 void connect(UserHandle userHandle) throws UnavailableProfileException; in connect() argument
62 void stopManualConnectionManagement(UserHandle userHandle); in stopManualConnectionManagement() argument
69 CrossProfileSender crossProfileSender(UserHandle userHandle); in crossProfileSender() argument
78 void registerConnectionListener(UserHandle userHandle, ConnectionListener listener); in registerConnectionListener() argument
84 void unregisterConnectionListener(UserHandle userHandle, ConnectionListener listener); in unregisterConnectionListener() argument
93 void registerAvailabilityListener(UserHandle userHandle, AvailabilityListener listener); in registerAvailabilityListener() argument
99 void unregisterAvailabilityListener(UserHandle userHandle, AvailabilityListener listener); in unregisterAvailabilityListener() argument
107 boolean isAvailable(UserHandle userHandle); in isAvailable() argument
115 boolean isConnected(UserHandle userHandle); in isConnected() argument
[all …]
DAbstractUserConnector.java42 public void startConnecting(UserHandle userHandle) {} in startConnecting() argument
45 public void connect(UserHandle userHandle) throws UnavailableProfileException {} in connect() argument
48 public void stopManualConnectionManagement(UserHandle userHandle) {} in stopManualConnectionManagement() argument
51 public CrossProfileSender crossProfileSender(UserHandle userHandle) { in crossProfileSender() argument
56 public void registerConnectionListener(UserHandle userHandle, ConnectionListener listener) {} in registerConnectionListener() argument
59 public void unregisterConnectionListener(UserHandle userHandle, ConnectionListener listener) {} in unregisterConnectionListener() argument
62 public void registerAvailabilityListener(UserHandle userHandle, AvailabilityListener listener) {} in registerAvailabilityListener() argument
66 UserHandle userHandle, AvailabilityListener listener) {} in unregisterAvailabilityListener() argument
69 public boolean isAvailable(UserHandle userHandle) { in isAvailable() argument
74 public boolean isConnected(UserHandle userHandle) { in isConnected() argument
[all …]
DCrossProfileSDKUtilities.java109 for (UserHandle userHandle : userHandles) { in filterUsersByAvailabilityRestrictions()
110 if (!userManager.isUserRunning(userHandle)) { in filterUsersByAvailabilityRestrictions()
113 if (userManager.isQuietModeEnabled(userHandle)) { in filterUsersByAvailabilityRestrictions()
116 if (availabilityRestrictions.requireUnlocked && !userManager.isUserUnlocked(userHandle)) { in filterUsersByAvailabilityRestrictions()
120 filteredUserHandles.add(userHandle); in filterUsersByAvailabilityRestrictions()
DCrossProfileSender.java814 for (UserHandle userHandle : userManager.getUserProfiles()) { in findDifferentRunningUser()
815 if (!userHandle.equals(ignoreUserHandle)) { in findDifferentRunningUser()
816 otherUsers.add(userHandle); in findDifferentRunningUser()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java111 public long addUserProfile(UserHandle userHandle) { in addUserProfile() argument
113 userProfiles.put(userHandle, serialNumber); in addUserProfile()
133 protected List<UserInfo> getProfiles(int userHandle) { in getProfiles() argument
134 if (profiles.containsKey(userHandle)) { in getProfiles()
135 return ImmutableList.copyOf(profiles.get(userHandle)); in getProfiles()
138 if (profileToParent.containsKey(userHandle) in getProfiles()
139 && profiles.containsKey(profileToParent.get(userHandle))) { in getProfiles()
140 return ImmutableList.copyOf(profiles.get(profileToParent.get(userHandle))); in getProfiles()
144 … realObject, UserManager.class, "getProfiles", ClassParameter.from(int.class, userHandle)); in getProfiles()
149 int userHandle, int profileUserHandle, String profileName, int profileFlags) { in addProfile() argument
[all …]
DShadowCrossProfileApps.java109 protected Drawable getProfileSwitchingIconDrawable(UserHandle userHandle) { in getProfileSwitchingIconDrawable() argument
110 verifyCanAccessUser(userHandle); in getProfileSwitchingIconDrawable()
111 return new ColorDrawable(userHandle.getIdentifier()); in getProfileSwitchingIconDrawable()
119 protected CharSequence getProfileSwitchingLabel(UserHandle userHandle) { in getProfileSwitchingLabel() argument
120 verifyCanAccessUser(userHandle); in getProfileSwitchingLabel()
121 return "Switch to " + userHandle; in getProfileSwitchingLabel()
157 public void addTargetUserProfile(UserHandle userHandle) { in addTargetUserProfile() argument
158 if (userHandle.equals(Process.myUserHandle())) { in addTargetUserProfile()
161 targetUserProfiles.add(userHandle); in addTargetUserProfile()
165 public void removeTargetUserProfile(UserHandle userHandle) { in removeTargetUserProfile() argument
[all …]
DShadowSettings.java47 int userHandle) { in putStringForUser() argument
52 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument
88 int userHandle) { in putStringForUser() argument
93 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument
223 int userHandle) { in putStringForUser() argument
228 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument
DShadowContextImpl.java187 UserHandle userHandle, in sendOrderedBroadcastAsUser() argument
209 UserHandle userHandle, in sendOrderedBroadcastAsUser() argument
294 Intent intent, final ServiceConnection serviceConnection, int i, UserHandle userHandle) { in bindServiceAsUser() argument
DShadowLocationManager.java234 protected void setLocationEnabledForUser(boolean enabled, UserHandle userHandle) { in setLocationEnabledForUser() argument
236 locationEnabledForUser.put(userHandle, enabled); in setLocationEnabledForUser()
241 protected boolean isLocationEnabledForUser(UserHandle userHandle) { in isLocationEnabledForUser() argument
242 Boolean result = locationEnabledForUser.get(userHandle); in isLocationEnabledForUser()
DShadowContentResolver.java784 Uri uri, boolean notifyForDescendents, ContentObserver observer, int userHandle) {
DShadowPackageManager.java643 Intent intent, int flags, UserHandle userHandle) { in queryBroadcastReceiversAsUser() argument
DShadowApplicationPackageManager.java1028 protected Drawable getUserBadgeForDensity(UserHandle userHandle, int i) { in getUserBadgeForDensity() argument
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUserManagerTest.java96 UserHandle userHandle = Process.myUserHandle(); in hasUserRestriction() local
97 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in hasUserRestriction()
105 UserHandle userHandle = Process.myUserHandle(); in getUserRestrictions() local
106 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in getUserRestrictions()
188 UserHandle userHandle = newUserHandle(10); in shouldGetSerialNumberForUser() local
189 assertThat(userManager.getSerialNumberForUser(userHandle)).isEqualTo(serialNumberInvalid); in shouldGetSerialNumberForUser()
191 shadowOf(userManager).addUserProfile(userHandle); in shouldGetSerialNumberForUser()
193 assertThat(userManager.getSerialNumberForUser(userHandle)).isNotEqualTo(serialNumberInvalid); in shouldGetSerialNumberForUser()
260 UserHandle userHandle = newUserHandle(0); in isUserRunning() local
262 assertThat(userManager.isUserRunning(userHandle)).isFalse(); in isUserRunning()
[all …]
DShadowStorageManagerTest.java72 UserHandle userHandle = new UserHandle(parcel); in buildAndGetStorageVolume() local
74 new StorageVolumeBuilder("volume", file, description, userHandle, "mounted"); in buildAndGetStorageVolume()
/external/connectedappssdk/testing/sdk/src/main/java/com/google/android/enterprise/connectedapps/testing/
DProfileAvailabilityPoll.java28 public static void blockUntilProfileRunningAndUnlocked(Context context, UserHandle userHandle) { in blockUntilProfileRunningAndUnlocked() argument
31 () -> userManager.isUserRunning(userHandle) && userManager.isUserUnlocked(userHandle), in blockUntilProfileRunningAndUnlocked()
36 public static void blockUntilProfileNotAvailable(Context context, UserHandle userHandle) { in blockUntilProfileNotAvailable() argument
39 () -> !userManager.isUserRunning(userHandle) || userManager.isQuietModeEnabled(userHandle), in blockUntilProfileNotAvailable()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DRobolectricTestUtilities.java172 private void tryAddTargetUserProfile(UserHandle userHandle) { in tryAddTargetUserProfile() argument
174 addTargetUserProfile(userHandle); in tryAddTargetUserProfile()
180 private void addTargetUserProfile(UserHandle userHandle) { in addTargetUserProfile() argument
184 shadowOf(crossProfileApps).addTargetUserProfile(userHandle); in addTargetUserProfile()
187 private void tryRemoveTargetUserProfile(UserHandle userHandle) { in tryRemoveTargetUserProfile() argument
189 removeTargetUserProfile(userHandle); in tryRemoveTargetUserProfile()
195 private void removeTargetUserProfile(UserHandle userHandle) { in removeTargetUserProfile() argument
199 shadowOf(crossProfileApps).removeTargetUserProfile(userHandle); in removeTargetUserProfile()
/external/setupcompat/main/aidl/com/google/android/setupcompat/portal/
DISetupNotificationService.aidl33 …void registerProgressService(in ProgressServiceComponent component, in UserHandle userHandle, IPor… in registerProgressService() argument
36 …boolean isProgressServiceAlive(in ProgressServiceComponent component, in UserHandle userHandle) = … in isProgressServiceAlive() argument
/external/connectedappssdk/tests/instrumented/src/main/java/com/google/android/enterprise/connectedapps/instrumented/utils/
DInstrumentedTestUtilities.java365 UserHandle userHandle = SharedTestUtilities.getUserHandleForUserId(userId); in startUser() local
367 ProfileAvailabilityPoll.blockUntilProfileRunningAndUnlocked(context, userHandle); in startUser()
/external/python/cpython2/Mac/Modules/list/
D_Listmodule.c976 Handle userHandle; in List_SetListUserHandle() local
979 ResObj_Convert, &userHandle)) in List_SetListUserHandle()
982 userHandle); in List_SetListUserHandle()
/external/wpa_supplicant_8/src/eap_peer/
Deap_proxy_qmi_oc.c1088 qmi_client_type userHandle, unsigned int msg_id, in handle_qmi_eap_reply() argument