Home
last modified time | relevance | path

Searched refs:Utils (Results 1 – 25 of 249) sorted by relevance

12345678910

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DUtilsTest.java49 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andKeyAuthenticators()
62 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andKeyAuthenticators()
74 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withKeyDeviceCredential_andNoKeyAuthenticators()
85 Utils.combineAuthenticatorBundles(promptInfo); in testCombineAuthenticatorBundles_withNoKeyDeviceCredential_andNoKeyAuthenticators()
94 assertFalse(Utils.isCredentialRequested(authenticators)); in testIsDeviceCredentialAllowed_withIntegerFlags()
97 assertTrue(Utils.isCredentialRequested(authenticators)); in testIsDeviceCredentialAllowed_withIntegerFlags()
100 assertTrue(Utils.isCredentialRequested(authenticators)); in testIsDeviceCredentialAllowed_withIntegerFlags()
106 assertFalse(Utils.isCredentialRequested(promptInfo)); in testIsDeviceCredentialAllowed_withBundle()
110 assertFalse(Utils.isCredentialRequested(promptInfo)); in testIsDeviceCredentialAllowed_withBundle()
114 assertTrue(Utils.isCredentialRequested(promptInfo)); in testIsDeviceCredentialAllowed_withBundle()
[all …]
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFullscreenRotationTest.java35 Utils.startElementLayout(getInstrumentation(), 100); in beforeTest()
41 Utils.rotateDevice(getInstrumentation(), Utils.ROTATION_MODE_NATURAL); in afterTest()
46 @GfxMonitor(processName=Utils.PACKAGE)
49 Utils.rotateDevice(getInstrumentation(), in testRotation()
50 Utils.getDeviceRotation(getInstrumentation()) == Utils.ROTATION_MODE_LEFT ? in testRotation()
51 Utils.ROTATION_MODE_RIGHT : Utils.ROTATION_MODE_LEFT); in testRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDualToneHandler.kt22 import com.android.settingslib.Utils
52 Utils.getThemeAttr(context, R.attr.darkIconTheme)) in setColorsFromContext()
54 Utils.getThemeAttr(context, R.attr.lightIconTheme)) in setColorsFromContext()
56 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.singleToneColor), in setColorsFromContext()
57 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.iconBackgroundColor), in setColorsFromContext()
58 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.fillColor)) in setColorsFromContext()
60 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.singleToneColor), in setColorsFromContext()
61 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.iconBackgroundColor), in setColorsFromContext()
62 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.fillColor)) in setColorsFromContext()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java18 import static com.android.settingslib.Utils.STORAGE_MANAGER_ENABLED_PROPERTY;
90 Utils.updateLocationEnabled(mContext, true, currentUserId, in testUpdateLocationEnabled()
105 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], true); in testFormatPercentage_RoundTrue_RoundUpIfPossible()
117 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], false); in testFormatPercentage_RoundFalse_NoRound()
133 assertThat(Utils.getDefaultStorageManagerDaysToRetain(resources)).isEqualTo(60); in testGetDefaultStorageManagerDaysToRetain_storageManagerDaysToRetainUsesResources()
139 assertThat(Utils.isStorageManagerEnabled(mContext)).isTrue(); in testIsStorageManagerEnabled_UsesSystemProperties()
184 assertThat(Utils.isAudioModeOngoingCall(mContext)).isTrue(); in isAudioModeOngoingCall_modeInCommunication_returnTrue()
191 assertThat(Utils.isAudioModeOngoingCall(mContext)).isTrue(); in isAudioModeOngoingCall_modeInCall_returnTrue()
198 assertThat(Utils.isAudioModeOngoingCall(mContext)).isTrue(); in isAudioModeOngoingCall_modeRingtone_returnTrue()
205 assertThat(Utils.isAudioModeOngoingCall(mContext)).isFalse(); in isAudioModeOngoingCall_modeNormal_returnFalse()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierUtilsTest.java44 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
51 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
58 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
65 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
70 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
81 assertThrows(() -> TextClassifier.Utils.getSubString(null, 0, 1, minimumLength)); in testGetSubString_invalidParams()
83 assertThrows(() -> TextClassifier.Utils.getSubString(text, 6, 5, minimumLength)); in testGetSubString_invalidParams()
85 assertThrows(() -> TextClassifier.Utils.getSubString(text, -1, 5, minimumLength)); in testGetSubString_invalidParams()
87 assertThrows(() -> TextClassifier.Utils.getSubString(text, 6, length + 1, minimumLength)); in testGetSubString_invalidParams()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceService.java59 import com.android.server.biometrics.Utils;
140 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in createTestSession()
154 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in dumpSensorServiceStateProto()
168 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in getSensorPropertiesInternal()
176 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in getSensorProperties()
191 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in generateChallenge()
205 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in revokeChallenge()
220 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in enroll()
236 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in enrollRemotely()
243 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in cancelEnrollment()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthCredentialView.java95 protected @Utils.CredentialType int mCredentialType;
180 Utils.notifyAccessibilityContentChanged(mAccessibilityManager, this); in setTextOrHide()
199 void setCredentialType(@Utils.CredentialType int credentialType) { in setCredentialType()
239 final boolean isManagedProfile = Utils.isManagedProfile(mContext, mEffectiveUserId); in onAttachedToWindow()
336 case Utils.CREDENTIAL_PIN: in onCredentialVerified()
339 case Utils.CREDENTIAL_PATTERN: in onCredentialVerified()
342 case Utils.CREDENTIAL_PASSWORD: in onCredentialVerified()
431 @UserType int userType, @Utils.CredentialType int credentialType) { in getLastAttemptBeforeWipeMessage()
445 @Utils.CredentialType int credentialType) { in getLastAttemptBeforeWipeDeviceMessage()
447 case Utils.CREDENTIAL_PIN: in getLastAttemptBeforeWipeDeviceMessage()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintService.java85 import com.android.server.biometrics.Utils;
174 Utils.checkPermission(getContext(), TEST_BIOMETRIC); in createTestSession()
188 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in dumpSensorServiceStateProto()
204 Utils.checkPermission(getContext(), TEST_BIOMETRIC); in getSensorPropertiesInternal()
213 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in getSensorProperties()
227 Utils.checkPermission(getContext(), MANAGE_FINGERPRINT); in generateChallenge()
241 Utils.checkPermission(getContext(), MANAGE_FINGERPRINT); in revokeChallenge()
257 Utils.checkPermission(getContext(), MANAGE_FINGERPRINT); in enroll()
271 Utils.checkPermission(getContext(), MANAGE_FINGERPRINT); in cancelEnrollment()
310 final boolean isKeyguard = Utils.isKeyguard(getContext(), opPackageName); in authenticate()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DBiometricTestSessionImpl.java32 import com.android.server.biometrics.Utils;
137 Utils.checkPermission(mContext, TEST_BIOMETRIC); in setTestHalEnabled()
144 Utils.checkPermission(mContext, TEST_BIOMETRIC); in startEnroll()
152 Utils.checkPermission(mContext, TEST_BIOMETRIC); in finishEnroll()
166 Utils.checkPermission(mContext, TEST_BIOMETRIC); in acceptAuthentication()
182 Utils.checkPermission(mContext, TEST_BIOMETRIC); in rejectAuthentication()
189 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyAcquired()
196 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyError()
203 Utils.checkPermission(mContext, TEST_BIOMETRIC); in cleanupInternalState()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/
DBiometricTestSessionImpl.java33 import com.android.server.biometrics.Utils;
132 Utils.checkPermission(mContext, TEST_BIOMETRIC); in setTestHalEnabled()
139 Utils.checkPermission(mContext, TEST_BIOMETRIC); in startEnroll()
148 Utils.checkPermission(mContext, TEST_BIOMETRIC); in finishEnroll()
162 Utils.checkPermission(mContext, TEST_BIOMETRIC); in acceptAuthentication()
178 Utils.checkPermission(mContext, TEST_BIOMETRIC); in rejectAuthentication()
185 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyAcquired()
192 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyError()
199 Utils.checkPermission(mContext, TEST_BIOMETRIC); in cleanupInternalState()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DBiometricTestSessionImpl.java36 import com.android.server.biometrics.Utils;
143 Utils.checkPermission(mContext, TEST_BIOMETRIC); in setTestHalEnabled()
151 Utils.checkPermission(mContext, TEST_BIOMETRIC); in startEnroll()
160 Utils.checkPermission(mContext, TEST_BIOMETRIC); in finishEnroll()
174 Utils.checkPermission(mContext, TEST_BIOMETRIC); in acceptAuthentication()
190 Utils.checkPermission(mContext, TEST_BIOMETRIC); in rejectAuthentication()
198 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyAcquired()
214 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyError()
222 Utils.checkPermission(mContext, TEST_BIOMETRIC); in cleanupInternalState()
DSensor.java54 import com.android.server.biometrics.Utils;
166 + Utils.getClientName(client)); in onChallengeGenerated()
182 + Utils.getClientName(client)); in onChallengeRevoked()
198 + Utils.getClientName(client)); in onAuthenticationFrame()
204 + Utils.getClientName(client)); in onAuthenticationFrame()
218 + Utils.getClientName(client)); in onEnrollmentFrame()
223 + Utils.getClientName(client)); in onEnrollmentFrame()
236 + ", client: " + Utils.getClientName(client) in onError()
241 + Utils.getClientName(client)); in onError()
260 + Utils.getClientName(client)); in onEnrollmentProgress()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DBiometricTestSessionImpl.java33 import com.android.server.biometrics.Utils;
136 Utils.checkPermission(mContext, TEST_BIOMETRIC); in setTestHalEnabled()
144 Utils.checkPermission(mContext, TEST_BIOMETRIC); in startEnroll()
152 Utils.checkPermission(mContext, TEST_BIOMETRIC); in finishEnroll()
166 Utils.checkPermission(mContext, TEST_BIOMETRIC); in acceptAuthentication()
182 Utils.checkPermission(mContext, TEST_BIOMETRIC); in rejectAuthentication()
189 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyAcquired()
197 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyError()
205 Utils.checkPermission(mContext, TEST_BIOMETRIC); in cleanupInternalState()
DSensor.java51 import com.android.server.biometrics.Utils;
168 + Utils.getClientName(client)); in onChallengeGenerated()
184 + Utils.getClientName(client)); in onChallengeRevoked()
200 + Utils.getClientName(client)); in onAcquired()
215 + ", client: " + Utils.getClientName(client) in onError()
220 + Utils.getClientName(client)); in onError()
239 + Utils.getClientName(client)); in onEnrollmentProgress()
259 + Utils.getClientName(client)); in onAuthenticationSucceeded()
282 + Utils.getClientName(client)); in onAuthenticationFailed()
300 + Utils.getClientName(client)); in onLockoutTimed()
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DKeyGenParameterSpec.java397 mCertificateNotBefore = Utils.cloneIfNotNull(certificateNotBefore); in KeyGenParameterSpec()
398 mCertificateNotAfter = Utils.cloneIfNotNull(certificateNotAfter); in KeyGenParameterSpec()
399 mKeyValidityStart = Utils.cloneIfNotNull(keyValidityStart); in KeyGenParameterSpec()
400 mKeyValidityForOriginationEnd = Utils.cloneIfNotNull(keyValidityForOriginationEnd); in KeyGenParameterSpec()
401 mKeyValidityForConsumptionEnd = Utils.cloneIfNotNull(keyValidityForConsumptionEnd); in KeyGenParameterSpec()
413 mAttestationChallenge = Utils.cloneIfNotNull(attestationChallenge); in KeyGenParameterSpec()
514 return Utils.cloneIfNotNull(mCertificateNotBefore); in getCertificateNotBefore()
523 return Utils.cloneIfNotNull(mCertificateNotAfter); in getCertificateNotAfter()
532 return Utils.cloneIfNotNull(mKeyValidityStart); in getKeyValidityStart()
541 return Utils.cloneIfNotNull(mKeyValidityForConsumptionEnd); in getKeyValidityForConsumptionEnd()
[all …]
DKeyInfo.java119 mKeyValidityStart = Utils.cloneIfNotNull(keyValidityStart); in KeyInfo()
120 mKeyValidityForOriginationEnd = Utils.cloneIfNotNull(keyValidityForOriginationEnd); in KeyInfo()
121 mKeyValidityForConsumptionEnd = Utils.cloneIfNotNull(keyValidityForConsumptionEnd); in KeyInfo()
182 return Utils.cloneIfNotNull(mKeyValidityStart); in getKeyValidityStart()
192 return Utils.cloneIfNotNull(mKeyValidityForConsumptionEnd); in getKeyValidityForConsumptionEnd()
202 return Utils.cloneIfNotNull(mKeyValidityForOriginationEnd); in getKeyValidityForOriginationEnd()
DKeyProtection.java263 mKeyValidityStart = Utils.cloneIfNotNull(keyValidityStart); in KeyProtection()
264 mKeyValidityForOriginationEnd = Utils.cloneIfNotNull(keyValidityForOriginationEnd); in KeyProtection()
265 mKeyValidityForConsumptionEnd = Utils.cloneIfNotNull(keyValidityForConsumptionEnd); in KeyProtection()
295 return Utils.cloneIfNotNull(mKeyValidityStart); in getKeyValidityStart()
305 return Utils.cloneIfNotNull(mKeyValidityForConsumptionEnd); in getKeyValidityForConsumptionEnd()
315 return Utils.cloneIfNotNull(mKeyValidityForOriginationEnd); in getKeyValidityForOriginationEnd()
616 mKeyValidityStart = Utils.cloneIfNotNull(startDate); in setKeyValidityStart()
645 mKeyValidityForOriginationEnd = Utils.cloneIfNotNull(endDate); in setKeyValidityForOriginationEnd()
659 mKeyValidityForConsumptionEnd = Utils.cloneIfNotNull(endDate); in setKeyValidityForConsumptionEnd()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DUtilsTest.java21 import static com.android.wifitrackerlib.Utils.getAutoConnectDescription;
22 import static com.android.wifitrackerlib.Utils.getBestScanResultByLevel;
23 import static com.android.wifitrackerlib.Utils.getCarrierNameForSubId;
24 import static com.android.wifitrackerlib.Utils.getImsiProtectionDescription;
25 import static com.android.wifitrackerlib.Utils.getMeteredDescription;
26 import static com.android.wifitrackerlib.Utils.getNetworkSelectionDescription;
27 import static com.android.wifitrackerlib.Utils.getSecurityTypesFromScanResult;
28 import static com.android.wifitrackerlib.Utils.getSecurityTypesFromWifiConfiguration;
29 import static com.android.wifitrackerlib.Utils.getSubIdForConfig;
30 import static com.android.wifitrackerlib.Utils.isImsiPrivacyProtectionProvided;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DNavigationHandle.java30 import com.android.settingslib.Utils;
53 final int dualToneDarkTheme = Utils.getThemeAttr(context, R.attr.darkIconTheme); in NavigationHandle()
54 final int dualToneLightTheme = Utils.getThemeAttr(context, R.attr.lightIconTheme); in NavigationHandle()
57 mLightColor = Utils.getColorAttrDefaultColor(lightContext, R.attr.homeHandleColor); in NavigationHandle()
58 mDarkColor = Utils.getColorAttrDefaultColor(darkContext, R.attr.homeHandleColor); in NavigationHandle()
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java19 import static android.media.Utils.intersectSortedDistinctRanges;
20 import static android.media.Utils.sortDistinctRanges;
1193 mMaxSupportedInstances = Utils.parseIntSafely( in CodecCapabilities()
1196 int maxInstances = Utils.parseIntSafely( in CodecCapabilities()
1351 int ix = Utils.binarySearchDistinctRanges( in supports()
1358 int ix = Utils.binarySearchDistinctRanges( in supports()
1523 rateRanges[i] = Utils.parseIntRange(rateStrings[i], null); in parseFromInfo()
1533 channelRanges[i] = Utils.parseIntRange(channelStrings[i], null); in parseFromInfo()
1537 Range<Integer> oneRange = Utils.parseIntRange(info.getString("channel-range"), in parseFromInfo()
1541 maxInputChannels = Utils.parseIntSafely( in parseFromInfo()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DDataUsageGraph.java27 import com.android.settingslib.Utils;
48 mTrackColor = Utils.getColorStateListDefaultColor(context, in DataUsageGraph()
50 mWarningColor = Utils.getColorStateListDefaultColor(context, in DataUsageGraph()
52 mUsageColor = Utils.getColorAccentDefaultColor(context); in DataUsageGraph()
53 mOverlimitColor = Utils.getColorErrorDefaultColor(context); in DataUsageGraph()
/frameworks/base/core/java/android/view/textclassifier/
DSystemTextClassifier.java88 Utils.checkMainThread(); in suggestSelection()
111 Utils.checkMainThread(); in classifyText()
134 Utils.checkMainThread(); in generateLinks()
135 if (!Utils.checkTextLength(request.getText(), getMaxGenerateLinksTextLength())) { in generateLinks()
139 return Utils.generateLegacyLinks(request); in generateLinks()
160 Utils.checkMainThread(); in onSelectionEvent()
173 Utils.checkMainThread(); in onTextClassifierEvent()
191 Utils.checkMainThread(); in detectLanguage()
211 Utils.checkMainThread(); in suggestConversationActions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationSectionsFeatureManagerTest.kt29 import com.android.systemui.util.Utils
54 .mockStatic<Utils>(Utils::class.java) in setup()
57 `when`(Utils.useQsMediaPlayer(any())).thenReturn(false) in setup()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
DOomAdjPerfTest.java35 import com.android.frameworks.perftests.am.util.Utils;
87 Utils.runShellCommand("cmd deviceidle whitelist +" + STUB_PACKAGE1_NAME); in setUp()
88 Utils.runShellCommand("cmd deviceidle whitelist +" + STUB_PACKAGE2_NAME); in setUp()
89 Utils.runShellCommand("cmd deviceidle whitelist +" + STUB_PACKAGE3_NAME); in setUp()
100 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE1_NAME); in tearDown()
101 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE2_NAME); in tearDown()
102 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE3_NAME); in tearDown()
/frameworks/base/core/java/android/hardware/radio/
DProgramList.java322 mIdentifierTypes = Utils.createIntSet(in); in Filter()
323 mIdentifiers = Utils.createSet(in, ProgramSelector.Identifier.CREATOR); in Filter()
326 mVendorFilter = Utils.readStringMap(in); in Filter()
331 Utils.writeIntSet(dest, mIdentifierTypes); in writeToParcel()
332 Utils.writeSet(dest, mIdentifiers); in writeToParcel()
335 Utils.writeStringMap(dest, mVendorFilter); in writeToParcel()
461 mModified = Utils.createSet(in, RadioManager.ProgramInfo.CREATOR); in Chunk()
462 mRemoved = Utils.createSet(in, ProgramSelector.Identifier.CREATOR); in Chunk()
469 Utils.writeSet(dest, mModified); in writeToParcel()
470 Utils.writeSet(dest, mRemoved); in writeToParcel()

12345678910