Home
last modified time | relevance | path

Searched refs:Constants (Results 1 – 25 of 121) sorted by relevance

12345

/cts/tests/tests/app/test-apps/TestComponentCallerApp/src/android/app/cts/testcomponentcaller/
DTestInitialCallerActivity.java19 import static android.app.cts.testcomponentcaller.Constants.TEST_ACTION_ID;
20 import static android.app.cts.testcomponentcaller.Constants.EXTRA_CHECK_CONTENT_URI_PERMISSION_RESU…
21 import static android.app.cts.testcomponentcaller.Constants.EXTRA_ILLEGAL_ARG_EXCEPTION_CAUGHT;
22 import static android.app.cts.testcomponentcaller.Constants.EXTRA_UNKNOWN;
23 import static android.app.cts.testcomponentcaller.Constants.IS_NEW_INTENT;
24 import static android.app.cts.testcomponentcaller.Constants.IS_RESULT;
25 import static android.app.cts.testcomponentcaller.Constants.MODE_FLAGS_TO_CHECK;
26 import static android.app.cts.testcomponentcaller.Constants.EXTRA_SECURITY_EXCEPTION_CAUGHT;
27 import static android.app.cts.testcomponentcaller.Constants.INVALID_PERMISSION_RESULT;
28 import static android.app.cts.testcomponentcaller.Constants.NONE_PROVIDED_USE_HELPER_APP_URI_LOCATI…
[all …]
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DShortcutManagerThrottlingTestReceiver.java27 import android.content.pm.cts.shortcutmanager.common.Constants;
51 if (Constants.ACTION_THROTTLING_TEST.equals(intent.getAction())) { in onReceive()
52 final String replyAction = intent.getStringExtra(Constants.EXTRA_REPLY_ACTION); in onReceive()
53 final String method = intent.getStringExtra(Constants.EXTRA_METHOD); in onReceive()
55 case Constants.TEST_SET_DYNAMIC_SHORTCUTS: in onReceive()
58 case Constants.TEST_ADD_DYNAMIC_SHORTCUTS: in onReceive()
61 case Constants.TEST_UPDATE_SHORTCUTS: in onReceive()
65 case Constants.TEST_BG_SERVICE_THROTTLED: in onReceive()
69 case Constants.TEST_ACTIVITY_UNTHROTTLED: in onReceive()
72 case Constants.TEST_FG_SERVICE_UNTHROTTLED: in onReceive()
[all …]
DMyActivity.java19 import android.content.pm.cts.shortcutmanager.common.Constants;
32 final String replyAction = getIntent().getStringExtra(Constants.EXTRA_REPLY_ACTION); in onCreate()
34 Log.i(ThrottledTests.TAG, Constants.TEST_ACTIVITY_UNTHROTTLED); in onCreate()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTests.java20 import static android.appenumeration.cts.Constants.ACTION_APP_ENUMERATION_PREFERRED_ACTIVITY;
21 import static android.appenumeration.cts.Constants.ACTION_BIND_SERVICE;
22 import static android.appenumeration.cts.Constants.ACTION_CAN_PACKAGE_QUERIES;
23 import static android.appenumeration.cts.Constants.ACTION_CAN_PACKAGE_QUERY;
24 import static android.appenumeration.cts.Constants.ACTION_CHECK_PACKAGE;
25 import static android.appenumeration.cts.Constants.ACTION_CHECK_SIGNATURES;
26 import static android.appenumeration.cts.Constants.ACTION_CHECK_URI_PERMISSION;
27 import static android.appenumeration.cts.Constants.ACTION_CHECK_CONTENT_URI_PERMISSION_FULL;
28 import static android.appenumeration.cts.Constants.ACTION_GET_CONTENT_PROVIDER_MIME_TYPE;
29 import static android.appenumeration.cts.Constants.ACTION_GET_INSTALLED_ACCESSIBILITYSERVICES_PACKA…
[all …]
DSyncAdapterEnumerationTests.java19 import static android.appenumeration.cts.Constants.ACCOUNT_NAME;
20 import static android.appenumeration.cts.Constants.ACCOUNT_TYPE;
21 import static android.appenumeration.cts.Constants.ACCOUNT_TYPE_SHARED_USER;
22 import static android.appenumeration.cts.Constants.ACTION_GET_IS_SYNCABLE;
23 import static android.appenumeration.cts.Constants.ACTION_GET_PERIODIC_SYNCS;
24 import static android.appenumeration.cts.Constants.ACTION_GET_SYNCADAPTER_CONTROL_PANEL;
25 import static android.appenumeration.cts.Constants.ACTION_GET_SYNCADAPTER_PACKAGES_FOR_AUTHORITY;
26 import static android.appenumeration.cts.Constants.ACTION_GET_SYNCADAPTER_TYPES;
27 import static android.appenumeration.cts.Constants.ACTION_GET_SYNC_AUTOMATICALLY;
28 import static android.appenumeration.cts.Constants.ACTION_REQUEST_PERIODIC_SYNC;
[all …]
DAccountManagerEnumerationTest.java19 import static android.appenumeration.cts.Constants.ACCOUNT_NAME;
20 import static android.appenumeration.cts.Constants.ACCOUNT_TYPE;
21 import static android.appenumeration.cts.Constants.ACTION_ACCOUNT_MANAGER_GET_AUTHENTICATOR_TYPES;
22 import static android.appenumeration.cts.Constants.QUERIES_NOTHING;
23 import static android.appenumeration.cts.Constants.QUERIES_PACKAGE;
24 import static android.appenumeration.cts.Constants.TARGET_STUB;
25 import static android.appenumeration.cts.Constants.TARGET_STUB_APK;
26 import static android.appenumeration.cts.Constants.TARGET_SYNCADAPTER;
27 import static android.appenumeration.cts.Constants.TARGET_WEB;
DMediaSessionEnumerationTests.java19 import static android.appenumeration.cts.Constants.ACTION_MEDIA_SESSION_MANAGER_IS_TRUSTED_FOR_MEDI…
20 import static android.appenumeration.cts.Constants.ACTIVITY_CLASS_DUMMY_ACTIVITY;
21 import static android.appenumeration.cts.Constants.QUERIES_NOTHING;
22 import static android.appenumeration.cts.Constants.QUERIES_PACKAGE;
23 import static android.appenumeration.cts.Constants.TARGET_NO_API;
DLauncherAppsEnumerationTests.java19 import static android.appenumeration.cts.Constants.ACTION_AWAIT_LAUNCHER_APPS_CALLBACK;
20 import static android.appenumeration.cts.Constants.ACTION_AWAIT_LAUNCHER_APPS_SESSION_CALLBACK;
21 import static android.appenumeration.cts.Constants.ACTION_GET_ALL_PACKAGE_INSTALLER_SESSIONS;
22 import static android.appenumeration.cts.Constants.ACTION_LAUNCHER_APPS_GET_SUSPENDED_PACKAGE_LAUNC…
23 import static android.appenumeration.cts.Constants.ACTION_LAUNCHER_APPS_IS_ACTIVITY_ENABLED;
24 import static android.appenumeration.cts.Constants.ACTION_LAUNCHER_APPS_SHOULD_HIDE_FROM_SUGGESTION…
25 import static android.appenumeration.cts.Constants.ACTIVITY_CLASS_DUMMY_ACTIVITY;
26 import static android.appenumeration.cts.Constants.CALLBACK_EVENT_INVALID;
27 import static android.appenumeration.cts.Constants.CALLBACK_EVENT_PACKAGES_SUSPENDED;
28 import static android.appenumeration.cts.Constants.CALLBACK_EVENT_PACKAGES_UNSUSPENDED;
[all …]
/cts/hostsidetests/packagemanager/dynamicmime/app/src/android/dynamicmime/app/
DAppMimeGroupsReceiver.java19 import static android.dynamicmime.common.Constants.ACTION_REQUEST;
20 import static android.dynamicmime.common.Constants.ACTION_RESPONSE;
21 import static android.dynamicmime.common.Constants.EXTRA_GROUP;
22 import static android.dynamicmime.common.Constants.EXTRA_MIMES;
23 import static android.dynamicmime.common.Constants.EXTRA_REQUEST;
24 import static android.dynamicmime.common.Constants.EXTRA_RESPONSE;
25 import static android.dynamicmime.common.Constants.REQUEST_GET;
26 import static android.dynamicmime.common.Constants.REQUEST_SET;
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/
DSessionInspectorTest.java19 import static com.android.cts.sessioninspector.Constants.ACTION_ABANDON_SESSION;
20 import static com.android.cts.sessioninspector.Constants.ACTION_CREATE_SESSION;
21 import static com.android.cts.sessioninspector.Constants.ACTION_GET_SESSION;
22 import static com.android.cts.sessioninspector.Constants.ACTIVITY_NAME;
23 import static com.android.cts.sessioninspector.Constants.REFERRER_URI;
51 String myPackage = Constants.PACKAGE_A.equals(getContext().getPackageName()) in testOnlyOwnerCanSee()
52 ? Constants.PACKAGE_A : Constants.PACKAGE_B; in testOnlyOwnerCanSee()
53 String otherPackage = Constants.PACKAGE_A.equals(myPackage) ? Constants.PACKAGE_B in testOnlyOwnerCanSee()
54 : Constants.PACKAGE_A; in testOnlyOwnerCanSee()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerThrottlingTest.java19 import static android.content.pm.cts.shortcutmanager.common.Constants.INLINE_REPLY_REMOTE_INPUT_CAP…
27 import android.content.pm.cts.shortcutmanager.common.Constants;
57 final Intent i = new Intent(Constants.ACTION_THROTTLING_TEST); in callTest()
58 i.putExtra(Constants.EXTRA_METHOD, method); in callTest()
59 i.putExtra(Constants.EXTRA_REPLY_ACTION, replyAction); in callTest()
86 callTest(Constants.TEST_SET_DYNAMIC_SHORTCUTS); in testSetDynamicShortcuts()
90 callTest(Constants.TEST_ADD_DYNAMIC_SHORTCUTS); in testAddDynamicShortcuts()
94 callTest(Constants.TEST_UPDATE_SHORTCUTS); in testUpdateShortcuts()
105 callTest(Constants.TEST_ACTIVITY_UNTHROTTLED); in testActivityUnthrottled()
122 callTest(Constants.TEST_INLINE_REPLY_SHOW); in testInlineReply()
[all …]
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/assertions/
DAssertionsByIntentResolution.java19 import static android.dynamicmime.common.Constants.ACTIVITY_BOTH;
20 import static android.dynamicmime.common.Constants.ACTIVITY_BOTH_AND_TYPE;
21 import static android.dynamicmime.common.Constants.ACTIVITY_FIRST;
22 import static android.dynamicmime.common.Constants.ACTIVITY_SECOND;
23 import static android.dynamicmime.common.Constants.ALIAS_BOTH_GROUPS;
24 import static android.dynamicmime.common.Constants.ALIAS_BOTH_GROUPS_AND_TYPE;
25 import static android.dynamicmime.common.Constants.GROUP_FIRST;
26 import static android.dynamicmime.common.Constants.GROUP_SECOND;
27 import static android.dynamicmime.common.Constants.PACKAGE_HELPER_APP;
28 import static android.dynamicmime.common.Constants.PACKAGE_TEST_APP;
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DNativeAttachShaderTest.java53 mActivity = getShaderActivity(Constants.SHADER, 1); in test_glAttachedShaders_validshader()
69 mActivity = getShaderActivity(Constants.SHADER, 2); in test_glAttachedShaders_invalidshader()
83 mActivity = getShaderActivity(Constants.SHADER, 3); in test_glAttachedShaders_attach_same_shader()
97 mActivity = getShaderActivity(Constants.SHADER, 4); in test_glAttachedShaders_noshader()
113 mActivity = getShaderActivity(Constants.SHADER, 6); in test_glAttachShaders_emptyfragshader_emptyvertexshader()
126 mActivity = getShaderActivity(Constants.SHADER, 8); in test_glAttachShaders_programobject_attach_fragshaderobject()
133 mActivity = getShaderActivity(Constants.SHADER, 9); in test_glAttachShaders_invalidshader_attach_valid_handle()
139 mActivity = getShaderActivity(Constants.SHADER, 10); in test_glAttachShaders_successfulcompile_attach_frag()
147 mActivity = getShaderActivity(Constants.SHADER, 11); in test_glAttachShaders_successfulcompile_attach_vert()
DAttachShaderTest.java52 mActivity = getShaderActivity(Constants.SHADER, 1); in test_glAttachedShaders_validshader()
100 mActivity = getShaderActivity(Constants.SHADER, 4); in test_glAttachedShaders_noshader()
116 mActivity = getShaderActivity(Constants.SHADER, 6); in test_glAttachShaders_emptyfragshader_emptyvertexshader()
131 mActivity = getShaderActivity(Constants.SHADER, 8); in test_glAttachShaders_programobject_attach_fragshaderobject()
137 mActivity = getShaderActivity(Constants.SHADER, 9); in test_glAttachShaders_invalidshader_attach_valid_handle()
143 mActivity = getShaderActivity(Constants.SHADER, 10); in test_glAttachShaders_successfulcompile_attach_frag()
149 mActivity = getShaderActivity(Constants.SHADER, 11); in test_glAttachShaders_successfulcompile_attach_vert()
155 mActivity = getShaderActivity(Constants.SHADER, 12); in test_glCompileShaders_shader_info_log_fail()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/
DAppMimeGroups.java19 import static android.dynamicmime.common.Constants.ACTION_REQUEST;
20 import static android.dynamicmime.common.Constants.ACTION_RESPONSE;
21 import static android.dynamicmime.common.Constants.EXTRA_GROUP;
22 import static android.dynamicmime.common.Constants.EXTRA_MIMES;
23 import static android.dynamicmime.common.Constants.EXTRA_REQUEST;
24 import static android.dynamicmime.common.Constants.EXTRA_RESPONSE;
25 import static android.dynamicmime.common.Constants.REQUEST_GET;
26 import static android.dynamicmime.common.Constants.REQUEST_SET;
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/update/
DChangedGroupsTest.java19 import static android.dynamicmime.common.Constants.APK_FIRST_GROUP;
20 import static android.dynamicmime.common.Constants.APK_SECOND_GROUP;
21 import static android.dynamicmime.common.Constants.GROUP_FIRST;
22 import static android.dynamicmime.common.Constants.GROUP_SECOND;
23 import static android.dynamicmime.common.Constants.MIME_TEXT_PLAIN;
DSameGroupsTest.java19 import static android.dynamicmime.common.Constants.APK_BOTH_GROUPS;
20 import static android.dynamicmime.common.Constants.GROUP_FIRST;
21 import static android.dynamicmime.common.Constants.GROUP_SECOND;
22 import static android.dynamicmime.common.Constants.MIME_TEXT_PLAIN;
/cts/tests/tests/appwidget/packages/src/android/appwidget/cts/packages/
DAppWidgetConfirmPin.java19 import android.appwidget.cts.common.Constants;
56 registerReceiver(mReceiver, new IntentFilter(Constants.ACTION_CONFIRM_PIN), in onCreate()
75 sendBroadcast(new Intent(Constants.ACTION_SETUP_REPLY) in sendSetupReply()
76 .putExtra(Constants.EXTRA_SUCCESS, success) in sendSetupReply()
77 .putExtra(Constants.EXTRA_PACKAGE, getPackageName()) in sendSetupReply()
78 .putExtra(Constants.EXTRA_REQUEST, mRequest)); in sendSetupReply()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java19 import static android.appenumeration.cts.Constants.ACTION_CHECK_SIGNATURES;
20 import static android.appenumeration.cts.Constants.ACTION_GET_INSTALLED_PACKAGES;
21 import static android.appenumeration.cts.Constants.ACTION_GET_NAMES_FOR_UIDS;
22 import static android.appenumeration.cts.Constants.ACTION_GET_NAME_FOR_UID;
23 import static android.appenumeration.cts.Constants.ACTION_GET_PACKAGES_FOR_UID;
24 import static android.appenumeration.cts.Constants.ACTION_GET_PACKAGE_INFO;
25 import static android.appenumeration.cts.Constants.ACTION_HAS_SIGNING_CERTIFICATE;
26 import static android.appenumeration.cts.Constants.ACTION_JUST_FINISH;
27 import static android.appenumeration.cts.Constants.ACTION_MANIFEST_SERVICE;
28 import static android.appenumeration.cts.Constants.ACTION_MEDIA_SESSION_MANAGER_IS_TRUSTED_FOR_MEDI…
[all …]
/cts/tests/tests/shortcutmanager/packages/src/android/content/pm/cts/shortcutmanager/packages/
DShortcutConfirmPin.java22 import android.content.pm.cts.shortcutmanager.common.Constants;
55 replyAction = shortcut.getExtras().getString(Constants.EXTRA_REPLY_ACTION); in onCreate()
67 if (shortcut.getExtras().getBoolean(Constants.IGNORE)) { in onCreate()
70 ReplyUtil.sendReply(this, replyAction, Constants.REQUEST_IGNORED_MESSAGE); in onCreate()
75 final boolean expectPinned = shortcut.getExtras().getBoolean(Constants.ALREADY_PINNED); in onCreate()
81 final String expectLabel = shortcut.getExtras().getString(Constants.LABEL); in onCreate()
90 if (shortcut.getExtras().getBoolean(Constants.HAS_ICON)) { in onCreate()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/
DComplexFilterTest.java19 import static android.dynamicmime.common.Constants.ALIAS_BOTH_GROUPS;
20 import static android.dynamicmime.common.Constants.ALIAS_BOTH_GROUPS_AND_TYPE;
21 import static android.dynamicmime.common.Constants.GROUP_FIRST;
22 import static android.dynamicmime.common.Constants.GROUP_SECOND;
23 import static android.dynamicmime.common.Constants.MIME_IMAGE_PNG;
24 import static android.dynamicmime.common.Constants.MIME_TEXT_ANY;
25 import static android.dynamicmime.common.Constants.MIME_TEXT_PLAIN;
DSingleAppTest.java19 import static android.dynamicmime.common.Constants.GROUP_FIRST;
20 import static android.dynamicmime.common.Constants.GROUP_SECOND;
21 import static android.dynamicmime.common.Constants.MIME_ANY;
22 import static android.dynamicmime.common.Constants.MIME_IMAGE_ANY;
23 import static android.dynamicmime.common.Constants.MIME_IMAGE_JPEG;
24 import static android.dynamicmime.common.Constants.MIME_IMAGE_PNG;
25 import static android.dynamicmime.common.Constants.MIME_TEXT_ANY;
26 import static android.dynamicmime.common.Constants.MIME_TEXT_PLAIN;
27 import static android.dynamicmime.common.Constants.MIME_TEXT_XML;
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/commands/
DMimeGroupCommands.java19 import static android.dynamicmime.common.Constants.GROUP_FIRST;
20 import static android.dynamicmime.common.Constants.GROUP_SECOND;
21 import static android.dynamicmime.common.Constants.GROUP_THIRD;
22 import static android.dynamicmime.common.Constants.PACKAGE_HELPER_APP;
23 import static android.dynamicmime.common.Constants.PACKAGE_PREFERRED_APP;
24 import static android.dynamicmime.common.Constants.PACKAGE_UPDATE_APP;
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DConstants.java22 public interface Constants { interface
24 String TEST_APP_PACKAGE_NAME = com.android.suspendapps.suspendtestapp.Constants.PACKAGE_NAME;
28 com.android.suspendapps.suspendtestapp.Constants.ANDROID_PACKAGE_NAME_2
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DRequestPinAppWidgetTest.java31 import android.appwidget.cts.common.Constants;
80 .register(Constants.ACTION_SETUP_REPLY); in runPinWidgetTest()
93 assertTrue(setupReceiver.result.getBooleanExtra(Constants.EXTRA_SUCCESS, false)); in runPinWidgetTest()
94 assertEquals(launcherPkg, setupReceiver.result.getStringExtra(Constants.EXTRA_PACKAGE)); in runPinWidgetTest()
97 setupReceiver.result.getParcelableExtra(Constants.EXTRA_REQUEST); in runPinWidgetTest()
109 context.sendBroadcast(new Intent(Constants.ACTION_CONFIRM_PIN) in runPinWidgetTest()
185 .register(Constants.ACTION_SETUP_REPLY); in testRequestPinAppWidgetNotAllowBal()
194 assertTrue(setupReceiver.result.getBooleanExtra(Constants.EXTRA_SUCCESS, false)); in testRequestPinAppWidgetNotAllowBal()
197 context.sendBroadcast(new Intent(Constants.ACTION_CONFIRM_PIN) in testRequestPinAppWidgetNotAllowBal()

12345