HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 1 - 25 of 4022) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/sl4a/Common/src/com/googlecode/android_scripting/
IntentBuilders.java 22 import android.content.Intent;
37 public static Intent buildTriggerServiceIntent() {
38 Intent intent = new Intent(); local
39 intent.setComponent(Constants.TRIGGER_SERVICE_COMPONENT_NAME);
40 return intent;
44 * Builds an intent that will launch a script in the background.
48 * @return the intent that will launch the script
50 public static Intent buildStartInBackgroundIntent(File script)
52 Intent intent = new Intent(); local
68 Intent intent = new Intent(); local
84 Intent intent = new Intent(); local
102 Intent intent = new Intent(); local
120 Intent intent = new Intent(); local
137 Intent intent = new Intent(); local
153 final Intent intent = buildTriggerServiceIntent(); local
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
ContactsContractIntentsTest.java 19 import android.content.Intent;
31 public void assertCanBeHandled(Intent intent) {
33 .getPackageManager().queryIntentActivities(intent, 0);
35 assertTrue("No ResolveInfo found for " + intent.toInsecureString(),
40 Intent intent = new Intent(Intent.ACTION_VIEW); local
41 intent.setData(ContactsContract.Contacts.CONTENT_URI)
46 Intent intent = new Intent(Intent.ACTION_PICK); local
52 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
    [all...]
  /tools/tradefederation/core/util-apps/DeviceSetupUtil/src/com/android/tradefed/utils/
DeviceSetupIntentReceiver.java 21 import android.content.Intent;
34 private final Intent intent = new Intent(); field in class:DeviceSetupIntentReceiver
37 public void onReceive(Context context, Intent intent) {
38 if (DEVICE_SETUP_INTENT.equals(intent.getAction())) {
40 intent.setClass(context, DeviceSetupService.class);
41 context.startService(intent);
42 } else if (Intent.ACTION_POWER_DISCONNECTED.equals(intent.getAction()))
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
Wallpaper.java 19 import android.content.Intent;
39 Intent intent = new Intent(); local
40 intent.setClass(this, CropImage.class);
41 intent.setData(imageToUse);
42 formatIntent(intent);
43 startActivityForResult(intent, CROP_DONE);
45 Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null) local
    [all...]
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
NfcTest.java 19 import android.content.Intent;
31 Intent intent = getTextShareIntent(); local
32 assertFalse("Nfc beam activity should not be resolved", isNfcBeamActivityResolved(intent));
36 Intent intent = getTextShareIntent(); local
37 assertTrue("Nfc beam activity should be resolved", isNfcBeamActivityResolved(intent));
40 private Intent getTextShareIntent() {
41 Intent intent = new Intent() local
    [all...]
  /external/robolectric/v1/src/main/java/android/content/
TestIntentSender.java 4 public Intent intent; field in class:TestIntentSender
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
TestBroadcastReceiver.java 5 import android.content.Intent;
9 public Intent intent; field in class:TestBroadcastReceiver
12 public void onReceive(Context context, Intent intent) {
14 this.intent = intent;
  /cts/tests/tests/content/src/android/content/cts/
AvailableIntentsTest.java 22 import android.content.Intent;
42 * Assert target intent can be handled by at least one Activity.
43 * @param intent - the Intent will be handled.
45 private void assertCanBeHandled(final Intent intent) {
47 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0);
49 // one or more activity can handle this intent.
54 * Assert target intent is not resolved by a filter with priority greater than 0.
55 * @param intent - the Intent will be handled
76 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
86 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
96 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
107 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
118 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
130 Intent intent = new Intent(Intent.ACTION_CALL, uri); local
142 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
154 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
165 Intent intent = new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS); local
176 Intent intent = new Intent(TelecomManager.ACTION_SHOW_CALL_ACCESSIBILITY_SETTINGS); local
187 Intent intent = new Intent(TelecomManager.ACTION_SHOW_CALL_SETTINGS); local
198 Intent intent = new Intent(TelecomManager.ACTION_SHOW_RESPOND_VIA_SMS_SETTINGS); local
210 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); local
243 Intent intent = new Intent(Intent.ACTION_VIEW); local
253 Intent intent = new Intent(Intent.ACTION_VIEW); local
260 Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM); local
268 Intent intent = new Intent(AlarmClock.ACTION_SET_TIMER); local
274 Intent intent = new Intent(AlarmClock.ACTION_SHOW_ALARMS); local
282 Intent intent = new Intent(AlarmClock.ACTION_SHOW_TIMERS); local
287 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); local
294 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); local
301 Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); local
308 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
315 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
336 Intent intent = new Intent(Intent.ACTION_VOICE_COMMAND); local
345 Intent intent = new Intent(RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE); local
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStoreIntentsTest.java 19 import android.content.Intent;
32 public void assertCanBeHandled(Intent intent) {
34 .getPackageManager().queryIntentActivities(intent, 0);
36 assertTrue("No ResolveInfo found for " + intent.toInsecureString(),
41 Intent intent = new Intent(Intent.ACTION_PICK); local
42 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI)
47 Intent intent = new Intent(Intent.ACTION_PICK); local
53 Intent intent = new Intent(Intent.ACTION_PICK); local
59 Intent intent = new Intent(Intent.ACTION_VIEW); local
65 Intent intent = new Intent(Intent.ACTION_VIEW); local
81 Intent intent = new Intent(Intent.ACTION_VIEW); local
99 Intent intent = new Intent(Intent.ACTION_VIEW); local
117 Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/receiver/
MessagingReceiver.java 20 import android.content.Intent;
35 public void onReceive(Context context, Intent intent) {
36 String action = intent == null ? null : intent.getAction();
41 handleIncomingSms(context, intent);
43 handleIncomingMms(context, intent);
47 handleIncomingSms(context, intent);
49 handleIncomingMms(context, intent);
54 private void handleIncomingSms(Context context, Intent intent)
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
IntentTest.java 16 import android.content.Intent;
37 Intent intent = new Intent(); local
38 assertSame(intent, intent.putExtra("foo", "bar"));
39 assertEquals("bar", intent.getExtras().get("foo"));
44 Intent intent = new Intent(); local
52 Intent intent = new Intent(); local
60 Intent intent = new Intent(); local
68 Intent intent = new Intent(); local
76 Intent intent = new Intent(); local
87 Intent intent = new Intent(); local
98 Intent intent = new Intent(); local
109 Intent intent = new Intent(); local
118 Intent intent = new Intent(); local
129 Intent intent = new Intent(); local
145 Intent intent = new Intent(); local
154 Intent intent = new Intent(); local
163 Intent intent = new Intent(); local
171 Intent intent = new Intent(); local
178 Intent intent = new Intent(); local
188 Intent intent = new Intent(); local
197 Intent intent = new Intent(); local
206 Intent intent = new Intent(); local
217 Intent intent = new Intent(); local
228 Intent intent = new Intent(new Activity(), getClass()); local
234 Intent intent = new Intent(); local
242 Intent intent = new Intent(); local
251 Intent intent = new Intent(); local
276 Intent intent = new Intent(); local
377 Intent intent = new Intent(); local
387 Intent intent = new Intent(); local
397 Intent intent = new Intent(new Activity(), getClass()); local
410 Intent intent = new Intent("action"); local
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
LockTaskUtilityActivity.java 20 import android.content.Intent;
38 protected void onNewIntent(Intent intent) {
39 super.onNewIntent(intent);
40 handleIntent(intent);
46 sendLocalBroadcast(new Intent(CREATE_ACTION));
52 sendLocalBroadcast(new Intent(DESTROY_ACTION));
58 sendLocalBroadcast(new Intent(RESUME_ACTION));
64 sendLocalBroadcast(new Intent(PAUSE_ACTION));
68 private void handleIntent(Intent intent)
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
PolicyTransparencyTest.java 20 import android.content.Intent;
35 Intent intent = mDevicePolicyManager.createAdminSupportIntent( local
37 assertNotNull(intent);
39 (ComponentName) intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN));
41 intent.getStringExtra(DevicePolicyManager.EXTRA_RESTRICTION));
44 intent = mDevicePolicyManager.createAdminSupportIntent(
46 assertNull(intent);
52 Intent intent = mDevicePolicyManager.createAdminSupportIntent local
76 Intent intent = mDevicePolicyManager.createAdminSupportIntent(restriction); local
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/NoRestartApp/src/com/android/cts/norestart/
NoRestartActivity.java 22 import android.content.Intent;
38 protected void onNewIntent(Intent intent) {
39 super.onNewIntent(intent);
45 final Intent intent = new Intent("com.android.cts.norestart.BROADCAST"); local
46 intent.putExtra("CREATE_COUNT", mCreateCount);
47 intent.putExtra("NEW_INTENT_COUNT", mNewIntentCount);
48 sendBroadcast(intent);
    [all...]
  /frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
ActivityStarter.java 18 import android.content.Intent;
31 void startPendingIntentDismissingKeyguard(PendingIntent intent);
32 void startActivity(Intent intent, boolean dismissShade);
33 void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade);
34 void startActivity(Intent intent, boolean dismissShade, Callback callback);
35 void postStartActivityDismissingKeyguard(Intent intent, int delay)
    [all...]
  /cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DelegatedScopesReceiverActivity.java 25 import android.content.Intent;
52 public void onReceive(Context context, Intent intent) {
53 if (ACTION_APPLICATION_DELEGATION_SCOPES_CHANGED.equals(intent.getAction())) {
54 handleIntent(intent);
66 protected void onNewIntent(Intent intent) {
67 super.onNewIntent(intent);
68 handleIntent(intent);
86 private void handleIntent(Intent intent)
99 Intent intent = new Intent(); local
106 Intent intent = new Intent(); local
    [all...]
  /frameworks/base/packages/Osu/src/com/android/hotspot2/
AppBridge.java 4 import android.content.Intent;
28 Intent intent = new Intent(ACTION_OSU_NOTIFICATION); local
29 intent.putExtra(OSU_COUNT, osuCount);
30 intent.setFlags(
31 Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK);
33 mContext.startActivity(intent);
38 Intent intent = new Intent(ACTION_OSU_NOTIFICATION) local
50 Intent intent = new Intent(ACTION_OSU_NOTIFICATION); local
    [all...]
  /frameworks/support/customtabs/tests/src/android/support/customtabs/
CustomTabsIntentTest.java 25 import android.content.Intent;
46 Intent intent = customTabsIntent.intent; local
47 assertNotNull(intent);
50 assertEquals(Intent.ACTION_VIEW, intent.getAction());
51 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_SESSION));
53 assertNull(intent.getExtras().getBinder(CustomTabsIntent.EXTRA_SESSION));
55 assertNull(intent.getComponent())
61 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent; local
70 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(colorId).build().intent; local
    [all...]
  /external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
LauncherUtils.java 32 import android.content.Intent;
52 Intent intent = new Intent(context, PollingService.class); local
53 return (context.startService(intent) != null);
64 Intent intent = new Intent(context, PollingService.class); local
65 return context.stopService(intent);
71 Intent intent = new Intent(context, EABService.class) local
78 Intent intent = new Intent(context, EABService.class); local
    [all...]
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
PrivilegedCellBroadcastReceiver.java 20 import android.content.Intent;
29 public void onReceive(Context context, Intent intent) {
32 onReceiveWithPrivilege(context, intent, true);
  /packages/apps/Email/src/com/android/email2/ui/
CreateShortcutActivityEmail.java 26 import android.content.Intent;
35 Intent intent = getIntent(); local
37 intent.setClass(this, FolderSelectionActivity.class);
38 intent.setFlags(
39 Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_FORWARD_RESULT);
40 intent.setAction(Intent.ACTION_CREATE_SHORTCUT);
41 intent.putExtra(FolderSelectionActivity.EXTRA_ACCOUNT_SHORTCUT
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
CreateShortcutActivity.java 24 import android.content.Intent;
33 Intent intent = getIntent(); local
35 intent.setClass(this, FolderSelectionActivity.class);
36 intent.setFlags(
37 Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_FORWARD_RESULT);
38 intent.setAction(Intent.ACTION_CREATE_SHORTCUT);
39 intent.putExtra(FolderSelectionActivity.EXTRA_ACCOUNT_SHORTCUT, cachedAccounts[0])
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
AllIntentsActivity.java 25 import android.content.Intent;
148 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI));
153 new Intent(Intent.ACTION_PICK, People.CONTENT_URI));
158 new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI));
163 new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI));
168 new Intent(Intent.ACTION_PICK, StructuredPostal.CONTENT_URI))
172 Intent intent = new Intent(Intent.ACTION_PICK); local
183 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
188 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
194 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
200 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
206 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
212 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
218 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
224 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
230 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
236 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
243 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
250 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
257 final Intent intent = new Intent(Intent.ACTION_INSERT); local
263 Intent intent = new Intent(Intent.ACTION_SEARCH); local
270 Intent intent = new Intent(Intent.ACTION_SEARCH); local
277 Intent intent = new Intent(Intent.ACTION_SEARCH); local
283 Intent intent = new Intent(Intent.ACTION_SEARCH); local
289 Intent intent = new Intent(Intent.ACTION_SEARCH); local
298 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED); local
308 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
321 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupWithoutIdUri); local
331 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri); local
343 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
356 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
367 Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local
389 final Intent intent = findArbitraryGroupIntent(Intent.ACTION_EDIT); local
399 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
409 Intent intent = new Intent(Intent.ACTION_VIEW); local
422 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupWithoutIdUri); local
432 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri); local
444 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
457 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
464 final Intent intent = findArbitraryGroupIntent(Intent.ACTION_VIEW); local
533 Intent intent = new Intent(this, ResultActivity.class); local
606 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local
613 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
TestUtil.java 21 import android.content.Intent;
37 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); local
40 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
41 broadcastReceiver.onReceive(context, intent);
49 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); local
50 broadcastReceiver.onReceive(context, intent);
58 Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE); local
68 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); local
79 Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); local
97 Intent intent = new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED); local
    [all...]
  /developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/
UtilityReceiver.java 20 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
36 intent.setClass(context, UtilityService.class);
37 intent.setAction(UtilityService.ACTION_GEOFENCE_TRIGGERED);
38 startWakefulService(context, intent);

Completed in 948 milliseconds

1 2 3 4 5 6 7 8 91011>>