Home
last modified time | relevance | path

Searched refs:mUtils (Results 1 – 25 of 95) sorted by relevance

1234

/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
H A DUtilsTest.java80 private Utils mUtils; field in UtilsTest
94 mUtils = new Utils(); in setUp()
171 assertTrue(mUtils.isConnectedToNetwork(mockContext)); in testIsConnectedToNetwork()
177 assertTrue(mUtils.isConnectedToNetwork(mockContext)); in testIsConnectedToNetwork()
183 assertFalse(mUtils.isConnectedToNetwork(mockContext)); in testIsConnectedToNetwork()
232 assertEquals(mUtils.getActiveNetworkInfo(mockContext), networkInfo); in testGetActiveNetworkInfo()
273 mUtils.findDeviceAdmin( in testFindDeviceAdmin_PackageName()
286 mUtils.findDeviceAdmin( in testFindDeviceAdmin_NoPackageName()
300 mUtils.findDeviceAdmin( in testFindDeviceAdmin_AnotherComponentName()
348 assertEquals(TEST_COMPONENT_NAME, mUtils.findDeviceAdminInPackageInfo( in testFindDeviceAdminInPackageInfo_TwoAdminsWithComponentName()
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTest.java63 protected CameraBinderTestUtils mUtils; field in CameraBinderTest
72 mUtils = new CameraBinderTestUtils(getContext()); in setUp()
80 numCameras >= mUtils.getGuessedNumCameras()); in testNumberOfCameras()
120 boolean supports = mUtils.getCameraService().supportsCameraApi( in testSupportsCamera2Api()
158 ICamera cameraUser = mUtils.getCameraService() in testConnect()
263 mUtils.getCameraService().connectDevice( in testConnectDevice()
322 mUtils.getCameraService().removeListener(listener); in testAddRemoveListeners()
329 mUtils.getCameraService().addListener(listener); in testAddRemoveListeners()
332 mUtils.getCameraService().addListener(listener); in testAddRemoveListeners()
339 mUtils.getCameraService().removeListener(listener); in testAddRemoveListeners()
[all …]
/aosp12/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
H A DUtilsRoboTest.java77 private Utils mUtils = new Utils(); field in UtilsRoboTest
127 assertThat(mUtils.canPerformAdminIntegratedFlow(mContext, PARAMS_NFC, in shouldPerformAdminIntegratedFlow_nfcProvisioning_returnsFalse()
138 assertThat(mUtils.checkAdminIntegratedFlowPreconditions( in checkAdminIntegratedFlowPreconditions_notStartedByTrustedSource_returnsFalse()
144 assertThat(mUtils.checkAdminIntegratedFlowPreconditions( in checkAdminIntegratedFlowPreconditions_financedDevice_returnsFalse()
155 assertThat(mUtils.isOrganizationOwnedAllowed(params)).isFalse(); in isOrganizationOwnedAllowed_personallyOwnedProvisioning_returnsFalse()
165 assertThat(mUtils.isOrganizationOwnedAllowed(params)).isTrue(); in isOrganizationOwnedAllowed_organizationOwnedProvisioning_returnsTrue()
177 assertThat(mUtils.isOrganizationOwnedAllowed(params)).isTrue(); in isOrganizationOwnedAllowed_organizationAndPersonallyOwnedProvisioning_returnsTrue()
187 assertThat(mUtils.isOrganizationOwnedAllowed(params)).isTrue(); in isOrganizationOwnedAllowed_deviceOwnerProvisioning_returnsTrue()
196 assertThat(mUtils.shouldShowOwnershipDisclaimerScreen(params)).isTrue(); in shouldShowOwnershipDisclaimerScreen_skipOwnershipDisclaimerFalse_returnsTrue()
215 assertThat(mUtils in isPackageInstalled_packageExists_returnsTrue()
[all …]
H A DPolicyComplianceUtilsTest.java58 private Utils mUtils = new Utils(); field in PolicyComplianceUtilsTest
75 mUtils, in isPolicyComplianceActivityResolvableForSystemUser_activityExists_returnsTrue()
86 mUtils, in isPolicyComplianceActivityResolvableForSystemUser_activityExists_returnsFalse()
102 mUtils, in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted()
121 mUtils, in startPolicyComplianceActivityForResultIfResolved_activityDoesNotExist_notStarted()
139 mUtils, in startPolicyComplianceActivityIfResolved_activityExists_isStarted()
156 mUtils, in startPolicyComplianceActivityIfResolved_activityDoesNotExist_notStarted()
173 mUtils, in startPolicyComplianceActivityIfResolved_fromNonActivityContext_isStartedWithNewTaskFlag()
191 mUtils); in isPolicyComplianceActivityResolvableForManagedUser_withSystemUser_activityExists_returnsTrue()
201 mUtils); in isPolicyComplianceActivityResolvableForManagedUser_withSystemUser_activityDoesNotExist_returnsFalse()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
H A DProvisioningIntentProviderTest.java91 @Mock private Utils mUtils; field in ProvisioningIntentProviderTest
110 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched()
138 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched()
153 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched()
154 when(mUtils.getManagedProfile(mContext)).thenReturn(WORK_PROFILE_USER_HANDLE); in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched()
170 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_legacyFlow_policyComplianceResolvable_hasProvisioningTrigger_provisioningSuccessfulLaunched()
171 when(mUtils.getManagedProfile(mContext)).thenReturn(WORK_PROFILE_USER_HANDLE); in maybeLaunchDpc_legacyFlow_policyComplianceResolvable_hasProvisioningTrigger_provisioningSuccessfulLaunched()
177 WORK_PROFILE_USER_HANDLE.getIdentifier(), mUtils, mContext, in maybeLaunchDpc_legacyFlow_policyComplianceResolvable_hasProvisioningTrigger_provisioningSuccessfulLaunched()
188 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(false); in maybeLaunchDpc_cannotResolveIntent()
219 provisioningParams, 0, mUtils, mContext)).isNull(); in createProvisioningIntent_cannotFindAdmin()
[all …]
H A DUserProvisioningStateHelperTest.java58 @Mock private Utils mUtils; field in UserProvisioningStateHelperTest
72 mUtils, in setUp()
83 when(mUtils.getManagedProfile(mContext)).thenReturn(UserHandle.of(MANAGED_PROFILE_USER_ID)); in testInitiallyDone_ProfileAfterSuw()
98 when(mUtils.getManagedProfile(mContext)).thenReturn(UserHandle.of(MANAGED_PROFILE_USER_ID)); in testInitiallyDone_ProfileDuringSuw()
139 when(mUtils.getManagedProfile(mContext)).thenReturn(UserHandle.of(MANAGED_PROFILE_USER_ID)); in testFinalized_ManagedProfile()
208 when(mUtils.isHeadlessSystemUserMode()).thenReturn(true); in setHeadlessSystemUserMode()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
H A DOneHandedActionPullDownPrefControllerTest.java40 private OneHandedSettingsUtils mUtils; field in OneHandedActionPullDownPrefControllerTest
47 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
73 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
83 mUtils.setNavigationBarMode(mContext, "0" /* 3 button */); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
93 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setNaviGesturalMode_shouldEnabled()
103 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
113 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
114 mUtils.setShortcutEnabled(mContext, true); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
124 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
125 mUtils.setShortcutEnabled(mContext, false); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
H A DOneHandedActionShowNotificationPrefControllerTest.java40 private OneHandedSettingsUtils mUtils; field in OneHandedActionShowNotificationPrefControllerTest
47 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
56 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in updateState_setGesturalMode_shouldEnabled()
82 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
92 mUtils.setNavigationBarMode(mContext, "0" /* 3 button */); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
102 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
112 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
113 mUtils.setShortcutEnabled(mContext, true); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
123 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
124 mUtils.setShortcutEnabled(mContext, false); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
H A DOneHandedMainSwitchPreferenceControllerTest.java39 private OneHandedSettingsUtils mUtils; field in OneHandedMainSwitchPreferenceControllerTest
45 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
62 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in isChecked_setOneHandedModeEnabled_shouldReturnTrue()
71 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setSupportOneHandedModeProperty_shouldAvailable()
80 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
89 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_set3ButtonMode_shouldDisabled()
/aosp12/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/parser/
H A DParserUtilsTest.java73 private final Utils mUtils = new Utils(); field in ParserUtilsTest
218 FLAG_SUPPORTED_MODES_ORGANIZATION_OWNED, mUtils)).containsExactly( in getAllowedProvisioningModes_organizationOwned_returnsManagedProfileAndManagedDevice()
227 FLAG_SUPPORTED_MODES_PERSONALLY_OWNED, mUtils)).containsExactly( in getAllowedProvisioningModes_personallyOwned_returnsManagedProfileOnly()
244 FLAG_SUPPORTED_MODES_DEVICE_OWNER, mUtils)).containsExactly( in getAllowedProvisioningModes_deviceOwner_returnsManagedDevice()
261 INVALID_PROVISIONING_MODE_COMBINATION, mUtils)); in getAllowedProvisioningModes_invalidBinaryCombination_throwsException()
285 FLAG_SUPPORTED_MODES_PERSONALLY_OWNED, mUtils)); in getAllowedProvisioningModes_personallyOwnedAndManagedUsersNotSupported_throwsException()
291 DEFAULT_EXTRA_PROVISIONING_SUPPORTED_MODES, mUtils)).isEmpty(); in getAllowedProvisioningModes_defaultValue_returnsEmptyArray()
297 mContext, FLAG_SUPPORTED_MODES_PERSONALLY_OWNED, mUtils); in validateSupportedModes_personallyOwned_doesNothing()
303 mContext, FLAG_SUPPORTED_MODES_ORGANIZATION_OWNED, mUtils); in validateSupportedModes_organizationOwned_doesNothing()
309 mContext, FLAG_SUPPORTED_MODES_DEVICE_OWNER, mUtils); in validateSupportedModes_deviceOwner_doesNothing()
[all …]
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
H A DAddWifiNetworkTaskTest.java77 @Mock private Utils mUtils; field in AddWifiNetworkTaskTest
98 NO_WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, in testNoWifiInfo()
112 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testWifiManagerNull()
128 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testFailToEnableWifi()
147 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testIsConnectedToSpecifiedWifiTrue()
153 … when(mUtils.isNetworkTypeConnected(mContext, ConnectivityManager.TYPE_WIFI)).thenReturn(true); in testIsConnectedToSpecifiedWifiTrue()
170 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testNoWifiInfoInProvider()
176 … when(mUtils.isNetworkTypeConnected(mContext, ConnectivityManager.TYPE_WIFI)).thenReturn(true); in testNoWifiInfoInProvider()
198 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testFailingAddingNetwork()
228 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testFailingToReconnectAfterAddingNetwork()
[all …]
H A DVerifyPackageTaskTest.java75 @Mock private Utils mUtils; field in VerifyPackageTaskTest
96 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in setUp()
116 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in testMissingDeviceAdminComponent()
130 when(mUtils.computeHashOfFile(TEST_LOCAL_FILENAME, Utils.SHA256_TYPE)) in testPackageChecksumSha256_success()
144 when(mUtils.computeHashOfByteArray(TEST_SIGNATURES[0].toByteArray())) in testSignatureHash_success()
158 when(mUtils.computeHashOfByteArray(TEST_SIGNATURES[0].toByteArray())) in testSignatureHash_failure()
185 when(mUtils.computeHashOfByteArray(any(byte[].class))).thenReturn(null); in testSignatureHash_digestFailure()
206 mTask = new VerifyPackageTask(mUtils, mDownloadPackageTask, mContext, params, mCallback, in runWithDownloadInfo()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/emergencynumber/
H A DEmergencyNumberUtilsTest.java71 private EmergencyNumberUtils mUtils; field in EmergencyNumberUtilsTest
85 mUtils = new EmergencyNumberUtils(mContext); in getDefaultPoliceNumber_noTelephony_shouldReturnDefault()
87 assertThat(mUtils.getDefaultPoliceNumber()).isEqualTo( in getDefaultPoliceNumber_noTelephony_shouldReturnDefault()
96 mUtils = new EmergencyNumberUtils(mContext); in getDefaultPoliceNumber_hasTelephony_shouldLoadFromTelephony()
99 assertThat(mUtils.getDefaultPoliceNumber()).isEqualTo(TELEPHONY_EMERGENCY_NUMBER); in getDefaultPoliceNumber_hasTelephony_shouldLoadFromTelephony()
112 mUtils = new EmergencyNumberUtils(mContext); in getPoliceNumber_hasUserOverride_shouldLoadFromUserOverride()
114 assertThat(mUtils.getPoliceNumber()).isEqualTo(USER_OVERRIDE_EMERGENCY_NUMBER); in getPoliceNumber_hasUserOverride_shouldLoadFromUserOverride()
123 mUtils = new EmergencyNumberUtils(mContext); in getPoliceNumber_noUserOverride_shouldLoadFromTelephony()
125 assertThat(mUtils.getPoliceNumber()).isEqualTo(TELEPHONY_EMERGENCY_NUMBER); in getPoliceNumber_noUserOverride_shouldLoadFromTelephony()
139 mUtils = new EmergencyNumberUtils(mContext); in getPoliceNumber_hasCarrierPrefix_shouldRemovePrefix()
[all …]
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/
H A DNetworkTypeLoggerTest.java53 @Mock private Utils mUtils; field in NetworkTypeLoggerTest
65 mContext, mUtils, mMetricsLoggerWrapper, mMetricsWriter, mSharedPreferences); in setUp()
71 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(null); in test_NullNetworkInfo()
82 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(WIFI_NETWORK_INFO); in test_NetworkNotConnected()
84 when(mUtils.isConnectedToNetwork(mContext)).thenReturn(false); in test_NetworkNotConnected()
95 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(WIFI_NETWORK_INFO); in test_NetworkTypeWifi()
96 when(mUtils.isConnectedToNetwork(mContext)).thenReturn(true); in test_NetworkTypeWifi()
/aosp12/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/
H A DAdminIntegratedFlowPrepareActivityTest.java49 Utils mUtils = new Utils(); field in AdminIntegratedFlowPrepareActivityTest
59 mUtils, mContext, params); in shouldRunPrepareActivity_returnsFalse()
74 mUtils, mContext, params); in shouldRunPrepareActivity_wifi_returnsTrue()
87 mUtils, mContext, params); in shouldRunPrepareActivity_mobileData_returnsTrue()
105 mUtils, mContext, params); in shouldRunPrepareActivity_download_notSideloaded_returnsTrue()
124 mUtils, mContext, params); in shouldRunPrepareActivity_download_noMinimum_sideloaded_returnsTrue()
143 mUtils, mContext, params); in shouldRunPrepareActivity_download_minimum_sideloaded_meetsMinimum_returnsFalse()
162 mUtils, mContext, params); in shouldRunPrepareActivity_download_minimum_sideloaded_doesNotMeetMinimum_returnsFalse()
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
H A DProvisioningControllerFactory.java34 private final Utils mUtils = new Utils(); field in ProvisioningControllerFactory
44 if (mUtils.isDeviceOwnerAction(params.provisioningAction)) { in createProvisioningController()
45 int deviceOwner = mUtils.isHeadlessSystemUserMode() in createProvisioningController()
53 mUtils); in createProvisioningController()
54 } else if (mUtils.isFinancedDeviceAction(params.provisioningAction)) { in createProvisioningController()
H A DProvisioningActivity.java172 sharedPreferences.writeTextPrimaryColor(mUtils.getTextPrimaryColor(this)); in writeSharedPreferences()
174 sharedPreferences.writeBackgroundColor(mUtils.getBackgroundColor(this)); in writeSharedPreferences()
175 sharedPreferences.writeAccentColor(mUtils.getAccentColor(this)); in writeSharedPreferences()
183 .setUtils(mUtils) in createBridge()
266 this, mParams, mUtils);
304 if (mUtils.isProfileOwnerAction(mParams.provisioningAction)) {
306 } else if (mUtils.isDeviceOwnerAction(mParams.provisioningAction)) {
308 } else if (mUtils.isFinancedDeviceAction(mParams.provisioningAction)) {
422 mUtils.isProfileOwnerAction(mParams.provisioningAction);
431 } else if (mUtils.isDeviceOwnerAction(mParams.provisioningAction)) {
[all …]
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
H A DEncryptionController.java53 private final Utils mUtils; field in EncryptionController
105 mUtils = checkNotNull(utils, "Utils must not be null"); in EncryptionController()
128 mUtils.enableComponent(mHomeReceiver, mUserId); in setEncryptionReminder()
141 mUtils.disableComponent(mHomeReceiver, mUserId); in cancelEncryptionReminder()
189 if (!mUtils.isPhysicalDeviceEncrypted()) { in resumeProvisioningInternal()
196 if (mUtils.isProfileOwnerAction(action)) { in resumeProvisioningInternal()
202 } else if (mUtils.isDeviceOwnerAction(action)) { in resumeProvisioningInternal()
H A DPreProvisioningActivity.java158 mUtils, in createBridge()
246 && mUtils.isOrganizationOwnedAllowed(mController.getParams())) {
265 if (mUtils.isOrganizationOwnedAllowed(mController.getParams())) {
278 if (mUtils.isOrganizationOwnedAllowed(mController.getParams())) {
305 return mUtils.isPackageInstalled(adminPackageName, getPackageManager());
389 final Intent intent = mUtils.getWifiPickIntent();
451 boolean canPerformAdminIntegratedFlow = mUtils.canPerformAdminIntegratedFlow(
462 if (mUtils.isOrganizationOwnedAllowed(mController.getParams())) {
536 if (mUtils.isOrganizationOwnedAllowed(mController.getParams())) {
537 showDialog(mUtils.createCancelProvisioningResetDialogBuilder(),
[all …]
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DConnectMobileNetworkTask.java41 private final Utils mUtils; field in ConnectMobileNetworkTask
50 mUtils = new Utils(); in ConnectMobileNetworkTask()
70 && mUtils.isMobileNetworkConnectedToInternet(mContext)) { in run()
100 && mUtils.isMobileNetworkConnectedToInternet(mContext))) { in onNetworkConnected()
111 && mUtils.isConnectedToNetwork(mContext); in isLegacyConnected()
H A DSetDeviceOwnerPolicyTask.java47 private final Utils mUtils; field in SetDeviceOwnerPolicyTask
67 mUtils = checkNotNull(utils); in SetDeviceOwnerPolicyTask()
78 mProvisioningParams.inferDeviceAdminComponentName(mUtils, mContext, userId); in run()
87 if (success && mUtils.isFinancedDeviceAction(mProvisioningParams.provisioningAction)) { in run()
123 if (!component.equals(mUtils.getCurrentDeviceOwnerComponentName(mDevicePolicyManager))) { in setDeviceOwner()
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
H A DEncryptionControllerTest.java57 @Mock private Utils mUtils; field in EncryptionControllerTest
72 when(mUtils.isPhysicalDeviceEncrypted()).thenReturn(true); in setUp()
86 verify(mUtils).enableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); in testDeviceOwner()
110 verify(mUtils).enableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); in testProfileOwnerDuringSuw()
123 when(mUtils.isPhysicalDeviceEncrypted()).thenReturn(false); in testDeviceNotEncrypted()
145 verify(mUtils).disableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); in testCancelProvisioningReminder()
175 return new EncryptionController(mContext, mUtils, mSettingsFacade, TEST_HOME_RECEIVER, in createEncryptionController()
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
H A DInvalidationRequesterClient.java64 @NonNull private final BiometricUtils<S> mUtils; field in InvalidationRequesterClient
70 mUtils.setInvalidationInProgress(getContext(), getTargetUserId(),
83 mUtils = utils; in InvalidationRequesterClient()
90 mUtils.setInvalidationInProgress(getContext(), getTargetUserId(), true /* inProgress */); in start()
/aosp12/packages/apps/Settings/src/com/android/settings/password/
H A DSaveChosenLockWorkerBase.java44 protected LockPatternUtils mUtils; field in SaveChosenLockWorkerBase
72 mUtils = utils; in prepare()
76 mWasSecureBefore = mUtils.isSecure(mUserId); in prepare()
82 mUtils.setCredentialRequiredToDecrypt(credentialRequired); in prepare()
126 mUtils.setSeparateProfileChallengeEnabled(mUnificationProfileId, false, in unifyProfileCredentialIfRequested()
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLocaleUtils.java511 private final ContactLocaleUtilsBase mUtils; field in ContactLocaleUtils
520 mUtils = new JapaneseContactUtils(mLocales); in ContactLocaleUtils()
522 mUtils = new SimplifiedChineseContactUtils(mLocales); in ContactLocaleUtils()
524 mUtils = new ContactLocaleUtilsBase(mLocales); in ContactLocaleUtils()
561 return mUtils.getSortKey(name); in getSortKey()
565 return mUtils.getBucketIndex(name); in getBucketIndex()
569 return mUtils.getNumberBucketIndex(); in getNumberBucketIndex()
573 return mUtils.getBucketCount(); in getBucketCount()
577 return mUtils.getBucketLabel(bucketIndex); in getBucketLabel()
585 return mUtils.getLabels(); in getLabels()
[all …]

1234