/development/samples/ApiDemos/src/com/example/android/apis/app/ |
Forwarding.java | 24 import android.content.Intent; 78 Intent intent = new Intent(); 79 intent.setClass(Forwarding.this, ForwardTarget.class); 80 startActivity(intent);
|
ReorderFour.java | 22 import android.content.Intent; 41 Intent intent = new Intent(ReorderFour.this, ReorderTwo.class); 42 intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); 43 startActivity(intent);
|
/development/samples/browseable/RecipeAssistant/Application/src/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/devbytes/telephony/SmsSampleProject/app/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);
|
/external/sl4a/Common/src/com/googlecode/android_scripting/trigger/ |
ScriptTrigger.java | 20 import android.content.Intent; 43 Intent intent = IntentBuilders.buildStartInBackgroundIntent(mScript); local 45 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 46 context.startActivity(intent);
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/locale/ |
LocaleReceiver.java | 21 import android.content.Intent; 32 public void onReceive(Context context, Intent intent) { 35 new File(intent.getBundleExtra(com.twofortyfouram.locale.platform.Intent.EXTRA_BUNDLE) 38 Intent launchIntent; 39 if (intent.getBooleanExtra(Constants.EXTRA_LAUNCH_IN_BACKGROUND, false)) { 44 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
UsbIntentReceiver.java | 21 import android.content.Intent; 30 public void onReceive(Context context, Intent intent) { 31 final UsbDevice device = intent.getExtras().getParcelable(UsbManager.EXTRA_DEVICE); 32 switch (intent.getAction()) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/ |
CurrentUserTrackerTest.java | 19 import android.content.Intent; 63 Intent intent = new Intent(Intent.ACTION_USER_SWITCHED); local 64 intent.putExtra(Intent.EXTRA_USER_HANDLE, 1); 65 mReceiver.onReceive(getContext(), intent); local
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
DrmReceiver.java | 21 import android.content.Intent; 34 public void onReceive(Context context, Intent intent) { 40 body = intent.getByteArrayExtra("data"); 41 header = intent.getByteArrayExtra("header");
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
WizardManagerHelper.java | 20 import android.content.Intent; 61 * Passed in a setup wizard intent as {@link #EXTRA_THEME}. This is the dark variant of the 67 * Passed in a setup wizard intent as {@link #EXTRA_THEME}. This is the default theme used in 73 * Passed in a setup wizard intent as {@link #EXTRA_THEME}. This is the dark variant of the 85 * Passed in a setup wizard intent as {@link #EXTRA_THEME}. This is the default theme used in 97 * Get an intent that will invoke the next step of setup wizard. 99 * @param originalIntent The original intent that was used to start the step, usually via 102 * @return A new intent that can be used with 103 * {@link android.app.Activity#startActivityForResult(Intent, int)} to start the next 106 public static Intent getNextIntent(Intent originalIntent, int resultCode) 122 Intent intent = new Intent(ACTION_NEXT); local [all...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
BottomSheetBehaviorActivity.java | 19 import android.content.Intent; 47 Intent intent = getIntent(); local 48 if (intent != null) { 49 int initialState = intent.getIntExtra(EXTRA_INITIAL_STATE, -1);
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
VideoActivityWithDetailedCard.java | 22 import android.content.Intent; 50 protected void onNewIntent(Intent intent) { 51 super.onNewIntent(intent); 52 // This part is necessary to ensure that getIntent returns the latest intent when 53 // VideoExampleActivity is started. By default, getIntent() returns the initial intent 55 // to update this intent when for example, user clicks on another video when the currently 57 setIntent(intent);
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
GuidedStepFragmentTestBase.java | 23 import android.content.Intent; 115 Intent intent = new Intent(); local 116 intent.putExtra(GuidedStepFragmentTestActivity.EXTRA_TEST_NAME, firstTestName); 117 return activityTestRule.launchActivity(intent); 122 Intent intent = new Intent(); local 123 intent.putExtra(GuidedStepFragmentTestActivity.EXTRA_TEST_NAME, firstTestName) 130 Intent intent = new Intent(); local [all...] |
GuidedStepSupportFragmentTestBase.java | 26 import android.content.Intent; 118 Intent intent = new Intent(); local 119 intent.putExtra(GuidedStepSupportFragmentTestActivity.EXTRA_TEST_NAME, firstTestName); 120 return activityTestRule.launchActivity(intent); 125 Intent intent = new Intent(); local 126 intent.putExtra(GuidedStepSupportFragmentTestActivity.EXTRA_TEST_NAME, firstTestName) 133 Intent intent = new Intent(); local [all...] |
/packages/apps/Browser2/src/org/chromium/webview_shell/ |
JankActivity.java | 8 import android.content.Intent; 41 private static String getUrlFromIntent(Intent intent) { 42 return intent != null ? intent.getDataString() : null;
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
EditEventActivity.java | 25 import android.content.Intent; 95 Intent intent = null; local 97 intent = getIntent(); 101 mEventColor, false, intent); 115 Intent intent = getIntent(); local 116 return (ArrayList<ReminderEntry>) intent.getSerializableExtra(EXTRA_EVENT_REMINDERS); 122 Intent intent = getIntent() local [all...] |
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
LegalInfoLineItem.java | 20 import android.content.Intent; 56 Intent intent = new Intent(); local 57 intent.setAction("android.settings.WEBVIEW_LICENSE"); 58 mContext.startActivity(intent);
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
QuickContactBroadcastReceiver.java | 21 import android.content.Intent; 29 * intent receiver is to disable the animation that RemoveViews typically do, which interfere 34 public void onReceive(Context context, Intent intent) { 35 final Uri dataUri = intent.getData(); 36 final Intent newIntent = new Intent(QuickContact.ACTION_QUICK_CONTACT); 37 newIntent.setSourceBounds(intent.getSourceBounds()); 38 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK) [all...] |
ResolveCache.java | 21 import android.content.Intent; 79 final IntentFilter filter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED); 80 filter.addAction(Intent.ACTION_PACKAGE_REPLACED); 81 filter.addAction(Intent.ACTION_PACKAGE_REMOVED); 82 filter.addAction(Intent.ACTION_PACKAGE_CHANGED); 98 public void onReceive(Context context, Intent intent) { 121 * Get the {@link Entry} best associated with the given mimetype and intent, 124 protected Entry getEntry(String mimeType, Intent intent) { [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
ContactPhotoUtils.java | 22 import android.content.Intent; 123 public static void addCropExtras(Intent intent, int photoSize) { 124 intent.putExtra("crop", "true"); 125 intent.putExtra("scale", true); 126 intent.putExtra("scaleUpIfNeeded", true); 127 intent.putExtra("aspectX", 1); 128 intent.putExtra("aspectY", 1); 129 intent.putExtra("outputX", photoSize); 130 intent.putExtra("outputY", photoSize) [all...] |
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
SubscriptionInfoHelper.java | 18 import android.content.Intent; 32 // Extra on intent containing the id of a subscription. 35 // Extra on intent containing the label of a subscription. 44 /** Instantiates the helper, by extracting the subscription id and label from the intent. */ 45 public SubscriptionInfoHelper(Context context, Intent intent) { 47 mSubId = intent.getIntExtra(SUB_ID_EXTRA, NO_SUB_ID); 48 mSubLabel = intent.getStringExtra(SUB_LABEL_EXTRA);
|
/packages/apps/Dialer/java/com/android/voicemail/impl/configui/ |
VoicemailSecretCodeActivity.java | 19 import android.content.Intent; 46 Intent intent = new Intent(VoicemailContract.ACTION_SYNC_VOICEMAIL); local 47 intent.setPackage(getPackageName()); 48 sendBroadcast(intent);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PreloadReceiver.java | 21 import android.content.Intent; 35 public void onReceive(Context context, Intent intent) { 39 String name = intent.getStringExtra(EXTRA_WORKSPACE_NAME); 44 intent.getBooleanExtra(EXTRA_OVERRIDE_PREVIOUS, false);
|
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
ShortcutKey.java | 4 import android.content.Intent; 29 public static ShortcutKey fromIntent(Intent intent, UserHandle user) { 30 String shortcutId = intent.getStringExtra( 32 return new ShortcutKey(intent.getPackage(), user, shortcutId);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
NoConfirmationSmsSendService.java | 20 import android.content.Intent; 37 * Respond to a special intent and send an SMS message without the user's intervention, unless 38 * the intent extra "showUI" is true. 50 // Intent should be redelivered if the process gets killed before completing the job. 55 protected void onHandleIntent(final Intent intent) { 60 final String action = intent.getAction(); 68 final Bundle extras = intent.getExtras(); 76 // Get all possible extras from intent 78 intent.getStringExtra(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID) [all...] |