/cts/tests/app/src/android/app/cts/ |
SearchManagerTest.java | 22 import android.content.Intent; 28 Intent intent = new Intent(); local 29 intent.setAction(action); 30 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 31 intent.setClass(getInstrumentation().getTargetContext(), SearchManagerStubActivity.class); 32 getInstrumentation().getTargetContext().startActivity(intent);
|
/cts/tests/tests/assist/testapp/src/android/voiceinteraction/testapp/ |
ScreenshotActivity.java | 23 import android.content.Intent; 52 Intent intent = new Intent(Utils.APP_3P_HASRESUMED); local 53 sendBroadcast(intent);
|
/cts/tests/tests/preference/src/android/preference/cts/ |
PreferenceActivityTest.java | 21 import android.content.Intent; 45 Intent intent = new Intent(mActivity, PreferenceCtsActivity.class); local 46 mActivity.addPreferencesFromIntent(intent);
|
/cts/tools/cts-holo-generation/src/com/android/cts/holo_capture/ |
CaptureActivity.java | 20 import android.content.Intent; 38 Intent intent = new Intent(); local 39 intent.setClassName("com.android.cts.holo", "android.holo.cts.ThemeTestActivity"); 40 intent.putExtra("task", 2); 41 intent.putExtra("layoutAdapterMode", 1); 43 startActivityForResult(intent, requestCode); 47 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
/developers/build/prebuilts/gradle/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/ |
MainActivity.java | 6 import android.content.Intent; 36 /** Create an intent that will be fired when the user clicks the notification. 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 40 Intent intent = new Intent(Intent.ACTION_VIEW, local 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 61 // Set the intent that will fire when the user taps the notification.
|
/developers/build/prebuilts/gradle/CustomNotifications/Application/src/main/java/com/example/android/customnotifications/ |
MainActivity.java | 22 import android.content.Intent; 49 // BEGIN_INCLUDE(intent) 50 //Create Intent to launch this Activity again if the notification is clicked. 51 Intent i = new Intent(this, MainActivity.class); 52 i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); 53 PendingIntent intent = PendingIntent.getActivity(this, 0, i, local 55 builder.setContentIntent(intent); 56 // END_INCLUDE(intent)
|
/developers/build/prebuilts/gradle/MultiWindowPlayground/Application/src/main/java/com/android/multiwindowplayground/ |
MainActivity.java | 28 import android.content.Intent; 59 Intent intent = new Intent(this, UnresizableActivity.class); local 60 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 61 startActivity(intent); 67 startActivity(new Intent(this, MinimumSizeActivity.class)); 77 * previous activity that started the Intent. That's why the Intent.FLAG_ACTIVITY_NEW_TAS 80 Intent intent = new Intent(this, AdjacentActivity.class); local 96 Intent intent = new Intent(this, LaunchBoundsActivity.class); local [all...] |
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/ |
MainActivity.java | 24 import android.content.Intent; 151 Intent intent = new Intent(this, CameraPreviewActivity.class); local 152 startActivity(intent);
|
/developers/samples/android/notification/BasicNotifications/Application/src/main/java/com/example/android/basicnotifications/ |
MainActivity.java | 6 import android.content.Intent; 36 /** Create an intent that will be fired when the user clicks the notification. 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 40 Intent intent = new Intent(Intent.ACTION_VIEW, local 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 61 // Set the intent that will fire when the user taps the notification.
|
/developers/samples/android/notification/CustomNotifications/Application/src/main/java/com/example/android/customnotifications/ |
MainActivity.java | 22 import android.content.Intent; 49 // BEGIN_INCLUDE(intent) 50 //Create Intent to launch this Activity again if the notification is clicked. 51 Intent i = new Intent(this, MainActivity.class); 52 i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); 53 PendingIntent intent = PendingIntent.getActivity(this, 0, i, local 55 builder.setContentIntent(intent); 56 // END_INCLUDE(intent)
|
/developers/samples/android/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/ |
MainActivity.java | 24 import android.content.Intent; 151 Intent intent = new Intent(this, CameraPreviewActivity.class); local 152 startActivity(intent);
|
/developers/samples/android/ui/window/MultiWindowPlayground/Application/src/main/java/com/android/multiwindowplayground/ |
MainActivity.java | 28 import android.content.Intent; 59 Intent intent = new Intent(this, UnresizableActivity.class); local 60 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 61 startActivity(intent); 67 startActivity(new Intent(this, MinimumSizeActivity.class)); 77 * previous activity that started the Intent. That's why the Intent.FLAG_ACTIVITY_NEW_TAS 80 Intent intent = new Intent(this, AdjacentActivity.class); local 96 Intent intent = new Intent(this, LaunchBoundsActivity.class); local [all...] |
/development/apps/Development/src/com/android/development/ |
ProcessInfo.java | 21 import android.content.Intent; 33 Intent intent = getIntent(); local 34 String processName = intent.getStringExtra("processName"); 35 String pkgList[] = intent.getStringArrayExtra("packageList");
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ContactsFilterInstrumentation.java | 21 import android.content.Intent; 48 Intent intent = new Intent(Intent.ACTION_MAIN); local 49 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 50 intent.setClassName(getTargetContext(), 52 Activity activity = startActivitySync(intent);
|
ContactsSelectInstrumentation.java | 21 import android.content.Intent; 50 Intent intent = new Intent(Intent.ACTION_MAIN); local 51 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 52 intent.setClassName(getTargetContext(), 54 Activity activity = startActivitySync(intent); 61 Intent.ACTION_VIEW, ContactsContract.Contacts.CONTENT_ITEM_TYPE), null, true) [all...] |
NotificationDisplay.java | 25 import android.content.Intent; 74 Intent intent = new Intent(this, StatusBarNotifications.class); local 75 intent.setAction(Intent.ACTION_MAIN); 76 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 77 startActivity(intent);
|
/development/samples/browseable/BasicNotifications/src/com.example.android.basicnotifications/ |
MainActivity.java | 6 import android.content.Intent; 36 /** Create an intent that will be fired when the user clicks the notification. 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 40 Intent intent = new Intent(Intent.ACTION_VIEW, local 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 61 // Set the intent that will fire when the user taps the notification.
|
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/ |
MainActivity.java | 22 import android.content.Intent; 49 // BEGIN_INCLUDE(intent) 50 //Create Intent to launch this Activity again if the notification is clicked. 51 Intent i = new Intent(this, MainActivity.class); 52 i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); 53 PendingIntent intent = PendingIntent.getActivity(this, 0, i, local 55 builder.setContentIntent(intent); 56 // END_INCLUDE(intent)
|
/development/samples/browseable/MultiWindowPlayground/src/com/android.multiwindowplayground/ |
MainActivity.java | 28 import android.content.Intent; 59 Intent intent = new Intent(this, UnresizableActivity.class); local 60 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 61 startActivity(intent); 67 startActivity(new Intent(this, MinimumSizeActivity.class)); 77 * previous activity that started the Intent. That's why the Intent.FLAG_ACTIVITY_NEW_TAS 80 Intent intent = new Intent(this, AdjacentActivity.class); local 96 Intent intent = new Intent(this, LaunchBoundsActivity.class); local [all...] |
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/ |
MainActivity.java | 24 import android.content.Intent; 151 Intent intent = new Intent(this, CameraPreviewActivity.class); local 152 startActivity(intent);
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
ContactsListActivity.java | 20 import android.content.Intent; 67 if (Intent.ACTION_SEARCH.equals(getIntent().getAction())) { 69 // Fetch query from intent and notify the fragment that it should display search 107 Intent intent = new Intent(this, ContactDetailActivity.class); local 108 intent.setData(contactUri); 109 startActivity(intent);
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
DemoKitLaunch.java | 5 import android.content.Intent; 13 static Intent createIntent(Activity activity) { 17 Intent intent; local 20 intent = new Intent(activity, DemoKitTablet.class); 23 intent = new Intent(activity, DemoKitPhone.class); 25 return intent; 32 Intent intent = createIntent(this) local [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
oomkiller_profiler.py | 11 from devil.android.sdk import intent # pylint: disable=import-error namespace 47 intent.Intent(package=browser_backend.package,
|
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/ |
AndroidNet.java | 20 import android.content.Intent; 77 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 79 if (pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) != null) { 83 Intent intent = new Intent(Intent.ACTION_VIEW, uri) [all...] |
/external/libgdx/tests/gdx-tests-android/src/com/badlogic/gdx/tests/android/ |
AndroidTestStarter.java | 23 import android.content.Intent;
62 Intent intent = new Intent(this, GdxTestActivity.class);
local 63 intent.putExtras(bundle);
65 startActivity(intent);
|