Home
last modified time | relevance | path

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

12345678910>>...15

/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
54 Utils.getThemeAttr(context, R.attr.darkIconTheme)) in setColorsFromContext()
56 Utils.getThemeAttr(context, R.attr.lightIconTheme)) in setColorsFromContext()
60 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.iconBackgroundColor), in setColorsFromContext()
61 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.fillColor)) in setColorsFromContext()
65 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.iconBackgroundColor), in setColorsFromContext()
66 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.fillColor)) in setColorsFromContext()
69 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.singleToneColor), in setColorsFromContext()
70 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.iconBackgroundColor), in setColorsFromContext()
71 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.fillColor)) in setColorsFromContext()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java18 import static com.android.settingslib.Utils.STORAGE_MANAGER_ENABLED_PROPERTY;
100 mContext.getContentResolver(), Utils.INCOMPATIBLE_CHARGER_WARNING_DISABLED, 0); in reset()
106 Utils.updateLocationEnabled( in testUpdateLocationEnabled()
132 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], true); in testFormatPercentage_RoundTrue_RoundUpIfPossible()
152 final String percentage = Utils.formatPercentage(TEST_PERCENTAGES[i], false); in testFormatPercentage_RoundFalse_NoRound()
165 assertThat(Utils.getDefaultStorageManagerDaysToRetain(resources)).isEqualTo(60); in testGetDefaultStorageManagerDaysToRetain_storageManagerDaysToRetainUsesResources()
171 assertThat(Utils.isStorageManagerEnabled(mContext)).isTrue(); in testIsStorageManagerEnabled_UsesSystemProperties()
191 assertThat(Utils.isAudioModeOngoingCall(mContext)).isTrue(); in isAudioModeOngoingCall_modeInCommunication_returnTrue()
198 assertThat(Utils.isAudioModeOngoingCall(mContext)).isTrue(); in isAudioModeOngoingCall_modeInCall_returnTrue()
205 assertThat(Utils.isAudioModeOngoingCall(mContext)).isTrue(); in isAudioModeOngoingCall_modeRingtone_returnTrue()
[all …]
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/
DNanMap.java18 import com.android.internal.widget.remotecompose.core.operations.Utils;
36 public static final float MOVE_NAN = Utils.asNan(MOVE);
37 public static final float LINE_NAN = Utils.asNan(LINE);
38 public static final float QUADRATIC_NAN = Utils.asNan(QUADRATIC);
39 public static final float CONIC_NAN = Utils.asNan(CONIC);
40 public static final float CUBIC_NAN = Utils.asNan(CUBIC);
41 public static final float CLOSE_NAN = Utils.asNan(CLOSE);
42 public static final float DONE_NAN = Utils.asNan(DONE);
/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/core/java/com/android/internal/widget/remotecompose/core/operations/
DColorExpression.java100 mOutHue = context.getFloat(Utils.idFromNan(mHue)); in updateVariables()
103 mOutSat = context.getFloat(Utils.idFromNan(mSat)); in updateVariables()
106 mOutValue = context.getFloat(Utils.idFromNan(mValue)); in updateVariables()
110 mOutTween = context.getFloat(Utils.idFromNan(mTween)); in updateVariables()
125 context.listensTo(Utils.idFromNan(mHue), this); in registerListening()
128 context.listensTo(Utils.idFromNan(mSat), this); in registerListening()
131 context.listensTo(Utils.idFromNan(mValue), this); in registerListening()
136 context.listensTo(Utils.idFromNan(mTween), this); in registerListening()
150 | (0xFFFFFF & Utils.hsvToRgb(mOutHue, mOutSat, mOutValue))); in apply()
164 Utils.interpolateColor(mOutColor1, mOutColor2, mOutTween)); in apply()
[all …]
DDrawBase6.java18 import static com.android.internal.widget.remotecompose.core.operations.Utils.floatToString;
81 ? context.getFloat(Utils.idFromNan(mValue1)) : mValue1; in updateVariables()
83 ? context.getFloat(Utils.idFromNan(mValue2)) : mValue2; in updateVariables()
85 ? context.getFloat(Utils.idFromNan(mValue3)) : mValue3; in updateVariables()
87 ? context.getFloat(Utils.idFromNan(mValue4)) : mValue4; in updateVariables()
89 ? context.getFloat(Utils.idFromNan(mValue5)) : mValue5; in updateVariables()
91 ? context.getFloat(Utils.idFromNan(mValue6)) : mValue6; in updateVariables()
97 context.listensTo(Utils.idFromNan(mValue1), this); in registerListening()
100 context.listensTo(Utils.idFromNan(mValue2), this); in registerListening()
103 context.listensTo(Utils.idFromNan(mValue3), this); in registerListening()
[all …]
DPathData.java44 if (Utils.isVariable(v)) { in updateVariables()
46 ? context.getFloat(Utils.idFromNan(v)) : v; in updateVariables()
57 context.listensTo(Utils.idFromNan(mFloatPath[i]), this); in registerListening()
108 public static final float MOVE_NAN = Utils.asNan(MOVE);
109 public static final float LINE_NAN = Utils.asNan(LINE);
110 public static final float QUADRATIC_NAN = Utils.asNan(QUADRATIC);
111 public static final float CONIC_NAN = Utils.asNan(CONIC);
112 public static final float CUBIC_NAN = Utils.asNan(CUBIC);
113 public static final float CLOSE_NAN = Utils.asNan(CLOSE);
114 public static final float DONE_NAN = Utils.asNan(DONE);
[all …]
DDrawBase4.java18 import static com.android.internal.widget.remotecompose.core.operations.Utils.floatToString;
72 ? context.getFloat(Utils.idFromNan(mX1Value)) : mX1Value; in updateVariables()
74 ? context.getFloat(Utils.idFromNan(mY1Value)) : mY1Value; in updateVariables()
76 ? context.getFloat(Utils.idFromNan(mX2Value)) : mX2Value; in updateVariables()
78 ? context.getFloat(Utils.idFromNan(mY2Value)) : mY2Value; in updateVariables()
84 context.listensTo(Utils.idFromNan(mX1Value), this); in registerListening()
87 context.listensTo(Utils.idFromNan(mY1Value), this); in registerListening()
90 context.listensTo(Utils.idFromNan(mX2Value), this); in registerListening()
93 context.listensTo(Utils.idFromNan(mY2Value), this); in registerListening()
DDrawTextAnchored.java67 ? context.getFloat(Utils.idFromNan(mX)) : mX; in updateVariables()
69 ? context.getFloat(Utils.idFromNan(mY)) : mY; in updateVariables()
71 ? context.getFloat(Utils.idFromNan(mPanX)) : mPanX; in updateVariables()
73 ? context.getFloat(Utils.idFromNan(mPanY)) : mPanY; in updateVariables()
79 context.listensTo(Utils.idFromNan(mX), this); in registerListening()
82 context.listensTo(Utils.idFromNan(mY), this); in registerListening()
85 context.listensTo(Utils.idFromNan(mPanX), this); in registerListening()
87 if (Float.isNaN(mPanY) && Utils.idFromNan(mPanY) > 0) { in registerListening()
88 context.listensTo(Utils.idFromNan(mPanY), this); in registerListening()
111 return "[" + Utils.idFromNan(v) + "]"; in floatToStr()
DDrawBitmap.java60 ? context.getFloat(Utils.idFromNan(mLeft)) : mLeft; in updateVariables()
62 ? context.getFloat(Utils.idFromNan(mTop)) : mTop; in updateVariables()
64 ? context.getFloat(Utils.idFromNan(mRight)) : mRight; in updateVariables()
66 ? context.getFloat(Utils.idFromNan(mBottom)) : mBottom; in updateVariables()
72 context.listensTo(Utils.idFromNan(mLeft), this); in registerListening()
75 context.listensTo(Utils.idFromNan(mTop), this); in registerListening()
78 context.listensTo(Utils.idFromNan(mRight), this); in registerListening()
81 context.listensTo(Utils.idFromNan(mBottom), this); in registerListening()
DDrawBase3.java18 import static com.android.internal.widget.remotecompose.core.operations.Utils.floatToString;
67 ? context.getFloat(Utils.idFromNan(mValue1)) : mValue1; in updateVariables()
69 ? context.getFloat(Utils.idFromNan(mValue2)) : mValue2; in updateVariables()
71 ? context.getFloat(Utils.idFromNan(mValue3)) : mValue3; in updateVariables()
77 context.listensTo(Utils.idFromNan(mValue1), this); in registerListening()
80 context.listensTo(Utils.idFromNan(mValue2), this); in registerListening()
83 context.listensTo(Utils.idFromNan(mValue3), this); in registerListening()
DDrawBase2.java18 import static com.android.internal.widget.remotecompose.core.operations.Utils.floatToString;
59 ? context.getFloat(Utils.idFromNan(mValue1)) : mValue1; in updateVariables()
61 ? context.getFloat(Utils.idFromNan(mValue2)) : mValue2; in updateVariables()
67 context.listensTo(Utils.idFromNan(mValue1), this); in registerListening()
70 context.listensTo(Utils.idFromNan(mValue2), this); in registerListening()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/
DRemoteContext.java21 import com.android.internal.widget.remotecompose.core.operations.Utils;
266 public static final float FLOAT_CONTINUOUS_SEC = Utils.asNan(ID_CONTINUOUS_SEC);
267 public static final float FLOAT_TIME_IN_SEC = Utils.asNan(ID_TIME_IN_SEC);
268 public static final float FLOAT_TIME_IN_MIN = Utils.asNan(ID_TIME_IN_MIN);
269 public static final float FLOAT_TIME_IN_HR = Utils.asNan(ID_TIME_IN_HR);
270 public static final float FLOAT_CALENDAR_MONTH = Utils.asNan(ID_CALENDAR_MONTH);
271 public static final float FLOAT_WINDOW_WIDTH = Utils.asNan(ID_WINDOW_WIDTH);
272 public static final float FLOAT_WINDOW_HEIGHT = Utils.asNan(ID_WINDOW_HEIGHT);
273 public static final float FLOAT_COMPONENT_WIDTH = Utils.asNan(ID_COMPONENT_WIDTH);
274 public static final float FLOAT_COMPONENT_HEIGHT = Utils.asNan(ID_COMPONENT_HEIGHT);
/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/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()
94 Utils.wakeUp(); in setUp()
95 Utils.runShellCommand("wm dismiss-keyguard"); in setUp()
103 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE1_NAME); in tearDown()
104 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE2_NAME); in tearDown()
105 Utils.runShellCommand("cmd deviceidle whitelist -" + STUB_PACKAGE3_NAME); in tearDown()
/frameworks/base/keystore/java/android/security/keystore/
DKeyGenParameterSpec.java408 mCertificateNotBefore = Utils.cloneIfNotNull(certificateNotBefore); in KeyGenParameterSpec()
409 mCertificateNotAfter = Utils.cloneIfNotNull(certificateNotAfter); in KeyGenParameterSpec()
410 mKeyValidityStart = Utils.cloneIfNotNull(keyValidityStart); in KeyGenParameterSpec()
411 mKeyValidityForOriginationEnd = Utils.cloneIfNotNull(keyValidityForOriginationEnd); in KeyGenParameterSpec()
412 mKeyValidityForConsumptionEnd = Utils.cloneIfNotNull(keyValidityForConsumptionEnd); in KeyGenParameterSpec()
427 mAttestationChallenge = Utils.cloneIfNotNull(attestationChallenge); in KeyGenParameterSpec()
529 return Utils.cloneIfNotNull(mCertificateNotBefore); in getCertificateNotBefore()
538 return Utils.cloneIfNotNull(mCertificateNotAfter); in getCertificateNotAfter()
547 return Utils.cloneIfNotNull(mKeyValidityStart); in getKeyValidityStart()
556 return Utils.cloneIfNotNull(mKeyValidityForConsumptionEnd); in getKeyValidityForConsumptionEnd()
[all …]
DKeyInfo.java122 mKeyValidityStart = Utils.cloneIfNotNull(keyValidityStart); in KeyInfo()
123 mKeyValidityForOriginationEnd = Utils.cloneIfNotNull(keyValidityForOriginationEnd); in KeyInfo()
124 mKeyValidityForConsumptionEnd = Utils.cloneIfNotNull(keyValidityForConsumptionEnd); in KeyInfo()
186 return Utils.cloneIfNotNull(mKeyValidityStart); in getKeyValidityStart()
196 return Utils.cloneIfNotNull(mKeyValidityForConsumptionEnd); in getKeyValidityForConsumptionEnd()
206 return Utils.cloneIfNotNull(mKeyValidityForOriginationEnd); in getKeyValidityForOriginationEnd()
DKeyProtection.java271 mKeyValidityStart = Utils.cloneIfNotNull(keyValidityStart); in KeyProtection()
272 mKeyValidityForOriginationEnd = Utils.cloneIfNotNull(keyValidityForOriginationEnd); in KeyProtection()
273 mKeyValidityForConsumptionEnd = Utils.cloneIfNotNull(keyValidityForConsumptionEnd); in KeyProtection()
305 return Utils.cloneIfNotNull(mKeyValidityStart); in getKeyValidityStart()
315 return Utils.cloneIfNotNull(mKeyValidityForConsumptionEnd); in getKeyValidityForConsumptionEnd()
325 return Utils.cloneIfNotNull(mKeyValidityForOriginationEnd); in getKeyValidityForOriginationEnd()
672 mKeyValidityStart = Utils.cloneIfNotNull(startDate); in setKeyValidityStart()
701 mKeyValidityForOriginationEnd = Utils.cloneIfNotNull(endDate); in setKeyValidityForOriginationEnd()
715 mKeyValidityForConsumptionEnd = Utils.cloneIfNotNull(endDate); in setKeyValidityForConsumptionEnd()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DPasspointWifiEntry.java27 import static com.android.wifitrackerlib.Utils.getAutoConnectDescription;
28 import static com.android.wifitrackerlib.Utils.getBestScanResultByLevel;
29 import static com.android.wifitrackerlib.Utils.getConnectedDescription;
30 import static com.android.wifitrackerlib.Utils.getConnectingDescription;
31 import static com.android.wifitrackerlib.Utils.getDisconnectedDescription;
32 import static com.android.wifitrackerlib.Utils.getMeteredDescription;
33 import static com.android.wifitrackerlib.Utils.getVerboseSummary;
466 return Utils.getStandardString(mContext, mWifiInfo.getWifiStandard()); in getStandardString()
469 return Utils.getStandardString( in getStandardString()
473 return Utils.getStandardString( in getStandardString()
[all …]
DStandardWifiEntry.java37 import static com.android.wifitrackerlib.Utils.getAutoConnectDescription;
38 import static com.android.wifitrackerlib.Utils.getBestScanResultByLevel;
39 import static com.android.wifitrackerlib.Utils.getConnectedDescription;
40 import static com.android.wifitrackerlib.Utils.getConnectingDescription;
41 import static com.android.wifitrackerlib.Utils.getDisconnectedDescription;
42 import static com.android.wifitrackerlib.Utils.getMeteredDescription;
43 import static com.android.wifitrackerlib.Utils.getSecurityTypesFromScanResult;
44 import static com.android.wifitrackerlib.Utils.getSecurityTypesFromWifiConfiguration;
45 import static com.android.wifitrackerlib.Utils.getSingleSecurityTypeFromMultipleSecurityTypes;
46 import static com.android.wifitrackerlib.Utils.getVerboseSummary;
[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/media/java/android/media/
DMediaCodecInfo.java19 import static android.media.Utils.intersectSortedDistinctRanges;
20 import static android.media.Utils.sortDistinctRanges;
1354 mMaxSupportedInstances = Utils.parseIntSafely( in CodecCapabilities()
1357 int maxInstances = Utils.parseIntSafely( in CodecCapabilities()
1512 int ix = Utils.binarySearchDistinctRanges( in supports()
1519 int ix = Utils.binarySearchDistinctRanges( in supports()
1732 rateRanges[i] = Utils.parseIntRange(rateStrings[i], null); in parseFromInfo()
1742 channelRanges[i] = Utils.parseIntRange(channelStrings[i], null); in parseFromInfo()
1746 Range<Integer> oneRange = Utils.parseIntRange(info.getString("channel-range"), in parseFromInfo()
1750 maxInputChannels = Utils.parseIntSafely( in parseFromInfo()
[all …]

12345678910>>...15