Home
last modified time | relevance | path

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

12345

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java81 private Utils mUtils; field in UtilsTest
95 mUtils = new Utils(); in setUp()
124 Set<String> res = mUtils.getCurrentSystemApps(mockIPackageManager, TEST_USER_ID); in testGetCurrentSystemApps()
134 mUtils.setComponentEnabledSetting(mockIPackageManager, TEST_COMPONENT_NAME, in testSetComponentEnabledSetting()
151 assertTrue(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME_1, 0, mockContext)); in testPackageRequiresUpdate_notPresent()
163 assertFalse(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME_1, 0, mockContext)); in testPackageRequiresUpdate()
164 assertFalse(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME_1, 1, mockContext)); in testPackageRequiresUpdate()
165 assertTrue(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME_1, 2, mockContext)); in testPackageRequiresUpdate()
173 assertTrue(mUtils.isConnectedToNetwork(mockContext)); in testIsConnectedToNetwork()
179 assertTrue(mUtils.isConnectedToNetwork(mockContext)); in testIsConnectedToNetwork()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/appcompat/
DUserAspectRatioManagerTest.java85 private FakeUserAspectRatioManager mUtils; field in UserAspectRatioManagerTest
107 mUtils = new FakeUserAspectRatioManager(mContext, mIPm); in setUp()
139 assertTrue(mUtils.canDisplayAspectRatioUi(canDisplay)); in testCanDisplayAspectRatioUi()
145 assertFalse(mUtils.canDisplayAspectRatioUi(noLauncherEntry)); in testCanDisplayAspectRatioUi()
157 assertFalse(mUtils.canDisplayAspectRatioUi(canDisplay)); in testCanDisplayAspectRatioUi_hasLauncher_propertyFalse_returnFalse()
169 assertFalse(mUtils.canDisplayAspectRatioUi(noLauncherEntry)); in testCanDisplayAspectRatioUi_noLauncher_propertyTrue_returnFalse()
191 assertTrue(mUtils.isFullscreenOptionEnabled(mPackageName)); in testIsFullscreenOptionEnabled()
197 assertFalse(mUtils.isFullscreenOptionEnabled(mPackageName)); in testIsFullscreenOptionEnabled_settingsDisabled_returnFalse()
203 assertFalse(mUtils.isFullscreenOptionEnabled(mPackageName)); in testIsFullscreenOptionEnabled_disabledBuildTimeFlag_returnFalse()
209 assertFalse(mUtils.isFullscreenOptionEnabled(mPackageName)); in testIsFullscreenOptionEnabled_disabledRuntimeFlag_returnFalse()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DProvisioningIntentProviderTest.java91 @Mock private Utils mUtils; field in ProvisioningIntentProviderTest
110 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched()
113 mProvisioningIntentProvider.maybeLaunchDpc(ADMIN_INTEGRATED_FLOW_PARAMS, 0, mUtils, in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched()
127 mProvisioningIntentProvider.maybeLaunchDpc(LEGACY_FLOW_PARAMS, 0, mUtils, mContext, in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched()
138 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched()
142 mProvisioningIntentProvider.maybeLaunchDpc(LEGACY_FLOW_PARAMS, 0, mUtils, mContext, 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()
159 LEGACY_FLOW_PARAMS, WORK_PROFILE_USER_HANDLE.getIdentifier(), mUtils, mContext, in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched()
170 when(mUtils.canResolveIntentAsUser(any(), any(), anyInt())).thenReturn(true); in maybeLaunchDpc_legacyFlow_policyComplianceResolvable_hasProvisioningTrigger_provisioningSuccessfulLaunched()
[all …]
DUserProvisioningStateHelperTest.java60 @Mock private Utils mUtils; field in UserProvisioningStateHelperTest
74 mUtils, in setUp()
85 when(mUtils.getManagedProfile(mContext)).thenReturn(UserHandle.of(MANAGED_PROFILE_USER_ID)); in testInitiallyDone_ProfileAfterSuw()
100 when(mUtils.getManagedProfile(mContext)).thenReturn(UserHandle.of(MANAGED_PROFILE_USER_ID)); in testInitiallyDone_ProfileDuringSuw()
141 when(mUtils.getManagedProfile(mContext)).thenReturn(UserHandle.of(MANAGED_PROFILE_USER_ID)); in testFinalized_ManagedProfile()
213 when(mUtils.isHeadlessSystemUserMode()).thenReturn(true); in setHeadlessSystemUserMode()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DUtilsRoboTest.java73 private Utils mUtils = new Utils(); field in UtilsRoboTest
87 assertThat(mUtils.canPerformAdminIntegratedFlow(mContext, PARAMS_ORG_OWNED, in shouldPerformAdminIntegratedFlow_allConditionsMet_returnsTrue()
98 assertThat(mUtils.canPerformAdminIntegratedFlow(mContext, PARAMS_ORG_OWNED, in shouldPerformAdminIntegratedFlow_noPolicyComplianceScreen_returnsFalse()
109 assertThat(mUtils.canPerformAdminIntegratedFlow(mContext, PARAMS_ORG_OWNED, in shouldPerformAdminIntegratedFlow_noGetProvisioningModeScreen_returnsFalse()
115 assertThat(mUtils.checkAdminIntegratedFlowPreconditions( in checkAdminIntegratedFlowPreconditions_notStartedByTrustedSource_returnsFalse()
121 assertThat(mUtils.checkAdminIntegratedFlowPreconditions( in checkAdminIntegratedFlowPreconditions_financedDevice_returnsFalse()
132 assertThat(mUtils.isOrganizationOwnedAllowed(params)).isFalse(); in isOrganizationOwnedAllowed_personallyOwnedProvisioning_returnsFalse()
142 assertThat(mUtils.isOrganizationOwnedAllowed(params)).isTrue(); in isOrganizationOwnedAllowed_organizationOwnedProvisioning_returnsTrue()
154 assertThat(mUtils.isOrganizationOwnedAllowed(params)).isTrue(); in isOrganizationOwnedAllowed_organizationAndPersonallyOwnedProvisioning_returnsTrue()
164 assertThat(mUtils.isOrganizationOwnedAllowed(params)).isTrue(); in isOrganizationOwnedAllowed_deviceOwnerProvisioning_returnsTrue()
[all …]
DPolicyComplianceUtilsTest.kt43 private val mUtils = Utils() constant in com.android.managedprovisioning.common.PolicyComplianceUtilsTest
57 mUtils, in isPolicyComplianceActivityResolvableForSystemUser_activityExists_returnsTrue()
67 mUtils, in isPolicyComplianceActivityResolvableForSystemUser_activityExists_returnsFalse()
82 mUtils, in startPolicyComplianceActivityForResultIfResolved_activityExists_isStarted()
100 mUtils, in startPolicyComplianceActivityForResultIfResolved_activityDoesNotExist_notStarted()
117 mUtils, in startPolicyComplianceActivityIfResolved_activityExists_isStarted()
133 mUtils, in startPolicyComplianceActivityIfResolved_activityDoesNotExist_notStarted()
148 mUtils, in startPolicyComplianceActivityIfResolved_fromNonActivityContext_isStartedWithNewTaskFlag()
164 mUtils) in isPolicyComplianceActivityResolvableForManagedUser_withSystemUser_activityExists_returnsTrue()
173 mUtils) in isPolicyComplianceActivityResolvableForManagedUser_withSystemUser_activityDoesNotExist_returnsFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DOneHandedActionShowNotificationPrefControllerTest.java41 private OneHandedSettingsUtils mUtils; field in OneHandedActionShowNotificationPrefControllerTest
48 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
57 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in updateState_setGesturalMode_shouldEnabled()
83 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
94 mUtils.setNavigationBarMode(mContext, "0" /* 3 button */); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
104 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
114 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
115 mUtils.setShortcutEnabled(mContext, true); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
125 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
126 mUtils.setShortcutEnabled(mContext, false); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
DOneHandedActionPullDownPrefControllerTest.java41 private OneHandedSettingsUtils mUtils; field in OneHandedActionPullDownPrefControllerTest
48 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
74 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setOneHandedModeDisabled_shouldDisabled()
85 mUtils.setNavigationBarMode(mContext, "0" /* 3 button */); in getAvailabilityStatus_setNavi3ButtonMode_shouldDisabled()
95 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setNaviGesturalMode_shouldEnabled()
105 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
115 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
116 mUtils.setShortcutEnabled(mContext, true); in getAvailabilityStatus_setShortcutEnabled_shouldEnabled()
126 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
127 mUtils.setShortcutEnabled(mContext, false); in getAvailabilityStatus_setShortcutDisabled_shouldDisabled()
DOneHandedMainSwitchPreferenceControllerTest.java40 private OneHandedSettingsUtils mUtils; field in OneHandedMainSwitchPreferenceControllerTest
46 mUtils = new OneHandedSettingsUtils(mContext); in setUp()
63 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in isChecked_setOneHandedModeEnabled_shouldReturnTrue()
72 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_setSupportOneHandedModeProperty_shouldAvailable()
81 mUtils.setNavigationBarMode(mContext, "2" /* fully gestural */); in getAvailabilityStatus_unsetSupportOneHandedModeProperty_shouldDisabled()
91 mUtils.setNavigationBarMode(mContext, "0" /* 3-button mode */); in getAvailabilityStatus_set3ButtonMode_shouldDisabled()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/parser/
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()
235 | FLAG_SUPPORTED_MODES_PERSONALLY_OWNED, mUtils)).containsExactly( in getAllowedProvisioningModes_organizationAndPersonallyOwned_returnsManagedProfileManagedDevicePersonalManagedProfile()
244 FLAG_SUPPORTED_MODES_DEVICE_OWNER, mUtils)).containsExactly( in getAllowedProvisioningModes_deviceOwner_returnsManagedDevice()
253 .getAllowedProvisioningModes(mContext, INVALID_PROVISIONING_MODES, mUtils)); in getAllowedProvisioningModes_invalidValue_throwsException()
261 INVALID_PROVISIONING_MODE_COMBINATION, mUtils)); in getAllowedProvisioningModes_invalidBinaryCombination_throwsException()
271 FLAG_SUPPORTED_MODES_ORGANIZATION_OWNED, mUtils)).containsExactly( in getAllowedProvisioningModes_organizationOwnedAndManagedUsersNotSupported_returnsManagedDeviceOnly()
285 FLAG_SUPPORTED_MODES_PERSONALLY_OWNED, mUtils)); in getAllowedProvisioningModes_personallyOwnedAndManagedUsersNotSupported_throwsException()
291 DEFAULT_EXTRA_PROVISIONING_SUPPORTED_MODES, mUtils)).isEmpty(); in getAllowedProvisioningModes_defaultValue_returnsEmptyArray()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
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()
204 … when(mUtils.isNetworkTypeConnected(mContext, ConnectivityManager.TYPE_WIFI)).thenReturn(true); in testFailingAddingNetwork()
[all …]
DVerifyAdminPackageTaskTest.java76 @Mock private Utils mUtils; field in VerifyAdminPackageTaskTest
99 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in setUp()
102 mChecksumUtils = new ChecksumUtils(mUtils); in setUp()
121 when(mUtils.findDeviceAdminInPackageInfo(TEST_PACKAGE_NAME, null, mPackageInfo)) in testMissingDeviceAdminComponent()
135 when(mUtils.computeHashOfFile(TEST_LOCAL_FILENAME, Utils.SHA256_TYPE)) in testPackageChecksumSha256_success()
149 when(mUtils.computeHashOfByteArray(TEST_SIGNATURES[0].toByteArray())) in testSignatureHash_success()
163 when(mUtils.computeHashOfByteArray(TEST_SIGNATURES[0].toByteArray())) in testSignatureHash_failure()
190 when(mUtils.computeHashOfByteArray(any(byte[].class))).thenReturn(null); in testSignatureHash_digestFailure()
211 mTask = new VerifyAdminPackageTask(mUtils, mDownloadPackageTask, mContext, params, in runWithDownloadInfo()
DVerifyRoleHolderPackageTaskTest.java73 @Mock private Utils mUtils; field in VerifyRoleHolderPackageTaskTest
96 mChecksumUtils = new ChecksumUtils(mUtils); in setUp()
115 when(mUtils.computeHashOfFile(TEST_LOCAL_FILENAME, Utils.SHA256_TYPE)) in testPackageChecksumSha256_success()
129 when(mUtils.computeHashOfByteArray(TEST_SIGNATURES[0].toByteArray())) in testSignatureHash_success()
143 when(mUtils.computeHashOfByteArray(TEST_SIGNATURES[0].toByteArray())) in testSignatureHash_failure()
170 when(mUtils.computeHashOfByteArray(any(byte[].class))).thenReturn(null); in testSignatureHash_digestFailure()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/networkconnection/
DEstablishNetworkConnectionViewModel.java58 private final Utils mUtils; field in EstablishNetworkConnectionViewModel
67 mUtils = requireNonNull(utils); in EstablishNetworkConnectionViewModel()
80 params = new MessageParser(context, mUtils).parse(intent); in parseExtras()
102 var networkCapabilities = mUtils.getActiveNetworkCapabilities(context); in connectToNetwork()
104 && mUtils.isNetworkConnectedToInternetViaEthernet(networkCapabilities)) { in connectToNetwork()
118 mUtils, in connectToNetwork()
168 private final Utils mUtils; field in EstablishNetworkConnectionViewModel.EstablishNetworkConnectionViewModelFactory
176 mUtils = requireNonNull(utils); in EstablishNetworkConnectionViewModelFactory()
190 mUtils, mSettingsFacade, mSharedPreferences); in create()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/
DNetworkTypeLoggerTest.java52 @Mock private Utils mUtils; field in NetworkTypeLoggerTest
64 mContext, mUtils, mMetricsLoggerWrapper, mMetricsWriter, mSharedPreferences); in setUp()
70 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(null); in test_NullNetworkInfo()
81 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(WIFI_NETWORK_INFO); in test_NetworkNotConnected()
83 when(mUtils.isConnectedToNetwork(mContext)).thenReturn(false); in test_NetworkNotConnected()
94 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(WIFI_NETWORK_INFO); in test_NetworkTypeWifi()
95 when(mUtils.isConnectedToNetwork(mContext)).thenReturn(true); in test_NetworkTypeWifi()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningActivity.java177 sharedPreferences.writeTextPrimaryColor(mUtils.getTextPrimaryColor(this)); in writeSharedPreferences()
178 sharedPreferences.writeTextSecondaryColor(mUtils.getTextSecondaryColor(this)); in writeSharedPreferences()
179 sharedPreferences.writeBackgroundColor(mUtils.getBackgroundColor(this)); in writeSharedPreferences()
180 sharedPreferences.writeAccentColor(mUtils.getAccentColor(this)); in writeSharedPreferences()
188 .setUtils(mUtils) in createBridge()
267 if (!mUtils.isFinancedDeviceAction(mParams.provisioningAction)) {
271 this, mParams, mUtils);
310 if (mUtils.isProfileOwnerAction(mParams.provisioningAction)) {
312 } else if (mUtils.isDeviceOwnerAction(mParams.provisioningAction)) {
314 } else if (mUtils.isFinancedDeviceAction(mParams.provisioningAction)) {
[all …]
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()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/
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()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
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()
DDownloadRoleHolderViewModel.java52 private final Utils mUtils; field in DownloadRoleHolderViewModel
63 mUtils = requireNonNull(utils); in DownloadRoleHolderViewModel()
85 mUtils, in connectToNetworkAndDownloadRoleHolder()
139 private final Utils mUtils; field in DownloadRoleHolderViewModel.DownloadRoleHolderViewModelFactory
150 mUtils = requireNonNull(utils); in DownloadRoleHolderViewModelFactory()
162 mParams, mUtils, mSettingsFacade, mRoleHolderPackageName); in create()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
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()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DEncryptionControllerTest.java59 @Mock private Utils mUtils; field in EncryptionControllerTest
74 when(mUtils.isPhysicalDeviceEncrypted()).thenReturn(true); in setUp()
88 verify(mUtils).enableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); in testDeviceOwner()
112 verify(mUtils).enableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); in testProfileOwnerDuringSuw()
125 when(mUtils.isPhysicalDeviceEncrypted()).thenReturn(false); in testDeviceNotEncrypted()
147 verify(mUtils).disableComponent(TEST_HOME_RECEIVER, TEST_USER_ID); in testCancelProvisioningReminder()
177 return new EncryptionController(mContext, mUtils, mSettingsFacade, TEST_HOME_RECEIVER, in createEncryptionController()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
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 …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DRetryLaunchViewModel.java228 private final Utils mUtils; field in RetryLaunchViewModel.RetryLaunchViewModelFactory
238 mUtils = requireNonNull(utils); in RetryLaunchViewModelFactory()
247 new DefaultCanLaunchActivityChecker(mUtils), in create()
264 private final Utils mUtils; field in RetryLaunchViewModel.DefaultCanLaunchActivityChecker
267 mUtils = requireNonNull(utils); in DefaultCanLaunchActivityChecker()
272 return mUtils.canResolveIntentAsUser(context, intent, UserHandle.USER_SYSTEM); in canLaunchActivity()
/packages/apps/Settings/src/com/android/settings/password/
DSaveAndFinishWorker.java47 private LockPatternUtils mUtils; field in SaveAndFinishWorker
80 mUtils = utils; in prepare()
83 mWasSecureBefore = mUtils.isSecure(mUserId); in prepare()
111 if (!mUtils.setLockCredential(mChosenCredential, mCurrentCredential, userId)) { in saveAndVerifyInBackground()
136 final VerifyCredentialResponse response = mUtils.verifyCredential(mChosenCredential, in saveAndVerifyInBackground()
193 mUtils.setSeparateProfileChallengeEnabled(mUnificationProfileId, false, in unifyProfileCredentialIfRequested()

12345