/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesControllerTest.java | 63 private PreferenceCategory mProfiles; field in BluetoothDetailsProfilesControllerTest 74 mProfiles = spy(new PreferenceCategory(mContext)); in setUp() 75 when(mProfiles.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp() 86 mProfiles.setKey(mController.getPreferenceKey()); in setUp() 87 mScreen.addPreference(mProfiles); in setUp() 196 assertThat(mProfiles.getPreferenceCount()).isEqualTo(mConnectableProfiles.size()); in getProfileSwitches() 199 for (int i = 0; i < mProfiles.getPreferenceCount(); i++) { in getProfileSwitches() 200 result.add((SwitchPreference)mProfiles.getPreference(i)); in getProfileSwitches() 239 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in multipleProfiles() 261 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in disableThenReenableOneProfile() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountPreferenceController.java | 83 private SparseArray<ProfileData> mProfiles = new SparseArray<ProfileData>(); field in AccountPreferenceController 219 final ProfileData profileData = mProfiles.get(userHandle.getIdentifier()); in onAccountsUpdate() 230 final int count = mProfiles.size(); in onPreferenceClick() 232 ProfileData profileData = mProfiles.valueAt(i); in onPreferenceClick() 269 for (int i = 0, size = mProfiles.size(); i < size; i++) { in updateUi() 270 mProfiles.valueAt(i).pendingRemoval = true; in updateUi() 288 final int profilesCount = mProfiles.size(); in updateUi() 290 updateAccountTypes(mProfiles.valueAt(i)); in updateUi() 298 final ProfileData data = mProfiles.get(userInfo.id); in updateProfileUi() 347 mProfiles.put(userInfo.id, profileData); in updateProfileUi() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountPreferenceController.java | 83 private SparseArray<ProfileData> mProfiles = new SparseArray<ProfileData>(); field in AccountPreferenceController 219 final ProfileData profileData = mProfiles.get(userHandle.getIdentifier()); in onAccountsUpdate() 230 final int count = mProfiles.size(); in onPreferenceClick() 232 ProfileData profileData = mProfiles.valueAt(i); in onPreferenceClick() 269 for (int i = 0, size = mProfiles.size(); i < size; i++) { in updateUi() 270 mProfiles.valueAt(i).pendingRemoval = true; in updateUi() 288 final int profilesCount = mProfiles.size(); in updateUi() 290 updateAccountTypes(mProfiles.valueAt(i)); in updateUi() 298 final ProfileData data = mProfiles.get(userInfo.id); in updateProfileUi() 347 mProfiles.put(userInfo.id, profileData); in updateProfileUi() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ProfileServiceTest.java | 65 for (Class profile : mProfiles) { in setAllProfilesState() 70 mProfiles.length * invocationNumber)).onProfileServiceStateChanged( in setAllProfilesState() 73 for (Class profile : mProfiles) { in setAllProfilesState() 87 private Class[] mProfiles; field in ProfileServiceTest 99 mProfiles = Config.getSupportedProfiles(); in setUp() 116 mProfiles = null; in tearDown() 147 for (Class profile : mProfiles) { in testEnableDisableInterleaved() 153 int invocationNumber = mProfiles.length; in testEnableDisableInterleaved() 178 for (Class profile : mProfiles) { in testRepeatedEnableDisableSingly() 204 for (Class profile : mProfiles) { in testProfileServiceRegisterUnregister()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowUserManager.java | 37 private Map<Integer, List<UserInfo>> mProfiles = new ArrayMap<>(); field in ShadowUserManager 50 if (mProfiles.containsKey(userId)) { in getProfileIdsWithDisabled() 51 return mProfiles.get(userId).stream().mapToInt(userInfo -> userInfo.id).toArray(); in getProfileIdsWithDisabled() 58 if (mProfiles.containsKey(userHandle)) { in getProfiles() 59 return new ArrayList<>(mProfiles.get(userHandle)); in getProfiles() 67 mProfiles.putIfAbsent(userHandle, new ArrayList<>()); in addProfile() 68 mProfiles.get(userHandle).add(new UserInfo(profileUserHandle, profileName, profileFlags)); in addProfile()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImplTest.java | 80 private List<UserInfo> mProfiles = new ArrayList<>(); field in EnterprisePrivacyFeatureProviderImplTest 97 when(mUserManager.getProfiles(MY_USER_ID)).thenReturn(mProfiles); in setUp() 98 mProfiles.add(new UserInfo(MY_USER_ID, "", "", 0 /* flags */)); in setUp() 119 mProfiles.add(new UserInfo(MANAGED_PROFILE_USER_ID, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testIsInCompMode() 216 mProfiles.add(new UserInfo(MANAGED_PROFILE_USER_ID, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testIsAlwaysOnVpnSetInManagedProfileProfile() 260 mProfiles.add(new UserInfo(MANAGED_PROFILE_USER_ID, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testGetMaximumFailedPasswordsForWipeInManagedProfile() 331 mProfiles.add(managedProfile); in testGetNumberOfOwnerInstalledCaCertsForManagedProfile() 356 mProfiles.add(new UserInfo(MANAGED_PROFILE_USER_ID, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testGetNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile() 389 mProfiles.add(new UserInfo(MANAGED_PROFILE_USER_ID, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in workPolicyInfo_profileOwner_shouldResolveIntent() 409 mProfiles.add(new UserInfo(MANAGED_PROFILE_USER_ID, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in workPolicyInfo_comp_shouldUseDeviceOwnerIntent()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/ |
D | AppOpsSettingsTest.java | 66 private List<UserInfo> mProfiles; field in AppOpsSettingsTest 84 mProfiles = mContext.getSystemService(UserManager.class).getProfiles(UserHandle.myUserId()); in setUp() 92 for (UserInfo user : mProfiles) { in resetAppOpModeForAllProfiles() 149 } while (listOfMatchingTextViews.size() != mProfiles.size() && in testAppList() 151 assertEquals("Test app not listed for each profile", mProfiles.size(), in testAppList() 179 for (UserInfo user : mProfiles) { in testSingleApp()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateAppOpsBridge.java | 53 private final List<UserHandle> mProfiles; field in AppStateAppOpsBridge 72 mProfiles = mUserManager.getUserProfiles(); in AppStateAppOpsBridge() 79 final int profilesMax = mProfiles.size(); in isThisUserAProfileOfCurrentUser() 81 if (mProfiles.get(i).getIdentifier() == userId) { in isThisUserAProfileOfCurrentUser() 175 for (final UserHandle profile : mProfiles) { in getEntries() 208 for (final UserHandle profile : mProfiles) { in loadPermissionsStates()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateAppOpsBridge.java | 53 private final List<UserHandle> mProfiles; field in AppStateAppOpsBridge 72 mProfiles = mUserManager.getUserProfiles(); in AppStateAppOpsBridge() 79 final int profilesMax = mProfiles.size(); in isThisUserAProfileOfCurrentUser() 81 if (mProfiles.get(i).getIdentifier() == userId) { in isThisUserAProfileOfCurrentUser() 175 for (final UserHandle profile : mProfiles) { in getEntries() 208 for (final UserHandle profile : mProfiles) { in loadPermissionsStates()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
D | OtaControllerTest.java | 87 private List<UserInfo> mProfiles = new ArrayList<>(); field in OtaControllerTest 101 when(mUserManager.getProfiles(UserHandle.USER_SYSTEM)).thenReturn(mProfiles); in setUp() 268 mProfiles.add(ui); in addManagedProfile() 280 mProfiles.add(ui); in addSystemUser()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridge.java | 50 private final List<UserHandle> mProfiles; field in AppStateAppOpsBridge 71 mProfiles = UserManager.get(context).getUserProfiles(); in AppStateAppOpsBridge() 94 for (UserHandle profile : mProfiles) { in getPackageToStateMapsByProfileId()
|