Searched refs:profileId (Results 1 - 15 of 15) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DMetricsLogger.java35 * @param profileId Bluetooth profile that is connected at this event
37 public static void logProfileConnectionEvent(ProfileId profileId) { argument
39 sProfileConnectionCounts.merge(profileId, 1, Integer::sum);
H A DPhonePolicy.java271 private void processProfileStateChanged(BluetoothDevice device, int profileId, int nextState, argument
273 debugLog("processProfileStateChanged, device=" + device + ", profile=" + profileId + ", "
275 if (((profileId == BluetoothProfile.A2DP) || (profileId == BluetoothProfile.HEADSET))) {
277 switch (profileId) {
306 private void processProfileActiveDeviceChanged(BluetoothDevice activeDevice, int profileId) { argument
308 + profileId);
309 switch (profileId) {
/packages/apps/Settings/src/com/android/settings/notification/
H A DAudioHelper.java52 public Context createPackageContextAsUser(@UserIdInt int profileId) { argument
53 return Utils.createPackageContextAsUser(mContext, profileId);
H A DWorkSoundPreferenceController.java283 public void onManagedProfileAdded(@UserIdInt int profileId) { argument
285 mManagedProfileId = profileId;
290 public void onManagedProfileRemoved(@UserIdInt int profileId) { argument
291 if (mManagedProfileId == profileId) {
/packages/apps/Settings/src/com/android/settings/
H A DDeviceAdminSettings.java155 final int profileId = profiles.get(i).getIdentifier();
156 mProfileOwnerComponents.put(profileId, mDPM.getProfileOwnerAsUser(profileId));
179 final int profileId = profiles.get(i).getIdentifier();
180 updateAvailableAdminsForProfile(profileId);
337 * @param profileId the profile identifier.
339 private void updateAvailableAdminsForProfile(final int profileId) { argument
345 List<ComponentName> activeAdminsListForProfile = mDPM.getActiveAdminsAsUser(profileId);
346 addActiveAdminsForProfile(activeAdminsListForProfile, profileId);
349 addDeviceAdminBroadcastReceiversForProfile(activeAdminsListForProfile, profileId);
362 addDeviceAdminBroadcastReceiversForProfile( Collection<ComponentName> alreadyAddedComponents, final int profileId) argument
403 addActiveAdminsForProfile(final List<ComponentName> activeAdmins, final int profileId) argument
[all...]
H A DTrustedCredentialsSettings.java707 int profileId = profile.getIdentifier();
714 mKeyChainConnectionByProfileId.put(profileId, keyChainConnection);
721 aliasesByProfileId.put(profileId, aliases);
725 int profileId = profile.getIdentifier();
726 List<String> aliases = aliasesByProfileId.get(profileId);
731 profileId);
734 certHoldersByProfile.put(profileId, new ArrayList<CertHolder>(0));
746 mTab, alias, cert, profileId));
750 certHoldersByProfile.put(profileId, certHolders);
843 int profileId) {
838 CertHolder(IKeyChainService service, GroupAdapter adapter, Tab tab, String alias, X509Certificate x509Cert, int profileId) argument
[all...]
H A DUtils.java434 for (int profileId : profileIds) {
435 if (profileId != parentUserId) {
436 return profileId;
588 public static ApplicationInfo getAdminApplicationInfo(Context context, int profileId) { argument
591 ComponentName mdmPackage = dpm.getProfileOwnerAsUser(profileId);
599 ipm.getApplicationInfo(mdmPackageName, 0, profileId);
603 + ", userId " + profileId, e);
H A DMasterClear.java428 final int profileId = userInfo.id;
429 final UserHandle userHandle = new UserHandle(profileId);
430 Account[] accounts = mgr.getAccountsAsUser(profileId);
438 .getAuthenticatorTypesAsUser(profileId);
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
H A DRestoreDbTaskTest.java42 assertEquals(5, getCount(db, "select * from favorites where profileId = 42"));
47 assertEquals(0, getCount(db, "select * from favorites where profileId = 42"));
48 assertEquals(5, getCount(db, "select * from favorites where profileId = 33"));
55 assertEquals(6, getCount(db, "select * from favorites where profileId = 33"));
68 MyDatabaseHelper(long profileId) { argument
70 mProfileId = profileId;
/packages/apps/Settings/src/com/android/settings/applications/
H A DAppStateAppOpsBridge.java176 final int profileId = profile.getIdentifier();
177 entries.put(profileId, entriesForProfile);
180 profileId);
208 final int profileId = profile.getIdentifier();
209 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(profileId);
216 profileId).getList();
/packages/apps/Settings/src/com/android/settings/location/
H A DSettingsInjector.java125 final int profileId = userHandle.getIdentifier();
127 pm.queryIntentServicesAsUser(intent, PackageManager.GET_META_DATA, profileId);
129 Log.d(TAG, "Found services for profile id " + profileId + ": " + resolveInfos);
147 Log.d(TAG, "Loaded settings for profile id " + profileId + ": " + settings);
245 * @param profileId Identifier of the user/profile to obtain the injected settings for or
248 public List<Preference> getInjectedSettings(Context prefContext, final int profileId) { argument
255 if (profileId == UserHandle.USER_CURRENT || profileId == userHandle.getIdentifier()) {
272 * @param profileId Identifier of the user/profile to obtain the injected settings for or
275 public boolean hasInjectedSettings(final int profileId) { argument
[all...]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
H A DUninstallFinish.java204 * @param profileId The id of the profile
208 private boolean isProfileOfOrSame(@NonNull UserManager userManager, int userId, int profileId) { argument
209 if (userId == profileId) {
213 UserInfo parentUser = userManager.getProfileParent(profileId);
/packages/apps/PackageInstaller/src/com/android/packageinstaller/television/
H A DUninstallAppProgress.java242 private boolean isProfileOfOrSame(UserManager userManager, int userId, int profileId) { argument
243 if (userId == profileId) {
246 UserInfo parentUser = userManager.getProfileParent(profileId);
/packages/apps/Launcher3/src/com/android/launcher3/provider/
H A DImportDataTask.java132 String profileId = Long.toString(UserManagerCompat.getInstance(mContext)
139 "profileId = ? AND container = -100 AND screen = ? AND cellY = 0",
140 new String[]{profileId, Long.toString(firsetScreenId)},
161 Favorites.PROFILE_ID + " = ?", new String[]{profileId},
/packages/apps/Settings/src/com/android/settings/vpn2/
H A DVpnSettings.java502 final int profileId = profile.getIdentifier();
503 final String packageName = mConnectivityManager.getAlwaysOnVpnPackageForUser(profileId);
505 result.add(new AppVpnInfo(profileId, packageName));

Completed in 4701 milliseconds