/packages/apps/Settings/src/com/android/settings/fingerprint/ |
SetupFingerprintEnrollEnrolling.java | 19 import android.content.Intent; 27 protected Intent getFinishIntent() { 28 final Intent intent = new Intent(this, SetupFingerprintEnrollFinish.class); local 29 SetupWizardUtils.copySetupExtras(getIntent(), intent); local 30 return intent;
|
/packages/apps/Settings/tests/unit/src/com/android/settings/dream/ |
DreamSettingsLaunchTest.java | 20 import android.content.Intent; 35 Intent intent = new Intent(Settings.ACTION_DREAM_SETTINGS); local 37 context.startActivity(intent);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/privacy/ |
PrivacyActivity.java | 21 import android.content.Intent; 35 final Intent intent = new Intent(this, ResetActivity.class); local 36 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);
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarProviderBroadcastReceiverTest.java | 22 import android.content.Intent; 36 final Intent intent = CalendarAlarmManager.getCheckNextAlarmIntent(getContext(), local 38 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); 43 getContext().sendOrderedBroadcast(intent, null, new BroadcastReceiver() { 45 public void onReceive(Context context, Intent intent) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
EnterprisePrivacyInfoOnlyTestActivity.java | 19 import android.content.Intent; 42 final Intent intent = getIntent(); local 43 if (!intent.hasExtra(EXTRA_ID) 44 || !intent.hasExtra(EXTRA_TITLE) 45 || !intent.hasExtra(EXTRA_INFO)) { 47 "Intent must have EXTRA_ID, EXTRA_TITLE & EXTRA_INFO"); 50 mTestId = intent.getStringExtra(EXTRA_ID); 51 setTitle(intent.getIntExtra(EXTRA_TITLE, -1)); 54 info.setText(intent.getIntExtra(EXTRA_INFO, -1)) [all...] |
OrganizationInfoTestActivity.java | 19 import android.content.Intent; 58 Intent intent = new Intent(ByodHelperActivity.ACTION_SET_ORGANIZATION_INFO); local 59 intent.putExtra(EXTRA_ORGANIZATION_NAME, organizationNameEditText.getText().toString()); 61 intent.putExtra(EXTRA_ORGANIZATION_COLOR, mOrganizationColor); 63 startActivity(intent); 65 Intent intent = new Intent(ByodHelperActivity.ACTION_LAUNCH_CONFIRM_WORK_CREDENTIALS) local [all...] |
/cts/hostsidetests/devicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/ |
MyInteractionSessionService.java | 20 import android.content.Intent; 47 Intent intent = new Intent(ACTION_HANDLE_SCREENSHOT); local 48 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); 49 intent.putExtra(KEY_HAS_SCREENSHOT, screenshot != null); 50 getContext().sendBroadcast(intent);
|
/cts/tests/jank/src/android/jank/cts/ui/ |
CtsDeviceJankUi.java | 18 import android.content.Intent; 41 Intent intent = new Intent(Intent.ACTION_MAIN); local 42 intent.setComponent(new ComponentName(PACKAGE, CLASS)); 43 intent.putExtra("num_elements", NUM_ELEMENTS); 44 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 45 getInstrumentation().getTargetContext().startActivity(intent); [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
FaceDetectorTest.java | 22 import android.content.Intent; 35 Intent intent = new Intent(); local 36 intent.setClass(getInstrumentation().getTargetContext(), FaceDetectorStub.class); 37 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 38 intent.putExtra(FaceDetectorStub.IMAGE_ID, R.drawable.faces); 39 mActivity = (FaceDetectorStub) getInstrumentation().startActivitySync(intent);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreIntentsTest.java | 19 import android.content.Intent; 32 public void assertCanBeHandled(Intent intent) { 34 .getPackageManager().queryIntentActivities(intent, 0); 36 assertTrue("No ResolveInfo found for " + intent.toString(), 41 Intent intent = new Intent(Intent.ACTION_PICK); local 42 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI) 47 Intent intent = new Intent(Intent.ACTION_PICK); local 53 Intent intent = new Intent(Intent.ACTION_PICK); local 59 Intent intent = new Intent(Intent.ACTION_VIEW); local 65 Intent intent = new Intent(Intent.ACTION_VIEW); local 81 Intent intent = new Intent(Intent.ACTION_VIEW); local 99 Intent intent = new Intent(Intent.ACTION_VIEW); local 117 Intent intent = new Intent(Intent.ACTION_VIEW); local [all...] |
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
SchedulerHelper.java | 21 import android.content.Intent; 52 Intent intent = new Intent(context, MockIncomingMessageReceiver.class); local 53 intent.setAction(Constants.ACTION_RECEIVE_MESSAGE); 54 intent.putExtra(Constants.EXTRA_CHAT, chat.getId()); 55 intent.putExtra(Constants.EXTRA_MESSAGE, message.getId()); 57 return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
|
/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/ |
DetailActivity.java | 22 import android.content.Intent; 42 Intent intent = getLaunchIntent(activity, attraction); local 46 ActivityCompat.startActivity(activity, intent, options.toBundle()); 48 activity.startActivity(intent); 52 public static Intent getLaunchIntent(Context context, String attraction) { 53 Intent intent = new Intent(context, DetailActivity.class); local 54 intent.putExtra(EXTRA_ATTRACTION, attraction) [all...] |
/developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
SchedulerHelper.java | 21 import android.content.Intent; 52 Intent intent = new Intent(context, MockIncomingMessageReceiver.class); local 53 intent.setAction(Constants.ACTION_RECEIVE_MESSAGE); 54 intent.putExtra(Constants.EXTRA_CHAT, chat.getId()); 55 intent.putExtra(Constants.EXTRA_MESSAGE, message.getId()); 57 return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/ |
DetailActivity.java | 22 import android.content.Intent; 42 Intent intent = getLaunchIntent(activity, attraction); local 46 ActivityCompat.startActivity(activity, intent, options.toBundle()); 48 activity.startActivity(intent); 52 public static Intent getLaunchIntent(Context context, String attraction) { 53 Intent intent = new Intent(context, DetailActivity.class); local 54 intent.putExtra(EXTRA_ATTRACTION, attraction) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ProcessText.java | 8 import android.content.Intent; 23 CharSequence text = getIntent().getCharSequenceExtra(Intent.EXTRA_PROCESS_TEXT); 25 getIntent().getBooleanExtra(Intent.EXTRA_PROCESS_TEXT_READONLY, false); 46 Intent intent = getIntent(); local 47 intent.putExtra(Intent.EXTRA_PROCESS_TEXT, edit.getText()); 48 setResult(RESULT_OK, intent);
|
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/ |
MyReceiver.java | 22 import android.content.Intent; 32 public void onReceive(Context context, Intent intent) { 33 Log.i(TAG, "onReceive: " + intent); 34 if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) { 38 } else if (ACTION_PIN_REQUEST_ACCEPTED.equals(intent.getAction())) { 45 final Intent intent = new Intent(ACTION_PIN_REQUEST_ACCEPTED) local [all...] |
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/ |
DetailActivity.java | 22 import android.content.Intent; 42 Intent intent = getLaunchIntent(activity, attraction); local 46 ActivityCompat.startActivity(activity, intent, options.toBundle()); 48 activity.startActivity(intent); 52 public static Intent getLaunchIntent(Context context, String attraction) { 53 Intent intent = new Intent(context, DetailActivity.class); local 54 intent.putExtra(EXTRA_ATTRACTION, attraction) [all...] |
/device/google/cuttlefish_common/guest/monitoring/vsoc_service/java/com/android/google/gce/gceservice/ |
LocationServicesManager.java | 19 import android.content.Intent; 51 Intent intent = new Intent(); local 52 intent.setAction(ACTION_LOCATION_SERVICES_CONSENT_INTENT); 53 intent.setFlags(intent.getFlags() | 54 Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); 55 intent.putExtra(EXTRA_LOCATION_SERVICES_CONSENT_DISABLE, false) [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/ |
ComponentController.java | 3 import android.content.Intent; 16 protected Intent intent; field in class:ComponentController 21 public ComponentController(T component, Intent intent) { 23 this.intent = intent; 41 public Intent getIntent() { 42 Intent intent = this.intent == null ? new Intent(RuntimeEnvironment.application, component.getClass()) : this.in (…) local [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/ |
IntentBuilders.java | 22 import android.content.Intent; 37 public static Intent buildTriggerServiceIntent() { 38 Intent intent = new Intent(); local 39 intent.setComponent(Constants.TRIGGER_SERVICE_COMPONENT_NAME); 40 return intent; 44 * Builds an intent that will launch a script in the background. 48 * @return the intent that will launch the script 50 public static Intent buildStartInBackgroundIntent(File script) 52 Intent intent = new Intent(); local 68 Intent intent = new Intent(); local 84 Intent intent = new Intent(); local 102 Intent intent = new Intent(); local 120 Intent intent = new Intent(); local 137 Intent intent = new Intent(); local 153 final Intent intent = buildTriggerServiceIntent(); local [all...] |
/frameworks/base/core/java/android/text/style/ |
URLSpan.java | 22 import android.content.Intent; 34 * will try to open the url, by launching an an Activity with an {@link Intent#ACTION_VIEW} intent. 104 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 105 intent.putExtra(Browser.EXTRA_APPLICATION_ID, context.getPackageName()); 107 context.startActivity(intent); 109 Log.w("URLSpan", "Actvity was not found for intent, " + intent.toString()) [all...] |
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
ReceiverActivity.java | 20 import android.content.Intent; 32 * To show Files app for the UsbManager.ACTION_USB_DEVICE_ATTACHED intent, the intent should be 34 * intent to DocumentsUI. 49 final Intent intent = new Intent(Intent.ACTION_VIEW); local 50 intent.setDataAndType(uri, DocumentsContract.Root.MIME_TYPE_ITEM); 51 intent.addCategory(Intent.CATEGORY_DEFAULT) [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
KeyguardUpdateMonitorTest.java | 20 import android.content.Intent; 56 Intent intent = new Intent(TelephonyIntents.ACTION_SIM_STATE_CHANGED); local 61 keyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); local 66 intent.putExtra(TelephonyIntents.EXTRA_REBROADCAST_ON_UNLOCK, true); 67 keyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); local
|
/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
|