Home
last modified time | relevance | path

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

12345678910>>...15

/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DDirectActionsSession.java29 import android.voiceinteraction.common.Utils;
62 broadcastVisibleActivityCallback(Utils.VISIBLE_ACTIVITY_CALLBACK_ONVISIBLE_INTENT,
70 broadcastVisibleActivityCallback(Utils.VISIBLE_ACTIVITY_CALLBACK_ONINVISIBLE_INTENT,
85 final RemoteCallback callback = args.getParcelable(Utils.VOICE_INTERACTION_KEY_CALLBACK); in onShow()
88 final String command = cmdArgs.getString(Utils.VOICE_INTERACTION_KEY_COMMAND); in onShow()
91 Utils.VOICE_INTERACTION_KEY_CALLBACK); in onShow()
93 case Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION: { in onShow()
97 case Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION_CANCEL: { in onShow()
101 case Utils.DIRECT_ACTIONS_SESSION_CMD_GET_ACTIONS: { in onShow()
104 case Utils.VOICE_INTERACTION_SESSION_CMD_FINISH: { in onShow()
[all …]
DMainInteractionSession.java28 import android.voiceinteraction.common.Utils;
84 || !Utils.PRIVATE_OPTIONS_VALUE.equals( in onShow()
85 args.getString(Utils.PRIVATE_OPTIONS_KEY))) { in onShow()
93 if (str.equals(Utils.TEST_PROMPT)) { in assertPromptFromTestApp()
96 Utils.addErrorResult(extras, "Invalid prompt received: " + str); in assertPromptFromTestApp()
111 results[idx] = Utils.TEST_COMMAND.equals(commands[idx]); in onGetSupportedCommands()
122 ", extras=" + Utils.toBundleString(extras)); in onRequestConfirmation()
128 asyncTaskArg.setTestType(Utils.TestCaseType.CONFIRMATION_REQUEST_CANCEL_TEST)); in onRequestConfirmation()
131 Utils.toBundleString(extras)); in onRequestConfirmation()
133 asyncTaskArg.setTestType(Utils.TestCaseType.CONFIRMATION_REQUEST_TEST)); in onRequestConfirmation()
[all …]
DMainHotwordDetectionService.java41 import android.voiceinteraction.common.Utils;
173 } while (Utils.getParcelableSize(persistableBundle) in onDetect()
182 Utils.AUDIO_EGRESS_DETECTED_RESULT_WRONG_COPY_BUFFER_SIZE); in onDetect()
184 callback.onDetected(Utils.AUDIO_EGRESS_DETECTED_RESULT); in onDetect()
221 if (options.getBoolean(Utils.KEY_DETECTION_REJECTED, false)) { in onDetect()
226 if (options.getBoolean(Utils.KEY_ACCEPT_DETECTION, false)) { in onDetect()
260 Utils.AUDIO_EGRESS_DETECTED_RESULT_WRONG_COPY_BUFFER_SIZE); in onDetect()
270 Utils.createNewHotwordAudioStream( in onDetect()
273 Utils.createNewAudioEgressDetectedResult( in onDetect()
336 Utils.AUDIO_EGRESS_DETECTED_RESULT_WRONG_COPY_BUFFER_SIZE); in onDetect()
[all …]
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/
DDirectActionsActivity.java31 import android.voiceinteraction.common.Utils;
58 final RemoteCallback callBack = args.getParcelable(Utils.VOICE_INTERACTION_KEY_CALLBACK); in onResume()
61 final String command = cmdArgs.getString(Utils.VOICE_INTERACTION_KEY_COMMAND); in onResume()
64 case Utils.DIRECT_ACTIONS_ACTIVITY_CMD_DESTROYED_INTERACTOR: { in onResume()
66 Utils.VOICE_INTERACTION_KEY_CALLBACK); in onResume()
69 case Utils.VOICE_INTERACTION_ACTIVITY_CMD_FINISH: { in onResume()
71 Utils.VOICE_INTERACTION_KEY_CALLBACK); in onResume()
74 case Utils.DIRECT_ACTIONS_ACTIVITY_CMD_INVALIDATE_ACTIONS: { in onResume()
76 Utils.VOICE_INTERACTION_KEY_CALLBACK); in onResume()
79 case Utils.DIRECT_ACTIONS_ACTIVITY_CMD_GET_PACKAGE_NAME: { in onResume()
[all …]
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 …]
DTestVisibleActivity.java25 import android.voiceinteraction.common.Utils;
63 final RemoteCallback callBack = args.getParcelable(Utils.VOICE_INTERACTION_KEY_CALLBACK); in onResume()
66 final String command = cmdArgs.getString(Utils.VOICE_INTERACTION_KEY_COMMAND); in onResume()
69 case Utils.VOICE_INTERACTION_ACTIVITY_CMD_FINISH: { in onResume()
71 Utils.VOICE_INTERACTION_KEY_CALLBACK); in onResume()
74 case Utils.VOICE_INTERACTION_ACTIVITY_CMD_CRASH: { in onResume()
76 Utils.VOICE_INTERACTION_KEY_CALLBACK); in onResume()
83 result.putParcelable(Utils.VOICE_INTERACTION_KEY_CONTROL, control); in onResume()
84 result.putInt(Utils.VOICE_INTERACTION_KEY_TASKID, getTaskId()); in onResume()
85 Log.v(TAG, "onResume(): result=" + Utils.toBundleString(result)); in onResume()
[all …]
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionSessionVisibleActivityTest.java34 import android.voiceinteraction.common.Utils;
82 Utils.VISIBLE_ACTIVITY_CALLBACK_REGISTER_WITHOUT_EXECUTOR); in testVoiceInteractionSession_registerVisibleActivityCallback_withoutExecutor()
87 result.getSerializable(Utils.VISIBLE_ACTIVITY_KEY_RESULT).getClass()).isEqualTo( in testVoiceInteractionSession_registerVisibleActivityCallback_withoutExecutor()
105 Utils.VISIBLE_ACTIVITY_CALLBACK_REGISTER_WITHOUT_CALLBACK); in testVoiceInteractionSession_registerVisibleActivityCallback_withoutCallback()
110 result.getSerializable(Utils.VISIBLE_ACTIVITY_KEY_RESULT).getClass()).isEqualTo( in testVoiceInteractionSession_registerVisibleActivityCallback_withoutCallback()
137 Utils.ACTIVITY_NEW, /* expectedVisibleResult= */ true); in testReceiveVisibleActivityCallbackAfterStartNewOrFinishActivity()
139 assertThat(visibleResult.getIntExtra(Utils.VOICE_INTERACTION_KEY_TASKID, in testReceiveVisibleActivityCallbackAfterStartNewOrFinishActivity()
145 Utils.ACTIVITY_FINISH, /* expectedVisibleResult= */ false); in testReceiveVisibleActivityCallbackAfterStartNewOrFinishActivity()
147 assertThat(invisibleResult.getIntExtra(Utils.VOICE_INTERACTION_KEY_TASKID, in testReceiveVisibleActivityCallbackAfterStartNewOrFinishActivity()
166 Utils.ACTIVITY_NEW, /* expectedVisibleResult= */ true); in testReceiveVisibleActivityCallbackAfterCrashActivity()
[all …]
DDirectActionsTest.java32 import android.voiceinteraction.common.Utils;
185 intent.putExtra(Utils.VOICE_INTERACTION_KEY_CLASS, in startVoiceInteractionSession()
196 final Bundle result = executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_GET_ACTIONS, in getDirectActions()
198 actions.addAll(result.getParcelableArrayList(Utils.DIRECT_ACTIONS_KEY_RESULT)); in getDirectActions()
204 return executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION, in performDirectAction()
210 return executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION_CANCEL, in performDirectActionAndCancel()
218 Utils.DIRECT_ACTIONS_SESSION_CMD_DETECT_ACTIONS_CHANGED, in detectDirectActionsInvalidated()
220 return result.getBoolean(Utils.DIRECT_ACTIONS_KEY_RESULT); in detectDirectActionsInvalidated()
232 + Utils.toBundleString(result)); in startActivity()
233 mControl = result.getParcelable(Utils.VOICE_INTERACTION_KEY_CONTROL); in startActivity()
[all …]
DVoiceInteractionTest.java31 import android.voiceinteraction.common.Utils;
64 mContext.registerReceiver(mReceiver, new IntentFilter(Utils.BROADCAST_INTENT), in setUp()
105 for (Utils.TestCaseType t : Utils.TestCaseType.values()) { in testAll()
118 private void verifySingleTestcaseResult(Utils.TestCaseType testCaseType, String result) { in verifySingleTestcaseResult()
122 assertThat(result.equals(Utils.ABORT_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
125 assertThat(result.equals(Utils.ABORT_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
128 assertThat(result.equals(Utils.COMMANDREQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
131 assertThat(result.equals(Utils.COMMANDREQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
134 assertThat(result.equals(Utils.COMPLETION_REQUEST_CANCEL_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
137 assertThat(result.equals(Utils.COMPLETION_REQUEST_SUCCESS)).isTrue(); in verifySingleTestcaseResult()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricCryptoTests.java27 import android.server.biometrics.util.Utils;
50 assumeTrue(Utils.isFirstApiLevel29orGreater()); in testGenerateKeyWithoutDeviceCredential_throwsException()
53 () -> Utils.generateBiometricBoundKey("keyBeforeCredentialEnrolled", in testGenerateKeyWithoutDeviceCredential_throwsException()
65 assumeTrue(Utils.isFirstApiLevel29orGreater()); in testGenerateKeyWithoutBiometricEnrolled_throwsInvalidAlgorithmParameterException()
70 () -> Utils.generateBiometricBoundKey("keyBeforeBiometricEnrolled", in testGenerateKeyWithoutBiometricEnrolled_throwsInvalidAlgorithmParameterException()
84 assumeTrue(Utils.isFirstApiLevel29orGreater()); in testGenerateKeyWhenCredentialAndBiometricEnrolled()
92 Utils.createTimeBoundSecretKey_deprecated("credential_tb_d", false /* useStrongBox */); in testGenerateKeyWhenCredentialAndBiometricEnrolled()
93 Utils.createTimeBoundSecretKey("credential_tb", authType, false /* useStrongBox */); in testGenerateKeyWhenCredentialAndBiometricEnrolled()
95 Utils.createTimeBoundSecretKey_deprecated("credential_tb_d_sb", in testGenerateKeyWhenCredentialAndBiometricEnrolled()
97 Utils.createTimeBoundSecretKey("credential_tb_sb", authType, in testGenerateKeyWhenCredentialAndBiometricEnrolled()
[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;
32 private static final String TEST_CASE_TYPE = Utils.TEXTVIEW;
57 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), in testTextView()
67 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), false); in testTextView()
75 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), false); in testTextView()
83 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), false); in testTextView()
91 verifyAssistStructure(Utils.getTestAppComponent(TEST_CASE_TYPE), false); in testTextView()
100 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.SCROLL_TEXTVIEW_ACTION); in scrollTestApp()
102 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.SCROLL_SCROLLVIEW_ACTION); in scrollTestApp()
104 bundle.putInt(Utils.SCROLL_X_POSITION, scrollX); in scrollTestApp()
[all …]
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()
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()
DAssistantContentViewTest.java24 import android.assist.common.Utils;
43 startTestActivity(Utils.VERIFY_CONTENT_VIEW); in customSetup()
53 if (!mContentViewLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForContentView()
54 fail("failed to receive content view in " + Utils.TIMEOUT_MS + "msec"); in waitForContentView()
65 startTest(Utils.VERIFY_CONTENT_VIEW); in testAssistantContentViewDimens()
69 int height = mBundle.getInt(Utils.EXTRA_CONTENT_VIEW_HEIGHT, 0); in testAssistantContentViewDimens()
70 int width = mBundle.getInt(Utils.EXTRA_CONTENT_VIEW_WIDTH, 0); in testAssistantContentViewDimens()
71 Point displayPoint = mBundle.getParcelable(Utils.EXTRA_DISPLAY_POINT); in testAssistantContentViewDimens()
79 super(Utils.BROADCAST_CONTENT_VIEW_HEIGHT, mContentViewLatch); in AssistantReceiver()
/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()
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()
94 notify(Utils.ASSIST_RECEIVER_REGISTERED); in maybeStart()
98 bundle.putString(Utils.TESTCASE_TYPE, in maybeStart()
99 mIntent.getStringExtra(Utils.TESTCASE_TYPE)); in maybeStart()
100 bundle.putParcelable(Utils.EXTRA_REMOTE_CALLBACK, in maybeStart()
[all …]
DMainInteractionSession.java24 import android.assist.common.Utils;
78 if (action.equals(Utils.HIDE_SESSION)) { in onCreate()
83 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.HIDE_SESSION_COMPLETE); in onCreate()
88 filter.addAction(Utils.HIDE_SESSION); in onCreate()
110 if (Utils.LIFECYCLE_NOUI.equals(args.getString(Utils.TESTCASE_TYPE, ""))) { in onPrepareShow()
125 mTestName = args.getString(Utils.TESTCASE_TYPE, ""); in onShow()
126 mCurColor = args.getInt(Utils.SCREENSHOT_COLOR_KEY); in onShow()
127 mDisplayHeight = args.getInt(Utils.DISPLAY_HEIGHT_KEY); in onShow()
128 mDisplayWidth = args.getInt(Utils.DISPLAY_WIDTH_KEY); in onShow()
129 mDisplayAreaBounds = args.getParcelable(Utils.DISPLAY_AREA_BOUNDS_KEY); in onShow()
[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.java52 mUsers = Utils.prepareMultipleUsers(getDevice(), 2); in setUpPackage()
79 Utils.runDeviceTests( in testPackageListCrossUserGrant()
85 Utils.runDeviceTests( in testPackageListCrossUserGrant()
106 Utils.runDeviceTests( in testPackageListCrossUserNoGrant()
112 Utils.runDeviceTests( in testPackageListCrossUserNoGrant()
135 Utils.runDeviceTests( in testPackageListOtherUserCrossUserGrant()
159 Utils.runDeviceTests( in testPackageListOtherUserCrossUserNoGrant()
181 Utils.runDeviceTests( in testApplicationListCrossUserGrant()
187 Utils.runDeviceTests( in testApplicationListCrossUserGrant()
208 Utils.runDeviceTests( in testApplicationListCrossUserNoGrant()
[all …]
/cts/hostsidetests/gwp_asan/common/android/cts/gwp_asan/
DGwpAsanActivityTest.java55 GwpAsanEnabledActivity.class, Utils.TEST_IS_GWP_ASAN_ENABLED); in testEnablement()
57 GwpAsanDefaultActivity.class, Utils.TEST_IS_GWP_ASAN_ENABLED); in testEnablement()
59 GwpAsanDisabledActivity.class, Utils.TEST_IS_GWP_ASAN_DISABLED); in testEnablement()
65 DropBoxReceiver receiver = Utils.getDropboxReceiver(mContext, processNameSuffix, crashTag); in testCrash()
67 activity.callActivityAndCheckSuccess(cls, Utils.TEST_USE_AFTER_FREE); in testCrash()
69 activity.callActivity(cls, Utils.TEST_USE_AFTER_FREE); in testCrash()
76 testCrash(GwpAsanEnabledActivity.class, "gwp_asan_enabled", Utils.DROPBOX_RECOVERABLE_TAG, in testCrashToDropboxRecoverableEnabled()
82 testCrash(GwpAsanDefaultActivity.class, "gwp_asan_default", Utils.DROPBOX_RECOVERABLE_TAG, in testCrashToDropboxRecoverableDefault()
89 Utils.DROPBOX_NON_RECOVERABLE_TAG, /*shouldRecover=*/false); in testCrashToDropboxNonRecoverableEnabled()
95 Utils.DROPBOX_NON_RECOVERABLE_TAG, /*shouldRecover=*/false); in testCrashToDropboxNonRecoverableDefault()
[all …]
DUtils.java35 public class Utils { class
78 return Utils.isGwpAsanEnabled() ? Utils.TEST_SUCCESS : Utils.TEST_FAILURE; in runTest()
81 return Utils.isGwpAsanDisabled() ? Utils.TEST_SUCCESS : Utils.TEST_FAILURE; in runTest()
84 Utils.instrumentedUseAfterFree(); in runTest()
85 return Utils.TEST_SUCCESS; in runTest()
88 return Utils.TEST_FAILURE; in runTest()
90 return Utils.TEST_FAILURE; in runTest()
DGwpAsanServiceTest.java60 assertEquals(reply.readInt(), Utils.TEST_SUCCESS); in runServiceAndCheckSuccess()
71 runServiceAndCheckSuccess(GwpAsanEnabledService.class, Utils.TEST_IS_GWP_ASAN_ENABLED); in testEnablement()
72 runServiceAndCheckSuccess(GwpAsanDefaultService.class, Utils.TEST_IS_GWP_ASAN_ENABLED); in testEnablement()
73 runServiceAndCheckSuccess(GwpAsanDisabledService.class, Utils.TEST_IS_GWP_ASAN_DISABLED); in testEnablement()
78 DropBoxReceiver receiver = Utils.getDropboxReceiver(mContext, processNameSuffix, crashTag); in testCrash()
80 runServiceAndCheckSuccess(cls, Utils.TEST_USE_AFTER_FREE); in testCrash()
82 runService(cls, Utils.TEST_USE_AFTER_FREE); in testCrash()
90 Utils.DROPBOX_NON_RECOVERABLE_TAG, /*shouldRecover=*/false); in testCrashToDropboxNonRecoverableEnabled()
96 Utils.DROPBOX_NON_RECOVERABLE_TAG, /*shouldRecover=*/false); in testCrashToDropboxNonRecoverableDefault()
101 testCrash(GwpAsanEnabledService.class, "gwp_asan_enabled", Utils.DROPBOX_RECOVERABLE_TAG, in testCrashToDropboxRecoverableEnabled()
[all …]
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DVoiceInteractionSessionControl.java25 import android.voiceinteraction.common.Utils;
54 mControl = result.getParcelable(Utils.VOICE_INTERACTION_KEY_CONTROL); in startVoiceInteractionSession()
58 intent.putExtra(Utils.VOICE_INTERACTION_KEY_CALLBACK, callback); in startVoiceInteractionSession()
63 final long timeoutMs = Utils.getAdjustedOperationTimeoutMs(); in startVoiceInteractionSession()
71 executeCommand(Utils.VOICE_INTERACTION_SESSION_CMD_FINISH, in stopVoiceInteractionSession()
89 command.putString(Utils.VOICE_INTERACTION_KEY_COMMAND, action); in executeCommand()
90 command.putParcelable(Utils.VOICE_INTERACTION_DIRECT_ACTIONS_KEY_ACTION, directAction); in executeCommand()
91 command.putBundle(Utils.VOICE_INTERACTION_KEY_ARGUMENTS, arguments); in executeCommand()
92 command.putParcelable(Utils.VOICE_INTERACTION_KEY_CALLBACK, callback); in executeCommand()
95 + Utils.toBundleString(command)); in executeCommand()
[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()

12345678910>>...15