/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/build/prebuilts/gradle/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/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...] |
/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/browseable/Notifications/Application/src/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/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/browseable/ShareActionProvider/src/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...] |
/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);
|
/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);
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
ScriptsLiveFolder.java | 21 import android.content.Intent; 22 import android.content.Intent.ShortcutIconResource; 38 final Intent intent = getIntent(); local 39 final String action = intent.getAction(); 48 private Intent createLiveFolder(Context context, Uri uri, String name, int icon) { 49 final Intent intent = new Intent(); local 50 intent.setData(uri) [all...] |
/frameworks/base/core/java/android/app/timezone/ |
RulesUpdaterContract.java | 20 import android.content.Intent; 49 * The action of the intent that the Android system will broadcast. The intent will be targeted 54 "com.android.intent.action.timezone.TRIGGER_RULES_UPDATE_CHECK"; 61 * {@link #ACTION_TRIGGER_RULES_UPDATE_CHECK} intent has been processed. 64 "com.android.intent.extra.timezone.CHECK_TOKEN"; 67 * Creates an intent that would trigger a time zone rules update check. 69 public static Intent createUpdaterIntent(String updaterPackageName) { 70 Intent intent = new Intent(RulesUpdaterContract.ACTION_TRIGGER_RULES_UPDATE_CHECK) local 83 Intent intent = createUpdaterIntent(updaterAppPackageName); local [all...] |
/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);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
ShowInstallAppNotificationReceiver.java | 21 import android.content.Intent; 30 /** Returns intent used to send a broadcast to this receiver */ 31 public static Intent get(Context context, String pkgName) { 32 Intent intent = new Intent(context, ShowInstallAppNotificationReceiver.class); local 33 intent.putExtra(EXTRA_PACKAGE_NAME, pkgName); 34 return intent; 38 public void onReceive(Context context, Intent intent) { [all...] |
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/test/ |
FragmentResultActivity.java | 19 import android.content.Intent; 34 Intent intent = new Intent(); local 35 intent.putExtra(EXTRA_RESULT_CONTENT, result); 36 setResult(resultCode, intent);
|
/frameworks/support/viewpager2/src/androidTest/java/androidx/viewpager2/widget/swipe/ |
BaseActivity.java | 21 import android.content.Intent; 51 public static Intent createIntent(int totalPages) { 52 Intent intent = new Intent(); local 53 intent.putExtra(ARG_TOTAL_PAGES, totalPages); 54 return intent;
|
/packages/apps/Contacts/src/com/android/contacts/compat/telecom/ |
TelecomManagerCompat.java | 19 import android.content.Intent; 31 * the specified intent. 33 * @param activity {@link Activity} used to start another activity for the given intent 35 * @param intent the intent for the call 38 @Nullable TelecomManager telecomManager, @Nullable Intent intent) { 39 if (activity == null || telecomManager == null || intent == null) { 43 telecomManager.placeCall(intent.getData(), intent.getExtras()) [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
CallLogNotificationsActivity.java | 19 import android.content.Intent; 26 * Provides operations for managing call-related notifications. This is used to forward intent 51 Intent intent = getIntent(); local 57 String action = intent.getAction(); 62 intent.getStringExtra(EXTRA_MISSED_CALL_NUMBER), intent.getData()); 65 LogUtil.d("CallLogNotificationsActivity.onCreate", "could not handle: " + intent);
|
/packages/apps/Dialer/java/com/android/dialer/blockreportspam/ |
ShowBlockReportSpamDialogNotifier.java | 20 import android.content.Intent; 40 Intent intent = new Intent(); local 41 intent.setAction( 45 intent, ShowBlockReportSpamDialogReceiver.EXTRA_DIALOG_INFO, blockReportSpamDialogInfo); 47 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); 55 Intent intent = new Intent(); local [all...] |
/packages/apps/Dialer/java/com/android/dialer/calllog/notifier/ |
RefreshAnnotatedCallLogNotifier.java | 20 import android.content.Intent; 77 Intent intent = new Intent(); local 78 intent.setAction(IntentNames.ACTION_REFRESH_ANNOTATED_CALL_LOG); 79 intent.putExtra(IntentNames.EXTRA_CHECK_DIRTY, checkDirty); 81 LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent); 94 Intent intent = new Intent(); local [all...] |