Home
last modified time | relevance | path

Searched refs:mProfiles (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsCompanionAppsControllerTest.java62 private PreferenceCategory mProfiles; field in BluetoothDetailsCompanionAppsControllerTest
73 mProfiles = spy(new PreferenceCategory(mContext)); in setUp()
76 when(mProfiles.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp()
83 mController.mProfilesContainer = mProfiles; in setUp()
84 mProfiles.setKey(mController.getPreferenceKey()); in setUp()
85 mScreen.addPreference(mProfiles); in setUp()
107 PreferenceCategory preferenceCategory = mProfiles.findPreference( in getPreference()
131 assertThat(mProfiles.getPreferenceCount()).isEqualTo(1); in addOneAssociation_preferenceShouldBeAdded()
135 assertThat(mProfiles.getPreferenceCount()).isEqualTo(0); in addOneAssociation_preferenceShouldBeAdded()
144 assertThat(mProfiles.getPreferenceCount()).isEqualTo(0); in removeOneAssociation_preferenceShouldBeRemoved()
[all …]
DBluetoothDetailsProfilesControllerTest.java64 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/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DProfileServiceTest.java61 private Class[] mProfiles; field in ProfileServiceTest
78 for (Class profile : mProfiles) { in setAllProfilesState()
83 mProfiles.length * invocationNumber)).onProfileServiceStateChanged( in setAllProfilesState()
86 for (Class profile : mProfiles) { in setAllProfilesState()
114 mProfiles = Config.getSupportedProfiles(); in setUp()
132 mProfiles = null; in tearDown()
163 for (Class profile : mProfiles) { in testEnableDisableInterleaved()
169 int invocationNumber = mProfiles.length; in testEnableDisableInterleaved()
194 for (Class profile : mProfiles) { in testRepeatedEnableDisableSingly()
220 for (Class profile : mProfiles) { in testProfileServiceRegisterUnregister()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java88 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()
363 mProfiles.put(userInfo.id, profileData); in updateProfileUi()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java82 private List<UserInfo> mProfiles = new ArrayList<>(); field in EnterprisePrivacyFeatureProviderImplTest
106 when(mUserManager.getProfiles(mUserId)).thenReturn(mProfiles); in setUp()
107 mProfiles.add(new UserInfo(mUserId, "", "", 0 /* flags */)); in setUp()
128 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testIsInCompMode()
218 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testIsAlwaysOnVpnSetInManagedProfileProfile()
251 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testGetMaximumFailedPasswordsForWipeInManagedProfile()
322 mProfiles.add(managedProfile); in testGetNumberOfOwnerInstalledCaCertsForManagedProfile()
347 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testGetNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
380 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in workPolicyInfo_profileOwner_shouldResolveIntent()
400 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in workPolicyInfo_comp_shouldUseDeviceOwnerIntent()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java53 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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java84 private List<UserInfo> mProfiles = new ArrayList<>(); field in OtaControllerTest
98 when(mUserManager.getProfiles(UserHandle.USER_SYSTEM)).thenReturn(mProfiles); in setUp()
239 mProfiles.add(ui); in addManagedProfile()
251 mProfiles.add(ui); in addSystemUser()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileGridRecyclerView.java265 private List<ProfileRecord> mProfiles; field in ProfileGridRecyclerView.ProfileAdapter
301 mProfiles.clear(); in clearProfiles()
308 mProfiles = profiles; in updateProfiles()
322 ProfileRecord profileRecord = mProfiles.get(position); in onBindViewHolder()
506 return mProfiles.size(); in getItemCount()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java50 private final List<UserHandle> mProfiles; field in AppStateAppOpsBridge
71 mProfiles = UserManager.get(context).getUserProfiles(); in AppStateAppOpsBridge()
94 for (UserHandle profile : mProfiles) { in getPackageToStateMapsByProfileId()