Home
last modified time | relevance | path

Searched refs:Intent (Results 1 – 25 of 3521) sorted by relevance

12345678910>>...141

/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java25 import android.content.Intent;
148 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)); in onListItemClick()
153 new Intent(Intent.ACTION_PICK, People.CONTENT_URI)); in onListItemClick()
158 new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI)); in onListItemClick()
163 new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI)); in onListItemClick()
168 new Intent(Intent.ACTION_PICK, StructuredPostal.CONTENT_URI)); in onListItemClick()
172 Intent intent = new Intent(Intent.ACTION_PICK); in onListItemClick()
179 new Intent(Intent.ACTION_PICK, Email.CONTENT_URI)); in onListItemClick()
183 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); in onListItemClick()
188 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); in onListItemClick()
[all …]
/packages/apps/Nfc/testutils/src/com/android/nfc/emulator/
DNfcEmulatorDeviceSnippet.java20 import android.content.Intent;
47 Intent intent = new Intent(Intent.ACTION_MAIN); in startSingleNonPaymentEmulatorActivity()
48 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startSingleNonPaymentEmulatorActivity()
61 Intent intent = new Intent(Intent.ACTION_MAIN); in startSinglePaymentEmulatorActivity()
62 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startSinglePaymentEmulatorActivity()
74 Intent intent = new Intent(Intent.ACTION_MAIN); in startDualPaymentEmulatorActivity()
75 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startDualPaymentEmulatorActivity()
87 Intent intent = new Intent(Intent.ACTION_MAIN); in startForegroundPaymentEmulatorActivity()
88 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startForegroundPaymentEmulatorActivity()
101 Intent intent = new Intent(Intent.ACTION_MAIN); in startDynamicAidEmulatorActivity()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DEnterpriseDefaultApps.java19 import android.content.Intent;
28 BROWSER(new Intent[] {
29 buildIntent(Intent.ACTION_VIEW, Intent.CATEGORY_BROWSABLE, "http:", null)}),
30 CALENDAR(new Intent[] {
31 buildIntent(Intent.ACTION_INSERT, null, null, "vnd.android.cursor.dir/event")}),
32 CAMERA(new Intent[] {
33 new Intent(MediaStore.ACTION_IMAGE_CAPTURE),
34 new Intent(MediaStore.ACTION_VIDEO_CAPTURE)}),
35 CONTACTS(new Intent[] {
36 buildIntent(Intent.ACTION_PICK, null, null, ContactsContract.Contacts.CONTENT_TYPE)}),
[all …]
/packages/apps/Car/Settings/src/com/android/car/settingslib/enterprise/
DEnterpriseDefaultApps.java19 import android.content.Intent;
30 BROWSER(new Intent[] {
31 buildIntent(Intent.ACTION_VIEW, Intent.CATEGORY_BROWSABLE, "http:", null)}),
32 CALENDAR(new Intent[] {
33 buildIntent(Intent.ACTION_INSERT, null, null, "vnd.android.cursor.dir/event")}),
34 CAMERA(new Intent[] {
35 new Intent(MediaStore.ACTION_IMAGE_CAPTURE),
36 new Intent(MediaStore.ACTION_VIDEO_CAPTURE)}),
37 CONTACTS(new Intent[] {
38 buildIntent(Intent.ACTION_PICK, null, null, ContactsContract.Contacts.CONTENT_TYPE)}),
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ext/
DIntentExtTest.kt19 import android.content.Intent
28 Predicate<Intent> { in <lambda>()
29 it?.action == Intent.ACTION_SEND || it?.action == Intent.ACTION_SEND_MULTIPLE in <lambda>()
34 val sendIntent = Intent(Intent.ACTION_SEND) in hasAction()
35 assertThat(sendIntent.hasAction(Intent.ACTION_SEND)).isTrue() in hasAction()
36 assertThat(sendIntent.hasAction(Intent.ACTION_VIEW)).isFalse() in hasAction()
41 assertThat(Intent().hasComponent()).isFalse() in hasComponent()
42 assertThat(Intent().setComponent(ComponentName("A", "B")).hasComponent()).isTrue() in hasComponent()
47 assertThat(Intent(Intent.ACTION_SEND).hasSendAction()).isTrue() in hasSendAction()
48 assertThat(Intent(Intent.ACTION_SEND_MULTIPLE).hasSendAction()).isTrue() in hasSendAction()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DUIIntentsImpl.java27 import android.content.Intent;
90 private Intent getConversationActivityIntent(final Context context, in getConversationActivityIntent()
93 final Intent intent = new Intent(context, ConversationActivity.class); in getConversationActivityIntent()
97 intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in getConversationActivityIntent()
122 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in getConversationActivityIntent()
132 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in getConversationActivityIntent()
139 final Intent intent = new Intent(context, PermissionCheckActivity.class); in launchPermissionCheckActivity()
146 private Intent getConversationListActivityIntent(final Context context) { in getConversationListActivityIntent()
147 return new Intent(context, ConversationListActivity.class); in getConversationListActivityIntent()
152 final Intent intent = getConversationListActivityIntent(context); in launchConversationListActivity()
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/apps/
DEnterpriseDefaultApps.java19 import android.content.Intent;
30 BROWSER(new Intent[]{
31 buildIntent(Intent.ACTION_VIEW, Intent.CATEGORY_BROWSABLE, "http:", null)}),
32 CALENDAR(new Intent[]{
33 buildIntent(Intent.ACTION_INSERT, null, null, "vnd.android.cursor.dir/event")}),
34 CAMERA(new Intent[]{
35 new Intent(MediaStore.ACTION_IMAGE_CAPTURE),
36 new Intent(MediaStore.ACTION_VIDEO_CAPTURE)}),
37 CONTACTS(new Intent[]{
38 buildIntent(Intent.ACTION_PICK, null, null, ContactsContract.Contacts.CONTENT_TYPE)}),
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/
DEnterpriseDefaultApps.java19 import android.content.Intent;
30 BROWSER(new Intent[]{
31 buildIntent(Intent.ACTION_VIEW, Intent.CATEGORY_BROWSABLE, "http:", null)}),
32 CALENDAR(new Intent[]{
33 buildIntent(Intent.ACTION_INSERT, null, null, "vnd.android.cursor.dir/event")}),
34 CAMERA(new Intent[]{
35 new Intent(MediaStore.ACTION_IMAGE_CAPTURE),
36 new Intent(MediaStore.ACTION_VIDEO_CAPTURE)}),
37 CONTACTS(new Intent[]{
38 buildIntent(Intent.ACTION_PICK, null, null, ContactsContract.Contacts.CONTENT_TYPE)}),
[all …]
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DProtectedBroadcastsTest.java19 import android.content.Intent;
29 Intent.ACTION_SCREEN_OFF,
30 Intent.ACTION_SCREEN_ON,
31 Intent.ACTION_USER_PRESENT,
32 Intent.ACTION_TIME_TICK,
33 Intent.ACTION_TIMEZONE_CHANGED,
34 Intent.ACTION_BOOT_COMPLETED,
35 Intent.ACTION_PACKAGE_INSTALL,
36 Intent.ACTION_PACKAGE_ADDED,
37 Intent.ACTION_PACKAGE_REPLACED,
[all …]
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/actions/
DInputSetupActionUtilsTest.java22 import android.content.Intent;
39 Intent intent = new Intent("com.android.tv.action.LAUNCH_INPUT_SETUP"); in hasInputSetupAction_launchInputSetup()
45 Intent intent = new Intent("com.google.android.tv.action.LAUNCH_INPUT_SETUP"); in hasInputSetupAction_googleLaunchInputSetup()
51 Intent intent = new Intent("com.example.action.LAUNCH_INPUT_SETUP"); in hasInputSetupAction_bad()
57 Intent intent = new Intent(); in getExtraActivityAfter_null()
63 Intent intent = new Intent(); in getExtraActivityAfter_activityAfter()
64 Intent after = new Intent("after"); in getExtraActivityAfter_activityAfter()
71 Intent intent = new Intent(); in getExtraActivityAfter_googleActivityAfter()
72 Intent after = new Intent("google_setup"); in getExtraActivityAfter_googleActivityAfter()
79 Intent intent = new Intent(); in getExtraSetupIntent_null()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DMimeFilterUtilsTest.java23 import android.content.Intent;
35 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_imagesType()
44 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_videosType()
53 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_allType()
62 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_extraMimeTypeImagesVideos()
65 intent.putExtra(Intent.EXTRA_MIME_TYPES, MEDIA_MIME_TYPES); in testRequiresUnsupportedFilters_extraMimeTypeImagesVideos()
72 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_extraMimeTypeAllFiles()
75 intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[] {"audio/*", "video/mp4", in testRequiresUnsupportedFilters_extraMimeTypeAllFiles()
83 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testRequiresUnsupportedFilters_multipleFilters()
86 intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[] {"video/mp4", "image/gif"}); in testRequiresUnsupportedFilters_multipleFilters()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserRequestParameters.java21 import android.content.Intent;
72 Intent.FLAG_ACTIVITY_NEW_DOCUMENT | Intent.FLAG_ACTIVITY_MULTIPLE_TASK;
75 private final Intent mTarget;
78 private final Intent mReferrerFillInIntent;
86 private final ImmutableList<Intent> mAdditionalTargets;
92 private final ImmutableList<Intent> mInitialIntents;
110 final Intent clientIntent, in ChooserRequestParameters()
113 final Intent requestedTarget = parseTargetIntentExtra( in ChooserRequestParameters()
114 clientIntent.getParcelableExtra(Intent.EXTRA_INTENT)); in ChooserRequestParameters()
120 clientIntent, Intent.EXTRA_ALTERNATE_INTENTS); in ChooserRequestParameters()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DNewOutgoingCallIntentBroadcasterTest.java41 import android.content.Intent;
83 public Intent intent;
85 public ReceiverIntentPair(BroadcastReceiver receiver, Intent intent) { in ReceiverIntentPair()
133 Intent selfManagedCallIntent = buildIntent(handle, Intent.ACTION_CALL, null); in testSelfManagedCall()
146 Intent intent = new Intent(Intent.ACTION_CALL, null); in testNullHandle()
157 Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(voicemailNumber)); in testVoicemailCall()
187 Intent intent = new Intent(Intent.ACTION_ALARM_CHANGED, handle); in badCallActionHelper()
201 Intent callIntent = buildIntent(handle, Intent.ACTION_CALL, null); in testAlreadyDisconnectedCall()
205 result.intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER)); in testAlreadyDisconnectedCall()
215 Intent intent = new Intent(Intent.ACTION_CALL, handle); in testNoNumberSupplied()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DImplicitIntentsUtil.java23 import android.content.Intent;
66 public static void startActivityInAppIfPossible(Context context, Intent intent) { in startActivityInAppIfPossible()
67 final Intent appIntent = getIntentInAppIfExists(context, intent); in startActivityInAppIfPossible()
79 public static void startActivityInApp(Context context, Intent intent) { in startActivityInApp()
88 public static void startActivityOutsideApp(Context context, Intent intent) { in startActivityOutsideApp()
105 final Intent intent = ImplicitIntentsUtil.composeQuickContactIntent( in startQuickContact()
115 public static Intent composeQuickContactIntent(Context context, Uri contactLookupUri, in composeQuickContactIntent()
124 public static Intent composeQuickContactIntent(Context context, Uri contactLookupUri, in composeQuickContactIntent()
126 final Intent intent = new Intent(context, QuickContactActivity.class); in composeQuickContactIntent()
131 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in composeQuickContactIntent()
[all …]
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/
DCarLauncherUtils.java21 import android.content.Intent;
38 public static Intent getAppsGridIntent() { in getAppsGridIntent()
39 return new Intent(ACTION_APP_GRID); in getAppsGridIntent()
43 public static Intent getMapsIntent(Context context) { in getMapsIntent()
44 Intent defaultIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_APP_MAPS); in getMapsIntent()
45 defaultIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in getMapsIntent()
52 Intent preferredIntent; in getMapsIntent()
54 preferredIntent = Intent.parseUri(intentUri, Intent.URI_ANDROID_APP_SCHEME); in getMapsIntent()
77 public static Intent getTosMapIntent(Context context) { in getTosMapIntent()
80 return Intent.parseUri(intentString, Intent.URI_ANDROID_APP_SCHEME); in getTosMapIntent()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java20 import android.content.Intent;
69 assertTrue("1", ContactsUtils.areIntentActionEqual(new Intent("a"), new Intent("a"))); in testAreIntentActionEqual()
71 assertFalse("11", ContactsUtils.areIntentActionEqual(new Intent("a"), null)); in testAreIntentActionEqual()
72 assertFalse("12", ContactsUtils.areIntentActionEqual(null, new Intent("a"))); in testAreIntentActionEqual()
74 assertFalse("21", ContactsUtils.areIntentActionEqual(new Intent("a"), new Intent())); in testAreIntentActionEqual()
75 assertFalse("22", ContactsUtils.areIntentActionEqual(new Intent(), new Intent("b"))); in testAreIntentActionEqual()
76 assertFalse("23", ContactsUtils.areIntentActionEqual(new Intent("a"), new Intent("b"))); in testAreIntentActionEqual()
90 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntentCustom()
91 final Intent imIntent = intents.first; in testImIntentCustom()
93 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntentCustom()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DTestUtils.java23 import android.content.Intent;
43 Intent i = new Intent("aa"); in testIntentWithActionEquals()
49 Intent i = new Intent().putExtra("bb", "cc"); in testIntentWithExtraEquals()
55 Intent i1 = new Intent("aa"); in testIntentActionNotEqual()
56 Intent i2 = new Intent("bb"); in testIntentActionNotEqual()
62 Intent i1 = new Intent().putExtra("aa", "bb"); in testIntentExtraNotEqual()
63 Intent i2 = new Intent().putExtra("aa", "cc"); in testIntentExtraNotEqual()
69 Intent i1 = new Intent().putExtra("aa", "bb"); in testIntentNotSameExtra()
70 Intent i2 = new Intent().putExtra("dd", "cc"); in testIntentNotSameExtra()
76 Intent i1 = new Intent() in testIntentMultipleExtrasOfArray()
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DIntentUtil.java19 import android.content.Intent;
29 public static Intent getSendSmsIntent(CharSequence phoneNumber) { in getSendSmsIntent()
30 return new Intent(Intent.ACTION_SENDTO, Uri.parse(SMS_URI_PREFIX + phoneNumber)); in getSendSmsIntent()
33 public static Intent getNewContactIntent() { in getNewContactIntent()
34 return new Intent(Intent.ACTION_INSERT, ContactsContract.Contacts.CONTENT_URI) in getNewContactIntent()
35 .addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in getNewContactIntent()
38 public static Intent getNewContactIntent(CharSequence phoneNumber) { in getNewContactIntent()
42 public static Intent getNewContactIntent( in getNewContactIntent()
44 Intent intent = getNewContactIntent(); in getNewContactIntent()
49 public static Intent getAddToExistingContactIntent() { in getAddToExistingContactIntent()
[all …]
/packages/apps/Settings/tests/componenttests/src/com/android/settings/homepage/
DHomepageComponentTest.java24 import android.content.Intent;
50 List<Intent> launchIntents = ImmutableList.of( in test_launch_all_settings_in_home()
56 new Intent(Settings.ACTION_BLUETOOTH_SETTINGS), in test_launch_all_settings_in_home()
59 new Intent(Settings.ACTION_AUTO_ROTATE_SETTINGS), in test_launch_all_settings_in_home()
62 new Intent(Settings.ACTION_NOTIFICATION_SETTINGS), in test_launch_all_settings_in_home()
65 new Intent(Settings.ACTION_DISPLAY_SETTINGS), in test_launch_all_settings_in_home()
71 new Intent(Settings.ACTION_INTERNAL_STORAGE_SETTINGS), in test_launch_all_settings_in_home()
74 new Intent(Settings.ACTION_SOUND_SETTINGS), in test_launch_all_settings_in_home()
77 new Intent(Settings.ACTION_DISPLAY_SETTINGS), in test_launch_all_settings_in_home()
80 new Intent(mInstrumentation.getTargetContext(), Class.forName( in test_launch_all_settings_in_home()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEditorIntents.java20 import android.content.Intent;
45 public static Intent createEditContactIntent(Context context, Uri uri, in createEditContactIntent()
47 final Intent intent = new Intent(Intent.ACTION_EDIT, uri, context, in createEditContactIntent()
54 public static Intent createViewLinkedContactsIntent(Context context, Uri uri, in createViewLinkedContactsIntent()
56 final Intent intent = createEditContactIntent(context, uri, materialPalette, in createViewLinkedContactsIntent()
66 public static Intent createEditContactIntentForRawContact(Context context, in createEditContactIntentForRawContact()
68 final Intent intent = new Intent(Intent.ACTION_EDIT, uri, context, in createEditContactIntentForRawContact()
80 public static Intent createInsertContactIntent(Context context, in createInsertContactIntent()
83 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI, in createInsertContactIntent()
95 public static Intent createEditOtherRawContactIntent(Context context, Uri uri, in createEditOtherRawContactIntent()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DPreviewDataProviderTest.kt20 import android.content.Intent
52 targetIntent: Intent, in createDataProvider()
70 val targetIntent = Intent(Intent.ACTION_VIEW) in createDataProvider()
81 Intent(Intent.ACTION_SEND).apply { in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi()
82 putExtra(Intent.EXTRA_STREAM, uri) in test_sendSingleTextFileWithoutPreview_resolvesToFilePreviewUi()
96 val targetIntent = Intent(Intent.ACTION_SEND).apply { type = "image/png" } in test_sendIntentWithoutUris_resolvesToTextPreviewUiSynchronously()
106 val targetIntent = Intent(Intent.ACTION_SEND).apply { putExtra(Intent.EXTRA_STREAM, uri) } in test_sendSingleImage_resolvesToImagePreviewUi()
120 val targetIntent = Intent(Intent.ACTION_SEND).apply { putExtra(Intent.EXTRA_STREAM, uri) } in test_sendSingleNonImage_resolvesToFilePreviewUi()
135 Intent(Intent.ACTION_SEND).apply { in test_sendSingleImageWithFailingGetType_resolvesToFilePreviewUi()
137 putExtra(Intent.EXTRA_STREAM, uri) in test_sendSingleImageWithFailingGetType_resolvesToFilePreviewUi()
[all …]
/packages/modules/AdServices/sdksandbox/tests/endtoendtests/src/com/android/tests/sdksandbox/restrictions/
DBroadcastRestrictionsTest.java33 import android.content.Intent;
89 Intent.ACTION_WEB_SEARCH,
90 Intent.ACTION_VOICE_ASSIST,
91 Intent.ACTION_CALL_BUTTON,
92 Intent.ACTION_VOICE_COMMAND,
93 Intent.ACTION_SET_WALLPAPER,
94 Intent.ACTION_SHOW_WORK_APPS));
198 assertThat(thrown).hasMessageThat().contains(Intent.ACTION_VOICE_COMMAND); in testRegisterBroadcastReceiver_restrictionsApplied()
199 assertThat(thrown).hasMessageThat().contains(Intent.ACTION_SET_WALLPAPER); in testRegisterBroadcastReceiver_restrictionsApplied()
200 assertThat(thrown).hasMessageThat().contains(Intent.ACTION_SHOW_WORK_APPS); in testRegisterBroadcastReceiver_restrictionsApplied()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageBroadcastReceiverTest.java27 import android.content.Intent;
65 mBatteryUsageBroadcastReceiver.onReceive(mContext, new Intent("invalid intent")); in onReceive_invalidIntent_notStartService()
75 mContext, new Intent(BatteryUsageBroadcastReceiver.ACTION_BATTERY_UNPLUGGING)); in onReceive_workProfile_doNothing()
83 .thenReturn(Intent.ACTION_BATTERY_LEVEL_CHANGED); in onReceive_aospNotFullCharged_notFetchUsageData()
91 mContext, new Intent(Intent.ACTION_BATTERY_LEVEL_CHANGED)); in onReceive_aospNotFullCharged_notFetchUsageData()
94 assertSharedPreferences(Intent.ACTION_BATTERY_LEVEL_CHANGED); in onReceive_aospNotFullCharged_notFetchUsageData()
100 .thenReturn(Intent.ACTION_BATTERY_LEVEL_CHANGED); in onReceive_aospNearBooting_notFetchUsageData()
112 mContext, new Intent(Intent.ACTION_BATTERY_LEVEL_CHANGED)); in onReceive_aospNearBooting_notFetchUsageData()
115 assertSharedPreferences(Intent.ACTION_BATTERY_LEVEL_CHANGED); in onReceive_aospNearBooting_notFetchUsageData()
121 .thenReturn(Intent.ACTION_POWER_DISCONNECTED); in onReceive_aospWrongAction_notFetchUsageData()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivityTest.java35 import android.content.Intent;
113 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISABLE); in onCreate_requestDisableIntent_hasDisableRequestType()
123 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_hasDiscoverableRequestType()
133 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_noTimeoutSpecified_hasDefaultTimeout()
143 Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE); in onCreate_requestDiscoverableIntent_timeoutSpecified_hasTimeout()
156 Intent intent = createSetupWizardIntent(); in onCreate_requestDiscoverableIntent_bypassforSetup_startsDiscoverableScan()
166 Intent intent = createSetupWizardIntent(); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_noDialog()
176 Intent intent = createSetupWizardIntent(); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_receiverRegistered()
187 Intent intent = createSetupWizardIntent(); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_enableDiscovery()
192 Intent stateChangedIntent = new Intent(); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_enableDiscovery()
[all …]
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/
DSdkSandboxRestrictionsTest.java34 import android.content.Intent;
102 Intent intent = in testCannotRequestPermissions()
103 new Intent(PackageManager.ACTION_REQUEST_PERMISSIONS) in testCannotRequestPermissions()
107 .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testCannotRequestPermissions()
124 final Intent sendIntent = in testNoImplicitIntents()
125 new Intent() in testNoImplicitIntents()
126 .setAction(Intent.ACTION_SEND) in testNoImplicitIntents()
127 .putExtra(Intent.EXTRA_TEXT, "text") in testNoImplicitIntents()
129 .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testNoImplicitIntents()
139 Intent intent = new Intent(Intent.ACTION_VIEW); in testSendBroadcastsRestrictions_withAction()
[all …]

12345678910>>...141