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

1 2 3 4 5 6 7 8 91011>>

  /external/robolectric/v1/src/main/java/android/content/
TestIntentSender.java 4 public Intent intent; field in class:TestIntentSender
  /frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
ServiceIntentSender.java 21 import android.content.Intent;
24 * Sends intent to MtpDocumentsService.
34 final Intent intent = new Intent(MtpDocumentsService.ACTION_UPDATE_NOTIFICATION); local
35 intent.setComponent(new ComponentName(mContext, MtpDocumentsService.class));
36 mContext.startService(intent);
  /cts/tests/tests/alarmclock/service/src/android/alarmclock/service/
VoiceInteractionMain.java 21 import android.content.Intent;
32 Intent intent = new Intent(); local
35 intent.putExtra(Utils.TESTCASE_TYPE, testCaseType);
36 intent.setComponent(new ComponentName(this, MainInteractionService.class));
37 ComponentName serviceName = startService(intent);
  /cts/tests/tests/assist/service/src/android/voiceinteraction/service/
DelayedAssistantActivity.java 21 import android.content.Intent;
32 Intent intent = new Intent(); local
33 intent.setComponent(new ComponentName(this, MainInteractionService.class));
34 intent.putExtra(Utils.EXTRA_REGISTER_RECEIVER, true);
35 intent.putExtra(Utils.TESTCASE_TYPE, getIntent().getStringExtra(Utils.TESTCASE_TYPE));
36 intent.putExtra(Utils.DISPLAY_WIDTH_KEY,
38 intent.putExtra(Utils.DISPLAY_HEIGHT_KEY,
41 ComponentName serviceName = startService(intent);
    [all...]
DisableContextActivity.java 20 import android.content.Intent;
36 Intent intent = new Intent(); local
37 intent.setComponent(new ComponentName(this, MainInteractionService.class));
40 startService(intent);
  /cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
VoiceInteractionMain.java 20 import android.content.Intent;
33 Intent intent = new Intent(); local
36 intent.putExtra(BroadcastUtils.TESTCASE_TYPE, testCaseType);
37 intent.setComponent(new ComponentName(this, MainInteractionService.class));
38 ComponentName serviceName = startService(intent);
  /frameworks/support/customtabs/tests/src/android/support/customtabs/
CustomTabsIntentTest.java 19 import android.content.Intent;
40 Intent intent = customTabsIntent.intent; local
41 assertNotNull(intent);
44 assertEquals(Intent.ACTION_VIEW, intent.getAction());
45 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_SESSION));
47 assertNull(intent.getExtras().getBinder(CustomTabsIntent.EXTRA_SESSION));
49 assertNull(intent.getComponent())
55 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent; local
64 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(colorId).build().intent; local
    [all...]
  /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...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
StartedMatcher.java 6 import android.content.Intent;
14 private final Intent expectedIntent;
18 public StartedMatcher(Intent expectedIntent) {
39 message = "null intent (did you mean to expect null?)";
46 Intent actualStartedIntent = shadowOf((ContextWrapper) actualContext).getNextStartedActivity();
67 public static Intent createIntent(Class<? extends Activity> activityClass, String extraKey, String extraValue) {
68 Intent intent = createIntent(activityClass); local
69 intent.putExtra(extraKey, extraValue);
70 return intent;
74 Intent intent = createIntent(activityClass); local
85 Intent intent = new Intent(); local
    [all...]
  /packages/apps/Settings/src/com/android/settings/
SetupChooseLockPassword.java 21 import android.content.Intent;
35 public static Intent createIntent(Context context, int quality,
38 Intent intent = ChooseLockPassword.createIntent(context, quality, minLength, local
40 intent.setClass(context, SetupChooseLockPassword.class);
41 intent.putExtra(EXTRA_PREFS_SHOW_BUTTON_BAR, false);
42 return intent;
45 public static Intent createIntent(Context context, int quality,
47 Intent intent = ChooseLockPassword.createIntent(context, quality, minLength, maxLength local
56 Intent intent = ChooseLockPassword.createIntent(context, quality, minLength, maxLength, local
    [all...]
WallpaperSuggestionActivity.java 20 import android.content.Intent;
28 Intent intent = new Intent() local
31 .addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT);
32 startActivity(intent);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
PackageIntentReceiver.java 23 import android.content.Intent;
28 * Package intent receiver that invokes {@link ContactsProvider2#onPackageChanged} to update
34 public void onReceive(Context context, Intent intent) {
35 Uri packageUri = intent.getData();
43 handlePackageChangedForVoicemail(context, intent);
46 private void handlePackageChangedForVoicemail(Context context, Intent intent) {
47 if (intent.getAction().equals(Intent.ACTION_PACKAGE_REMOVED) &
    [all...]
  /packages/apps/Gallery2/src/com/android/camera/
CameraActivity.java 21 import android.content.Intent;
29 Intent intent = IntentHelper.getCameraIntent(CameraActivity.this); local
33 intent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
34 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
35 startActivity(intent);
  /packages/apps/KeyChain/src/com/android/keychain/
KeyChainBroadcastReceiver.java 6 import android.content.Intent;
10 public void onReceive(final Context context, final Intent intent) {
11 intent.setClass(context, KeyChainService.class);
12 context.startService(intent);
  /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...]
  /cts/tests/app/src/android/app/cts/
AliasActivityTest.java 23 import android.content.Intent;
39 Intent intent = new Intent(); local
40 intent.setClass(context, AliasActivityStub.class);
41 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
45 context.startActivity(intent);
  /cts/tests/tests/opengl/src/android/opengl/cts/
ProgramTest.java 18 import android.content.Intent;
31 Intent intent = new Intent(); local
32 intent.putExtra(OpenGLES20NativeActivityOne.EXTRA_VIEW_TYPE, viewType);
33 intent.putExtra(OpenGLES20NativeActivityOne.EXTRA_VIEW_INDEX, viewIndex);
34 setActivityIntent(intent);
  /cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
VoiceInteractionMain.java 20 import android.content.Intent;
35 Intent intent = new Intent(); local
36 intent.setComponent(new ComponentName(this, MainInteractionService.class));
37 ComponentName serviceName = startService(intent);
  /developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
NotificationUtil.java 21 import android.content.Intent;
30 Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE) local
32 intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId));
33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,
  /developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
MainActivity.java 20 import android.content.Intent;
37 Intent intent = new Intent(getApplicationContext(), RecipeActivity.class); local
38 intent.putExtra(Constants.RECIPE_NAME_TO_LOAD, itemName);
39 startActivity(intent);
  /developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /developers/samples/android/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/
NotificationUtil.java 21 import android.content.Intent;
30 Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE) local
32 intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId));
33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,
  /developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
MainActivity.java 20 import android.content.Intent;
37 Intent intent = new Intent(getApplicationContext(), RecipeActivity.class); local
38 intent.putExtra(Constants.RECIPE_NAME_TO_LOAD, itemName);
39 startActivity(intent);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
IntentActivityFlags.java 10 import android.content.Intent;
18 * Example of various Intent flags to modify the activity stack.
35 * This creates an array of Intent objects representing the back stack
39 private Intent[] buildIntentsToViewsLists() {
44 Intent[] intents = new Intent[3];
47 // This is a convenient way to make the proper Intent to launch and
49 intents[0] = Intent.makeRestartActivityTask(new ComponentName(this,
52 Intent intent = new Intent(Intent.ACTION_MAIN) local
    [all...]

Completed in 1180 milliseconds

1 2 3 4 5 6 7 8 91011>>