Home
last modified time | relevance | path

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

12345678910>>...12

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DHotwordDetectionServiceBasicTest.java44 import android.voiceinteraction.common.Utils;
121 testHotwordDetection(Utils.HOTWORD_DETECTION_SERVICE_TRIGGER_TEST, in testHotwordDetectionService_validHotwordDetectionComponentName_triggerSuccess()
122 Utils.HOTWORD_DETECTION_SERVICE_TRIGGER_RESULT_INTENT, in testHotwordDetectionService_validHotwordDetectionComponentName_triggerSuccess()
123 Utils.HOTWORD_DETECTION_SERVICE_TRIGGER_SUCCESS); in testHotwordDetectionService_validHotwordDetectionComponentName_triggerSuccess()
129 testHotwordDetection(Utils.VIS_WITHOUT_MANAGE_HOTWORD_DETECTION_PERMISSION_TEST, in testVoiceInteractionService_withoutManageHotwordDetectionPermission_triggerFailure()
130 Utils.HOTWORD_DETECTION_SERVICE_TRIGGER_RESULT_INTENT, in testVoiceInteractionService_withoutManageHotwordDetectionPermission_triggerFailure()
131 Utils.HOTWORD_DETECTION_SERVICE_TRIGGER_SECURITY_EXCEPTION); in testVoiceInteractionService_withoutManageHotwordDetectionPermission_triggerFailure()
137 testHotwordDetection(Utils.VIS_HOLD_BIND_HOTWORD_DETECTION_PERMISSION_TEST, in testVoiceInteractionService_holdBindHotwordDetectionPermission_triggerFailure()
138 Utils.HOTWORD_DETECTION_SERVICE_TRIGGER_RESULT_INTENT, in testVoiceInteractionService_holdBindHotwordDetectionPermission_triggerFailure()
139 Utils.HOTWORD_DETECTION_SERVICE_TRIGGER_SECURITY_EXCEPTION); in testVoiceInteractionService_holdBindHotwordDetectionPermission_triggerFailure()
[all …]
DDirectActionsTest.java31 import android.voiceinteraction.common.Utils;
147 mControl = result.getParcelable(Utils.DIRECT_ACTIONS_KEY_CONTROL); in startVoiceInteractionSession()
152 intent.putExtra(Utils.DIRECT_ACTIONS_KEY_CLASS, in startVoiceInteractionSession()
156 intent.putExtra(Utils.DIRECT_ACTIONS_KEY_CALLBACK, callback); in startVoiceInteractionSession()
169 executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_FINISH, in stopVoiceInteractionSession()
175 final Bundle result = executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_GET_ACTIONS, in getDirectActions()
177 actions.addAll(result.getParcelableArrayList(Utils.DIRECT_ACTIONS_KEY_RESULT)); in getDirectActions()
183 return executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION, in performDirectAction()
189 return executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION_CANCEL, in performDirectActionAndCancel()
197 Utils.DIRECT_ACTIONS_SESSION_CMD_DETECT_ACTIONS_CHANGED, in detectDirectActionsInvalidated()
[all …]
DVoiceInteractionTest.java31 import android.voiceinteraction.common.Utils;
62 mContext.registerReceiver(mReceiver, new IntentFilter(Utils.BROADCAST_INTENT)); in setUp()
101 for (Utils.TestCaseType t : Utils.TestCaseType.values()) { in testAll()
114 private void verifySingleTestcaseResult(Utils.TestCaseType testCaseType, String result) { in verifySingleTestcaseResult()
118 assertThat(result.equals(Utils.ABORT_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
121 assertThat(result.equals(Utils.ABORT_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
124 assertThat(result.equals(Utils.COMMANDREQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
127 assertThat(result.equals(Utils.COMMANDREQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
130 assertThat(result.equals(Utils.COMPLETION_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
133 assertThat(result.equals(Utils.COMPLETION_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
[all …]
DHotwordDetectedResultTest.java28 import android.voiceinteraction.common.Utils;
45 final int bitsForConfidenceLevel = Utils.bitCount( in testHotwordDetectedResult_totalSize()
47 final int bitsForHotwordOffsetMillis = Utils.bitCount(Utils.LIMIT_HOTWORD_OFFSET_MAX_VALUE); in testHotwordDetectedResult_totalSize()
48 final int bitsForHotwordDurationMillis = Utils.bitCount( in testHotwordDetectedResult_totalSize()
50 final int bitsForAudioChannel = Utils.bitCount(Utils.LIMIT_AUDIO_CHANNEL_MAX_VALUE); in testHotwordDetectedResult_totalSize()
52 final int bitsForScore = Utils.bitCount(HotwordDetectedResult.getMaxScore()); in testHotwordDetectedResult_totalSize()
53 final int bitsForPersonalizedScore = Utils.bitCount(HotwordDetectedResult.getMaxScore()); in testHotwordDetectedResult_totalSize()
54 final int bitsForHotwordPhraseId = Utils.bitCount( in testHotwordDetectedResult_totalSize()
63 assertThat(totalSize <= Utils.MAX_HOTWORD_DETECTED_RESULT_SIZE * Byte.SIZE).isTrue(); in testHotwordDetectedResult_totalSize()
73 } while (Utils.getParcelableSize(persistableBundle) in testHotwordDetectedResult_bundleExceedMaxBundleSize()
[all …]
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/
DTestApp.java37 import android.voiceinteraction.common.Utils;
45 Utils.TestCaseType mTestInProgress;
62 if (mIndex == Utils.TestCaseType.values().length) { in continueTests()
69 mTestInProgress = (Utils.TestCaseType.values())[mIndex++]; in continueTests()
98 String[] commands = {Utils.TEST_COMMAND}; in continueTests()
102 addTestResult(Utils.SUPPORTS_COMMANDS_SUCCESS); in continueTests()
104 addTestResult(Utils.TEST_ERROR + " supported commands failure!"); in continueTests()
113 mTestinfo.putStringArrayList(Utils.TESTINFO, new ArrayList<String>()); in testSetup()
114 mTestinfo.putString(Utils.TESTCASE_TYPE, mTestInProgress.toString()); in testSetup()
118 ArrayList<String> info = mTestinfo.getStringArrayList(Utils.TESTINFO); in saveTestResults()
[all …]
DDirectActionsActivity.java28 import android.voiceinteraction.common.Utils;
55 final RemoteCallback callBack = args.getParcelable(Utils.DIRECT_ACTIONS_KEY_CALLBACK); in onResume()
58 final String command = cmdArgs.getString(Utils.DIRECT_ACTIONS_KEY_COMMAND); in onResume()
61 case Utils.DIRECT_ACTIONS_ACTIVITY_CMD_DESTROYED_INTERACTOR: { in onResume()
63 Utils.DIRECT_ACTIONS_KEY_CALLBACK); in onResume()
66 case Utils.DIRECT_ACTIONS_ACTIVITY_CMD_FINISH: { in onResume()
68 Utils.DIRECT_ACTIONS_KEY_CALLBACK); in onResume()
71 case Utils.DIRECT_ACTIONS_ACTIVITY_CMD_INVALIDATE_ACTIONS: { in onResume()
73 Utils.DIRECT_ACTIONS_KEY_CALLBACK); in onResume()
80 result.putParcelable(Utils.DIRECT_ACTIONS_KEY_CONTROL, control); in onResume()
[all …]
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java27 import android.voiceinteraction.common.Utils;
77 || !Utils.PRIVATE_OPTIONS_VALUE.equals( in onShow()
78 args.getString(Utils.PRIVATE_OPTIONS_KEY))) { in onShow()
86 if (str.equals(Utils.TEST_PROMPT)) { in assertPromptFromTestApp()
89 Utils.addErrorResult(extras, "Invalid prompt received: " + str); in assertPromptFromTestApp()
104 results[idx] = Utils.TEST_COMMAND.equals(commands[idx]); in onGetSupportedCommands()
115 ", extras=" + Utils.toBundleString(extras)); in onRequestConfirmation()
121 asyncTaskArg.setTestType(Utils.TestCaseType.CONFIRMATION_REQUEST_CANCEL_TEST)); in onRequestConfirmation()
124 Utils.toBundleString(extras)); in onRequestConfirmation()
126 asyncTaskArg.setTestType(Utils.TestCaseType.CONFIRMATION_REQUEST_TEST)); in onRequestConfirmation()
[all …]
DDirectActionsSession.java27 import android.voiceinteraction.common.Utils;
64 final RemoteCallback callback = args.getParcelable(Utils.DIRECT_ACTIONS_KEY_CALLBACK); in onShow()
67 final String command = cmdArgs.getString(Utils.DIRECT_ACTIONS_KEY_COMMAND); in onShow()
70 Utils.DIRECT_ACTIONS_KEY_CALLBACK); in onShow()
72 case Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION: { in onShow()
76 case Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION_CANCEL: { in onShow()
80 case Utils.DIRECT_ACTIONS_SESSION_CMD_GET_ACTIONS: { in onShow()
83 case Utils.DIRECT_ACTIONS_SESSION_CMD_FINISH: { in onShow()
86 case Utils.DIRECT_ACTIONS_SESSION_CMD_DETECT_ACTIONS_CHANGED: { in onShow()
93 result.putParcelable(Utils.DIRECT_ACTIONS_KEY_CONTROL, control); in onShow()
[all …]
DBasicVoiceInteractionService.java39 import android.voiceinteraction.common.Utils;
87 final int testEvent = intent.getIntExtra(Utils.KEY_TEST_EVENT, -1); in onStartCommand()
89 if (testEvent == Utils.HOTWORD_DETECTION_SERVICE_TRIGGER_TEST) { in onStartCommand()
93 } else if (testEvent == Utils.VIS_WITHOUT_MANAGE_HOTWORD_DETECTION_PERMISSION_TEST) { in onStartCommand()
96 } else if (testEvent == Utils.VIS_HOLD_BIND_HOTWORD_DETECTION_PERMISSION_TEST) { in onStartCommand()
98 } else if (testEvent == Utils.HOTWORD_DETECTION_SERVICE_DSP_ONDETECT_TEST) { in onStartCommand()
108 } else if (testEvent == Utils.HOTWORD_DETECTION_SERVICE_DSP_ONREJECT_TEST) { in onStartCommand()
118 } else if (testEvent == Utils.HOTWORD_DETECTION_SERVICE_EXTERNAL_SOURCE_ONDETECT_TEST) { in onStartCommand()
129 } else if (testEvent == Utils.HOTWORD_DETECTION_SERVICE_FROM_SOFTWARE_TRIGGER_TEST) { in onStartCommand()
133 } else if (testEvent == Utils.HOTWORD_DETECTION_SERVICE_MIC_ONDETECT_TEST) { in onStartCommand()
[all …]
/cts/tests/tests/assist/src/android/assist/cts/
DLifecycleTest.java22 import android.assist.common.Utils;
33 private static final String ACTION_HAS_FOCUS = Utils.LIFECYCLE_HASFOCUS;
34 private static final String ACTION_LOST_FOCUS = Utils.LIFECYCLE_LOSTFOCUS;
35 private static final String ACTION_ON_PAUSE = Utils.LIFECYCLE_ONPAUSE;
36 private static final String ACTION_ON_STOP = Utils.LIFECYCLE_ONSTOP;
37 private static final String ACTION_ON_DESTROY = Utils.LIFECYCLE_ONDESTROY;
39 private static final String TEST_CASE_TYPE = Utils.LIFECYCLE;
56 if (!mHasFocusLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForHasFocus()
57 fail("Activity failed to get focus in " + Utils.ACTIVITY_ONRESUME_TIMEOUT_MS + "msec"); in waitForHasFocus()
63 if (!mLostFocusLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForLostFocus()
[all …]
DTextViewTest.java20 import android.assist.common.Utils;
31 private static final String TEST_CASE_TYPE = Utils.TEXTVIEW;
55 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), in testTextView()
62 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), false); in testTextView()
67 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), false); in testTextView()
72 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), false); in testTextView()
77 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), false); in testTextView()
86 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.SCROLL_TEXTVIEW_ACTION); in scrollTestApp()
88 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.SCROLL_SCROLLVIEW_ACTION); in scrollTestApp()
90 bundle.putInt(Utils.SCROLL_X_POSITION, scrollX); in scrollTestApp()
[all …]
DFocusChangeTest.java22 import android.assist.common.Utils;
33 private static final String TEST_CASE_TYPE = Utils.FOCUS_CHANGE;
41 Pair.create(Utils.GAINED_FOCUS, mHasGainedFocusLatch), in customSetup()
42 Pair.create(Utils.LOST_FOCUS, mHasLostFocusLatch) in customSetup()
49 if (!mHasGainedFocusLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitToGainFocus()
50 fail("Activity failed to gain focus in " + Utils.TIMEOUT_MS + "msec."); in waitToGainFocus()
56 if (!mHasLostFocusLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitToLoseFocus()
58 + Utils.TIMEOUT_MS + "msec."); in waitToLoseFocus()
DWebViewTest.java22 import android.assist.common.Utils;
35 private static final String TEST_CASE_TYPE = Utils.WEBVIEW;
41 …mActionLatchReceiver = new ActionLatchReceiver(Utils.TEST_ACTIVITY_WEBVIEW_LOADED, mTestWebViewLat… in customSetup()
47 if (!mTestWebViewLatch.await(Utils.ACTIVITY_ONRESUME_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForTestActivity()
48 fail("failed to receive load web view in " + Utils.TIMEOUT_MS + "msec"); in waitForTestActivity()
69 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), in testWebView()
71 verifyAssistStructureHasWebDomain(Utils.WEBVIEW_HTML_DOMAIN); in testWebView()
72 verifyAssistStructureHasLocaleList(Utils.WEBVIEW_LOCALE_LIST); in testWebView()
DAssistantContentViewTest.java24 import android.assist.common.Utils;
42 startTestActivity(Utils.VERIFY_CONTENT_VIEW); in customSetup()
52 if (!mContentViewLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForContentView()
53 fail("failed to receive content view in " + Utils.TIMEOUT_MS + "msec"); in waitForContentView()
63 startTest(Utils.VERIFY_CONTENT_VIEW); in testAssistantContentViewDimens()
67 int height = mBundle.getInt(Utils.EXTRA_CONTENT_VIEW_HEIGHT, 0); in testAssistantContentViewDimens()
68 int width = mBundle.getInt(Utils.EXTRA_CONTENT_VIEW_WIDTH, 0); in testAssistantContentViewDimens()
69 Point displayPoint = mBundle.getParcelable(Utils.EXTRA_DISPLAY_POINT); in testAssistantContentViewDimens()
77 super(Utils.BROADCAST_CONTENT_VIEW_HEIGHT, mContentViewLatch); in AssistantReceiver()
DAssistTestBase.java33 import android.assist.common.Utils;
137 String action = result.getString(Utils.EXTRA_REMOTE_CALLBACK_ACTION);
186 mContext.sendBroadcast(new Intent(Utils.HIDE_SESSION)); in tearDown()
190 m3pActivityCallback.sendResult(Utils.bundleOfRemoteAction(Utils.ACTION_END_OF_TEST)); in tearDown()
218 String action = results.getString(Utils.EXTRA_REMOTE_CALLBACK_ACTION); in registerForAsyncReceivingCallback()
219 if (action.equals(Utils.EXTRA_REMOTE_CALLBACK_RECEIVING_ACTION)) { in registerForAsyncReceivingCallback()
220 m3pActivityCallback = results.getParcelable(Utils.EXTRA_REMOTE_CALLBACK_RECEIVING); in registerForAsyncReceivingCallback()
228 intent.putExtra(Utils.TESTCASE_TYPE, testName); in startTest()
230 intent.putExtra(Utils.EXTRA_REMOTE_CALLBACK, mRemoteCallback); in startTest()
243 intent.putExtra(Utils.TESTCASE_TYPE, testCaseName); in start3pApp()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DEphemeralTest.java124 Utils.prepareSingleUser(getDevice()); in setUp()
145 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testQuery"); in testNormalQuery()
153 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testStartNormal"); in testNormalStartNormal()
161 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, in testNormalStartEphemeral()
170 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, "testQuery"); in testEphemeralQuery()
178 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartNormal()
190 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed01()
198 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed02()
206 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed03()
214 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed04()
[all …]
DApplicationVisibilityTest.java50 mUsers = Utils.prepareMultipleUsers(getDevice(), 2); in setUpPackage()
77 Utils.runDeviceTests( in testPackageListCrossUserGrant()
83 Utils.runDeviceTests( in testPackageListCrossUserGrant()
104 Utils.runDeviceTests( in testPackageListCrossUserNoGrant()
110 Utils.runDeviceTests( in testPackageListCrossUserNoGrant()
133 Utils.runDeviceTests( in testPackageListOtherUserCrossUserGrant()
157 Utils.runDeviceTests( in testPackageListOtherUserCrossUserNoGrant()
179 Utils.runDeviceTests( in testApplicationListCrossUserGrant()
185 Utils.runDeviceTests( in testApplicationListCrossUserGrant()
206 Utils.runDeviceTests( in testApplicationListCrossUserNoGrant()
[all …]
DIsolatedSplitsTests.java74 Utils.prepareSingleUser(getDevice()); in setUp()
97 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallBase()
114 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallBaseAndConfigSplit()
159 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallOneFeatureSplit()
160 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplit()
162 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplit()
181 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallOneFeatureSplitAndConfigSplits()
182 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplitAndConfigSplits()
196 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallDependentFeatureSplits()
197 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallDependentFeatureSplits()
[all …]
/cts/tests/tests/assist/service/src/android/assist/service/
DDelayedAssistantActivity.java20 import android.assist.common.Utils;
33 RemoteCallback remoteCallback = getIntent().getParcelableExtra(Utils.EXTRA_REMOTE_CALLBACK); in onCreate()
37 intent.putExtra(Utils.EXTRA_REGISTER_RECEIVER, true); in onCreate()
38 intent.putExtra(Utils.TESTCASE_TYPE, getIntent().getStringExtra(Utils.TESTCASE_TYPE)); in onCreate()
39 intent.putExtra(Utils.DISPLAY_WIDTH_KEY, in onCreate()
40 getIntent().getIntExtra(Utils.DISPLAY_WIDTH_KEY, 0)); in onCreate()
41 intent.putExtra(Utils.DISPLAY_HEIGHT_KEY, in onCreate()
42 getIntent().getIntExtra(Utils.DISPLAY_HEIGHT_KEY, 0)); in onCreate()
43 intent.putExtra(Utils.EXTRA_REMOTE_CALLBACK, remoteCallback); in onCreate()
52 notify(Utils.TEST_ACTIVITY_DESTROY); in onDestroy()
DMainInteractionSession.java21 import android.assist.common.Utils;
69 if (action.equals(Utils.HIDE_SESSION)) { in onCreate()
74 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.HIDE_SESSION_COMPLETE); in onCreate()
79 filter.addAction(Utils.HIDE_SESSION); in onCreate()
100 if (Utils.LIFECYCLE_NOUI.equals(args.getString(Utils.TESTCASE_TYPE, ""))) { in onPrepareShow()
114 mTestName = args.getString(Utils.TESTCASE_TYPE, ""); in onShow()
115 mCurColor = args.getInt(Utils.SCREENSHOT_COLOR_KEY); in onShow()
116 mDisplayHeight = args.getInt(Utils.DISPLAY_HEIGHT_KEY); in onShow()
117 mDisplayWidth = args.getInt(Utils.DISPLAY_WIDTH_KEY); in onShow()
118 mRemoteCallback = args.getParcelable(Utils.EXTRA_REMOTE_CALLBACK); in onShow()
[all …]
DMainInteractionService.java19 import static android.assist.common.Utils.SHOW_SESSION_FLAGS_TO_SET;
24 import android.assist.common.Utils;
62 mRemoteCallback = mIntent.getParcelableExtra(Utils.EXTRA_REMOTE_CALLBACK); in onStartCommand()
73 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, action); in notify()
84 if (mIntent.getBooleanExtra(Utils.EXTRA_REGISTER_RECEIVER, false)) { in maybeStart()
88 filter.addAction(Utils.BROADCAST_INTENT_START_ASSIST); in maybeStart()
93 notify(Utils.ASSIST_RECEIVER_REGISTERED); in maybeStart()
97 bundle.putString(Utils.TESTCASE_TYPE, in maybeStart()
98 mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart()
99 bundle.putParcelable(Utils.EXTRA_REMOTE_CALLBACK, in maybeStart()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricCryptoTests.java43 () -> Utils.generateBiometricBoundKey("keyBeforeCredentialEnrolled", in testGenerateKeyWithoutDeviceCredential_throwsException()
54 () -> Utils.generateBiometricBoundKey("keyBeforeBiometricEnrolled", in testGenerateKeyWithoutBiometricEnrolled_throwsInvalidAlgorithmParameterException()
68 Utils.createTimeBoundSecretKey_deprecated("credential_tb_d", false /* useStrongBox */); in testGenerateKeyWhenCredentialAndBiometricEnrolled()
69 Utils.createTimeBoundSecretKey("credential_tb", authType, false /* useStrongBox */); in testGenerateKeyWhenCredentialAndBiometricEnrolled()
71 Utils.createTimeBoundSecretKey_deprecated("credential_tb_d_sb", in testGenerateKeyWhenCredentialAndBiometricEnrolled()
73 Utils.createTimeBoundSecretKey("credential_tb_sb", authType, in testGenerateKeyWhenCredentialAndBiometricEnrolled()
88 Utils.generateBiometricBoundKey(keyPrefix, false /* useStrongBox */); in testGenerateKeyWhenCredentialAndBiometricEnrolled()
90 Utils.generateBiometricBoundKey(keyPrefix + "sb", in testGenerateKeyWhenCredentialAndBiometricEnrolled()
97 Utils.initializeCryptoObject(keyPrefix); in testGenerateKeyWhenCredentialAndBiometricEnrolled()
103 () -> Utils.generateBiometricBoundKey(keyPrefix, in testGenerateKeyWhenCredentialAndBiometricEnrolled()
[all …]
/cts/tests/tests/assist/common/src/android/assist/common/
DBaseRemoteCallbackActivity.java36 RemoteCallback callback = getIntent().getParcelableExtra(Utils.EXTRA_REMOTE_CALLBACK); in notify()
43 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, action); in notify()
49 …RemoteCallback remoteCallback = getIntent().getParcelableExtra(Utils.EXTRA_REMOTE_CALLBACK_RECEIVI… in registerReceivingCallback()
56 String action = results.getString(Utils.EXTRA_REMOTE_CALLBACK_ACTION); in registerReceivingCallback()
57 if (action.equals(Utils.ACTION_END_OF_TEST)) { in registerReceivingCallback()
67 …bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.EXTRA_REMOTE_CALLBACK_RECEIVING_ACTION); in registerReceivingCallback()
68 bundle.putParcelable(Utils.EXTRA_REMOTE_CALLBACK_RECEIVING, mRemoteCallback); in registerReceivingCallback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DDataFragment.java20 import com.android.cts.verifier.sensors.sixdof.Utils.Manager;
21 import com.android.cts.verifier.sensors.sixdof.Utils.TestReport;
22 import com.android.cts.verifier.sensors.sixdof.Utils.Exceptions.WaypointAreaCoveredException;
23 import com.android.cts.verifier.sensors.sixdof.Utils.Exceptions.WaypointDistanceException;
24 import com.android.cts.verifier.sensors.sixdof.Utils.Exceptions.WaypointRingNotEnteredException;
25 import com.android.cts.verifier.sensors.sixdof.Utils.Exceptions.WaypointStartPointException;
26 import com.android.cts.verifier.sensors.sixdof.Utils.Path.PathUtilityClasses.Ring;
27 import com.android.cts.verifier.sensors.sixdof.Utils.Path.PathUtilityClasses.Waypoint;
28 import com.android.cts.verifier.sensors.sixdof.Utils.PoseProvider.AndroidPoseProvider;
29 import com.android.cts.verifier.sensors.sixdof.Utils.PoseProvider.PoseData;
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/Path/
DPath.java16 package com.android.cts.verifier.sensors.sixdof.Utils.Path;
18 import com.android.cts.verifier.sensors.sixdof.Utils.Manager;
19 import com.android.cts.verifier.sensors.sixdof.Utils.MathsUtils;
20 import com.android.cts.verifier.sensors.sixdof.Utils.Exceptions.WaypointAreaCoveredException;
21 import com.android.cts.verifier.sensors.sixdof.Utils.Exceptions.WaypointDistanceException;
22 import com.android.cts.verifier.sensors.sixdof.Utils.Exceptions.WaypointRingNotEnteredException;
23 import com.android.cts.verifier.sensors.sixdof.Utils.Exceptions.WaypointStartPointException;
24 import com.android.cts.verifier.sensors.sixdof.Utils.Path.PathUtilityClasses.Waypoint;

12345678910>>...12