/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);
|
/developers/samples/android/wearable/wear/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);
|
/development/samples/MultiWindow/src/com/example/android/multiwindow/ |
LaunchingAdjacentActivity.java | 20 import android.content.Intent; 53 Intent intent = new Intent("android.settings.SETTINGS"); local 54 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK 55 | Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT); 56 startActivity(intent); 60 Intent intent = newAdjacentActivityIntent() local 66 Intent intent = newAdjacentActivityIntent(); local 72 Intent intent = newAdjacentActivityIntent(); local 82 Intent intent = new Intent(this, LaunchingAdjacentActivity.class); local [all...] |
/development/samples/browseable/XYZTouristAttractions/Application/src/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);
|
/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);
|
/frameworks/base/core/java/android/app/admin/ |
DeviceAdminReceiver.java | 29 import android.content.Intent; 41 * class provides a convenience for interpreting the raw intent actions 45 * {@link BroadcastReceiver#onReceive(Context, Intent) BroadcastReceiver.onReceive()} 79 * handle this in {@link DeviceAdminReceiver#onEnabled(Context, Intent)}. To be 94 * {@link #EXTRA_DISABLE_WARNING} in the result Intent. If not set, 115 * handle this in {@link DeviceAdminReceiver#onDisabled(Context, Intent)}. Note 118 * its intent filter. 131 * handle this in {@link DeviceAdminReceiver#onPasswordChanged(Context, Intent, UserHandle)}. 148 * handle this in {@link DeviceAdminReceiver#onPasswordFailed(Context, Intent, UserHandle)}. 162 * handle this in {@link DeviceAdminReceiver#onPasswordSucceeded(Context, Intent, UserHandle)} [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/TvSettings/Settings/src/com/android/tv/settings/util/ |
ThemeHelper.java | 19 import android.content.Intent; 27 * Returns true if the given intent is from the setup wizard. 29 public static boolean fromSetupWizard(Intent intent) { 30 return intent.getBooleanExtra(EXTRA_FROM_SETUP_WIZARD, false); 36 public static int getThemeResource(Intent intent) { 37 return getThemeResource(fromSetupWizard(intent));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/ |
SetupActivity.java | 20 import android.content.Intent; 27 final Intent intent = new Intent(); local 28 intent.setClass(this, SetupWizardActivity.class); 29 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP 30 | Intent.FLAG_ACTIVITY_NEW_TASK); 31 startActivity(intent);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
IntentUtils.java | 19 import android.content.Intent; 32 public static Intent getInputLanguageSelectionIntent(final String inputMethodId, 36 final Intent intent = new Intent(action); local 38 intent.putExtra(EXTRA_INPUT_METHOD_ID, inputMethodId); 41 intent.setFlags(flagsForSubtypeSettings); 43 return intent;
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/ |
LaunchingActivity.java | 20 import android.content.Intent; 24 * Activity that launches another activities when new intent is received. 28 protected void onNewIntent(Intent intent) { 29 super.onNewIntent(intent); 30 ActivityLauncher.launchActivityFromExtras(this, intent.getExtras());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
ActivityStarterDelegate.java | 18 import android.content.Intent; 31 public void startPendingIntentDismissingKeyguard(PendingIntent intent) { 33 mActualStarter.startPendingIntentDismissingKeyguard(intent); 37 public void startActivity(Intent intent, boolean dismissShade) { 39 mActualStarter.startActivity(intent, dismissShade); 43 public void startActivity(Intent intent, boolean onlyProvisioned, boolean dismissShade) { 45 mActualStarter.startActivity(intent, onlyProvisioned, dismissShade); 49 public void startActivity(Intent intent, boolean dismissShade, Callback callback) [all...] |
/frameworks/base/tests/Assist/src/com/android/test/assist/ |
AssistInteractionService.java | 19 import android.content.Intent; 26 Intent intent = new Intent(this, AboveKeyguardActivity.class); local 27 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 28 startActivity(intent);
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
AssistProxyActivity.java | 20 import android.content.Intent; 29 Intent intent = new Intent(this, MainInteractionService.class); local 30 intent.setAction(Intent.ACTION_ASSIST); 31 startService(intent);
|
/packages/apps/TV/src/com/android/tv/ |
TvActivity.java | 20 import android.content.Intent; 29 Intent intent = new Intent(this, MainActivity.class); local 30 intent.putExtra(Utils.EXTRA_KEY_FROM_LAUNCHER, true); 31 startActivity(intent);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
EventHandler.java | 21 import android.content.Intent; 25 * Receives a intent broadcast. 36 * Also @see {@link BroadcastReceiver#onReceive(Context, Intent)} 39 * @param intent the intent that was broadcast. 42 public void onReceive(final Context context, final Intent intent) { 43 intent.setClass(context, DictionaryService.class); 44 context.startService(intent);
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
WizardManagerHelperTest.java | 26 import android.content.Intent; 48 final Intent intent = new Intent("test.intent.ACTION"); local 49 intent.putExtra("scriptUri", "android-resource://test-script"); 50 intent.putExtra("actionId", "test_action_id"); 51 intent.putExtra("theme", "test_theme"); 52 intent.putExtra("ignoreExtra", "poof"); // extra is ignored because it's not known 54 final Intent data = new Intent() 76 final Intent intent = new Intent(); local 84 final Intent intent = new Intent(); local 92 final Intent intent = new Intent(); local 100 final Intent intent = new Intent(); local 108 final Intent intent = new Intent(); local 116 final Intent intent = new Intent(); local 124 final Intent intent = new Intent(); local 132 final Intent intent = new Intent(); local 142 final Intent intent = new Intent(); local 152 final Intent intent = new Intent(); local 162 final Intent intent = new Intent(); local 172 final Intent intent = new Intent(); local 182 final Intent intent = new Intent(); local 255 Intent intent = new Intent(); local 273 Intent intent = new Intent("test.intent.action"); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EditorIntents.java | 20 import android.content.Intent; 42 * Returns an Intent to start the {@link ContactEditorSpringBoardActivity} for an 45 public static Intent createEditContactIntent(Context context, Uri uri, 47 final Intent intent = new Intent(Intent.ACTION_EDIT, uri, context, local 49 putMaterialPalette(intent, materialPalette); 50 putPhotoId(intent, photoId); 51 return intent; 56 final Intent intent = createEditContactIntent(context, uri, materialPalette, local 68 final Intent intent = new Intent(Intent.ACTION_EDIT, uri, context, local 83 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI, local 97 final Intent intent = new Intent(Intent.ACTION_EDIT, uri, context, local [all...] |
/frameworks/support/media-compat-test-client/tests/src/android/support/mediacompat/client/util/ |
IntentUtil.java | 26 import android.content.Intent; 40 Intent intent = createIntent(SERVICE_RECEIVER_COMPONENT_NAME, methodId, arg); local 41 intent.setAction(ACTION_CALL_MEDIA_BROWSER_SERVICE_METHOD); 43 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); 45 context.sendBroadcast(intent); 48 private static Intent createIntent(ComponentName componentName, int methodId, Object arg) { 49 Intent intent = new Intent() local [all...] |
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/service/ |
MessagingService.java | 20 import android.content.Intent; 42 protected void onHandleIntent(Intent intent) { 43 if (intent != null) { 44 String intentAction = intent.getAction(); 49 MessagingReceiver.completeWakefulIntent(intent); 54 MessagingReceiver.completeWakefulIntent(intent);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
ClearTop.java | 20 import android.content.Intent; 34 Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK) local 36 startActivity(intent); 40 public void onNewIntent(Intent intent) { 41 //Log.i("foo", "New intent in " + this + ": " + intent); 42 if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) [all...] |
/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/Email/provider_src/com/android/email/ |
EmailIntentService.java | 18 import android.content.Intent; 36 protected void onHandleIntent(final Intent intent) { 37 super.onHandleIntent(intent); 39 if (UIProvider.ACTION_UPDATE_NOTIFICATION.equals(intent.getAction())) { 43 nc.handleUpdateNotificationIntent(this, intent); 47 LogUtils.v(LOG_TAG, "Handling intent %s", intent);
|
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/ |
SideChannel.java | 21 import android.content.Intent; 42 Intent intent = new Intent(ACTION_TRIGGER_CLEANUP); local 43 intent.setComponent(MIDDLEWARE_RECEIVER); 44 context.sendBroadcast(intent); 48 Intent intent = new Intent(ACTION_REQUEST_SPURIOUS_TEMP_FILES); local 49 intent.putExtra(EXTRA_SERVICE_INFO, serviceInfo) 55 Intent intent = new Intent(ACTION_DELAY_DOWNLOAD); local [all...] |
/cts/hostsidetests/incident/apps/storagedapp/src/com/android/server/cts/storaged/ |
StoragedTest.java | 19 import android.content.Intent; 43 Intent intent = new Intent(); local 44 intent.setClass(mContext, SimpleIOActivity.class); 45 intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | 46 Intent.FLAG_ACTIVITY_NEW_TASK); 47 mContext.startActivity(intent); 53 Intent intent = new Intent() local [all...] |