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

1 2 3 4 5 6 7 8 91011>>

  /external/robolectric/src/main/java/android/content/
TestIntentSender.java 4 public Intent intent; field in class:TestIntentSender
  /packages/apps/Browser/src/com/android/browser/
BookmarkSearch.java 20 import android.content.Intent;
33 Intent intent = getIntent(); local
34 if (intent != null) {
35 String action = intent.getAction();
36 if (Intent.ACTION_VIEW.equals(action)) {
37 intent.setClass(this, BrowserActivity.class);
38 startActivity(intent);
  /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/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/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/tests/tests/app/src/android/app/cts/
AliasActivityTest.java 22 import android.content.Intent;
38 Intent intent = new Intent(); local
39 intent.setClass(context, AliasActivityStub.class);
40 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
44 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);
  /developers/samples/android/wearable/wear/Notifications/Application/src/main/java/com/example/android/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/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...]
  /development/samples/AppNavigation/src/com/example/android/appnavigation/app/
ContentViewActivity.java 22 import android.content.Intent;
34 Intent intent = getIntent(); local
35 if (Intent.ACTION_VIEW.equals(intent.getAction())) {
38 } else if (intent.hasExtra(EXTRA_TEXT)) {
40 tv.setText(intent.getStringExtra(EXTRA_TEXT));
  /development/samples/devbytes/telephony/SmsSampleProject/SmsSample/src/main/java/com/example/android/smssample/
Utils.java 20 import android.content.Intent;
56 * Trigger the intent to open the system dialog that asks the user to change the default
61 // This is a new intent which only exists on KitKat
63 Intent intent = new Intent(Intents.ACTION_CHANGE_DEFAULT); local
64 intent.putExtra(Intents.EXTRA_PACKAGE_NAME, context.getPackageName());
65 context.startActivity(intent);
  /development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
SecureActivity.java 20 import android.content.Intent;
32 Intent intent = new Intent(); local
33 intent.setClass(this, PolicySetupActivity.class);
34 intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP |
35 Intent.FLAG_ACTIVITY_CLEAR_TASK);
36 startActivity(intent);
  /development/samples/wearable/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,
  /development/samples/wearable/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);
  /frameworks/base/core/java/android/text/style/
URLSpan.java 20 import android.content.Intent;
60 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
61 intent.putExtra(Browser.EXTRA_APPLICATION_ID, context.getPackageName());
62 context.startActivity(intent);
  /frameworks/base/core/tests/coretests/src/android/app/activity/
RemoteSubActivityScreen.java 20 import android.content.Intent;
37 Intent intent = getIntent(); local
38 intent.setClass(this, SubActivityScreen.class);
42 boolean kill = intent.getBooleanExtra("kill", false);
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppLiveFolder.java 39 import android.content.Intent;
54 final Intent intent = getIntent(); local
55 final String action = intent.getAction();
68 private static Intent createLiveFolder(Context context, Uri uri, String name, int icon) {
69 final Intent intent = new Intent(); local
71 intent.setDataAndNormalize(uri);
72 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_BASE_INTENT, new Intent
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/
ContactsSearchManager.java 20 import android.content.Intent;
56 private static Intent buildIntent(
58 Intent intent = new Intent(); local
59 intent.setData(ContactsContract.Contacts.CONTENT_URI);
60 intent.setAction(UI.FILTER_CONTACTS_ACTION);
62 Intent originalIntent = context.getIntent();
65 intent.putExtras(originalExtras);
67 intent.putExtra(UI.FILTER_TEXT_EXTRA_KEY, initialQuery)
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/widget/
PinnedHeaderUseCaseActivity.java 21 import android.content.Intent;
78 Intent intent = new Intent(); local
79 intent.setComponent(new ComponentName(
82 intent.putExtra("counts", counts);
83 intent.putExtra("names", names);
84 intent.putExtra("headers", headers);
85 intent.putExtra("showIfEmpty", showIfEmpty);
86 intent.putExtra("delays", delays)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/
CallUtil.java 20 import android.content.Intent;
36 * Return an Intent for making a phone call. Scheme (e.g. tel, sip) will be determined
39 public static Intent getCallIntent(String number) {
44 * Return an Intent for making a phone call. A given Uri will be used as is (without any
47 public static Intent getCallIntent(Uri uri) {
55 public static Intent getCallIntent(String number, String callOrigin) {
62 public static Intent getCallIntent(String number, PhoneAccountHandle accountHandle) {
69 public static Intent getCallIntent(Uri uri, PhoneAccountHandle accountHandle) {
76 public static Intent getCallIntent(
86 public static Intent getCallIntent
125 final Intent intent = new Intent(Intent.ACTION_CALL, uri); local
    [all...]
  /packages/apps/Mms/tests/src/com/android/mms/util/
SendIntentTests.java 19 import android.content.Intent;
26 * Unit tests for the com.android.mms.intent.action.SENDTO_NO_CONFIRMATION intent.
35 * This tests verifies that we have to have android.permission.SEND_SMS to send this intent.
41 Intent intent = new Intent("com.android.mms.intent.action.SENDTO_NO_CONFIRMATION", uri); local
42 intent.putExtra(Intent.EXTRA_TEXT, "This is a test")
    [all...]

Completed in 5097 milliseconds

1 2 3 4 5 6 7 8 91011>>