/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesControllerTest.java | 64 private PreferenceCategory mProfiles; field in BluetoothDetailsProfilesControllerTest 75 mProfiles = spy(new PreferenceCategory(mContext)); in setUp() 76 when(mProfiles.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp() 87 mProfiles.setKey(mController.getPreferenceKey()); in setUp() 88 mController.mProfilesContainer = mProfiles; in setUp() 89 mScreen.addPreference(mProfiles); in setUp() 198 assertThat(mProfiles.getPreferenceCount() - 1).isEqualTo(mConnectableProfiles.size()); in getProfileSwitches() 201 for (int i = 0; i < mProfiles.getPreferenceCount(); i++) { in getProfileSwitches() 202 final Preference preference = mProfiles.getPreference(i); in getProfileSwitches() 244 assertThat(mProfiles.getPreferenceCount()).isEqualTo(3); in multipleProfiles() [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/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ProfileServiceTest.java | 64 for (Class profile : mProfiles) { in setAllProfilesState() 69 mProfiles.length * invocationNumber)).onProfileServiceStateChanged( in setAllProfilesState() 72 for (Class profile : mProfiles) { in setAllProfilesState() 85 private Class[] mProfiles; field in ProfileServiceTest 97 mProfiles = Config.getSupportedProfiles(); in setUp() 113 mProfiles = null; in tearDown() 144 for (Class profile : mProfiles) { in testEnableDisableInterleaved() 150 int invocationNumber = mProfiles.length; in testEnableDisableInterleaved() 175 for (Class profile : mProfiles) { in testRepeatedEnableDisableSingly() 201 for (Class profile : mProfiles) { in testProfileServiceRegisterUnregister()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountPreferenceController.java | 88 private SparseArray<ProfileData> mProfiles = new SparseArray<ProfileData>(); field in AccountPreferenceController 219 final ProfileData profileData = mProfiles.get(userHandle.getIdentifier()); in onAccountsUpdate() 231 final int count = mProfiles.size(); in onPreferenceClick() 233 ProfileData profileData = mProfiles.valueAt(i); in onPreferenceClick() 273 for (int i = 0, size = mProfiles.size(); i < size; i++) { in updateUi() 274 mProfiles.valueAt(i).pendingRemoval = true; in updateUi() 298 final int profilesCount = mProfiles.size(); in updateUi() 300 updateAccountTypes(mProfiles.valueAt(i)); in updateUi() 308 final ProfileData data = mProfiles.get(userInfo.id); in updateProfileUi() 362 mProfiles.put(userInfo.id, profileData); in updateProfileUi() [all …]
|
/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 84 mProfiles = mUserManager.getUserProfiles(); in AppStateAppOpsBridge() 91 final int profilesMax = mProfiles.size(); in isThisUserAProfileOfCurrentUser() 93 if (mProfiles.get(i).getIdentifier() == userId) { in isThisUserAProfileOfCurrentUser() 191 for (final UserHandle profile : mProfiles) { in getEntries() 224 for (final UserHandle profile : mProfiles) { in loadPermissionsStates()
|
/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()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
D | OtaControllerTest.java | 88 private List<UserInfo> mProfiles = new ArrayList<>(); field in OtaControllerTest 102 when(mUserManager.getProfiles(UserHandle.USER_SYSTEM)).thenReturn(mProfiles); in setUp() 274 mProfiles.add(ui); in addManagedProfile() 286 mProfiles.add(ui); in addSystemUser()
|