/frameworks/base/core/java/android/content/ |
Intent.aidl | 1 /* //device/java/android/android/content/Intent.aidl 20 parcelable Intent;
|
IIntentSender.aidl | 20 import android.content.Intent; 24 int send(int code, in Intent intent, String resolvedType,
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
ProtectedBroadcastsTest.java | 20 import android.content.Intent; 29 Intent.ACTION_SCREEN_OFF, 30 Intent.ACTION_SCREEN_ON, 31 Intent.ACTION_USER_PRESENT, 32 Intent.ACTION_TIME_TICK, 33 Intent.ACTION_TIMEZONE_CHANGED, 34 Intent.ACTION_BOOT_COMPLETED, 35 Intent.ACTION_PACKAGE_INSTALL, 36 Intent.ACTION_PACKAGE_ADDED, 37 Intent.ACTION_PACKAGE_REPLACED 74 Intent intent = new Intent(action); local [all...] |
/development/apps/Development/src/com/android/development/ |
Development.java | 20 import android.content.Intent; 25 protected Intent getTargetIntent() { 26 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null); 27 targetIntent.addCategory(Intent.CATEGORY_TEST); 28 targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
UnderdevelopedSettings.java | 20 import android.content.Intent; 25 protected Intent getTargetIntent() { 26 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null); 27 targetIntent.addCategory(Intent.CATEGORY_DEVELOPMENT_PREFERENCE);
|
/frameworks/base/tests/SmokeTest/src/com/android/smoketest/ |
SmokeTestActivity.java | 20 import android.content.Intent; 33 protected Intent getTargetIntent() { 35 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null); 36 // TODO: Do we add a new top-level intent? Or just leave it hardcoded like this? 37 targetIntent.addCategory("android.intent.category.SMOKETEST_INSTRUMENTATION_TEST"); 38 targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
/packages/apps/Settings/src/com/android/settings/ |
CreateShortcut.java | 4 import android.content.Intent; 9 @Override protected Intent getTargetIntent() { 10 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null); 12 targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 17 Intent shortcutIntent = intentForPosition(position); 18 shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); 19 Intent intent = new Intent() local [all...] |
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarDebugReceiver.java | 21 import android.content.Intent; 34 public void onReceive(Context context, Intent intent) { 35 Intent i = new Intent(Intent.ACTION_MAIN); 37 i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
/packages/apps/Camera/src/com/android/camera/ |
CameraButtonIntentReceiver.java | 21 import android.content.Intent; 28 * {@code android.intent.action.CAMERA_BUTTON} intent. 36 public void onReceive(Context context, Intent intent) { 44 Intent i = new Intent(Intent.ACTION_MAIN); 46 i.addCategory(Intent.CATEGORY_LAUNCHER); 47 i.setFlags(Intent.FLAG_ACTIVITY_NEW_TAS [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoCallPermissionTest.java | 19 import android.content.Intent; 30 * Verify that Intent.ACTION_CALL requires permissions. 37 Intent intent = new Intent(Intent.ACTION_CALL, uri); local 38 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 40 mContext.startActivity(intent); 41 fail("startActivity(Intent.ACTION_CALL) did not throw SecurityException as expected") 56 Intent intent = new Intent("android.intent.action.CALL_PRIVILEGED", local 74 Intent intent = new Intent("android.intent.action.CALL_PRIVILEGED", Uri.parse("tel:911")); local [all...] |
RebootPermissionTest.java | 20 import android.content.Intent; 35 * Verify that rebooting by sending a broadcast Intent requires Permission. 42 mContext.sendBroadcast(new Intent(Intent.ACTION_REBOOT));
|
/cts/tests/src/android/app/cts/ |
LauncherActivityStub.java | 20 import android.content.Intent; 29 private Intent mSuperIntent; 31 public Intent getSuperIntent() { 36 protected Intent getTargetIntent() { 38 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null); 39 targetIntent.addCategory(Intent.CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST); 40 targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 45 protected Intent intentForPosition(int position) [all...] |
ClearTop.java | 20 import android.content.Intent; 32 final Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK).setClass( local 34 startActivity(intent); 38 public void onNewIntent(Intent intent) { 39 if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) { 42 setResult(RESULT_CANCELED, new Intent().setAction("New intent received " + inten [all...] |
/external/quake/src/com/android/quake/ |
PreconditionActivityHelper.java | 4 import android.content.Intent; 9 * Intent intent = PreconditionActivityHelper.createPreconditionIntent( 11 * // Optionally add extras to pass arguments to the intent 12 * intent.putExtra(Utils.EXTRA_ACCOUNT, account); 13 * PreconditionActivityHelper.startPreconditionActivityAndFinish(this, intent); 22 * Create a precondition activity intent. 25 * @return an intent which will launch the precondition activity. 27 public static Intent createPreconditionIntent(Activity activity, 29 Intent newIntent = new Intent() [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
Intent_FilterComparisonTest.java | 19 import android.content.Intent; 20 import android.content.Intent.FilterComparison; 26 @TestTargetClass(Intent.FilterComparison.class) 30 Intent mIntent; 36 mIntent = new Intent(); 41 method = "Intent.FilterComparison", 42 args = {android.content.Intent.class} 47 mFilterComparison = new Intent.FilterComparison(mIntent); 58 mFilterComparison = new Intent.FilterComparison(mIntent); 69 mFilterComparison = new Intent.FilterComparison(mIntent) [all...] |
/development/samples/BrowserPlugin/src/com/android/sampleplugin/ |
SamplePlugin.java | 28 import android.content.Intent; 34 public IBinder onBind(Intent intent) {
|
/frameworks/base/tests/BrowserTestPlugin/src/com/android/testplugin/ |
TestPlugin.java | 20 import android.content.Intent; 26 public IBinder onBind(Intent intent) {
|
/external/svox/pico/src/com/svox/pico/ |
DownloadVoiceData.java | 19 import android.content.Intent;
33 Intent marketIntent = new Intent(Intent.ACTION_VIEW, marketUri);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
LauncherShortcuts.java | 20 import android.content.Intent; 35 * 2. Any time the user clicks on an installed shortcut, an intent is sent. 40 * of an {@link android.content.Intent} that the launcher will use to create the shortcut. 47 * of the incoming {@link android.content.Intent}. 49 * In a real application, you would probably use the shortcut intent to display specific content 60 // Resolve the intent 62 final Intent intent = getIntent(); local 63 final String action = intent.getAction(); 65 // If the intent is a request to create a shortcut, we'll do that and exi 130 Intent intent = new Intent(); local [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
ChooserActivity.java | 19 import android.content.Intent; 28 Intent intent = getIntent(); local 29 Parcelable targetParcelable = intent.getParcelableExtra(Intent.EXTRA_INTENT); 30 if (!(targetParcelable instanceof Intent)) { 31 Log.w("ChooseActivity", "Target is not an intent: " + targetParcelable); 35 Intent target = (Intent)targetParcelable; 36 CharSequence title = intent.getCharSequenceExtra(Intent.EXTRA_TITLE) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
BrickDeniedTest.java | 19 import android.content.Intent; 27 // Try both the old and new brick intent names. Neither should work, 30 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE")); 31 getContext().sendBroadcast(new Intent("android.intent.action.BRICK"));
|
/cts/tests/SignatureTest/src/android/tests/sigtest/ |
InstrumentationRunner.java | 20 import android.content.Intent; 32 Intent intent = new Intent(Intent.ACTION_MAIN); local 33 intent.setClassName(getTargetContext(), 35 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 37 SignatureTestActivity activity = (SignatureTestActivity) startActivitySync(intent);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Tabs3.java | 22 import android.content.Intent; 25 * An example of tab content that launches an activity via {@link android.widget.TabHost.TabSpec#setContent(android.content.Intent)} 37 .setContent(new Intent(this, List1.class))); 41 .setContent(new Intent(this, List8.class))); 43 // This tab sets the intent flag so that it is recreated each time 47 .setContent(new Intent(this, Controls2.class) 48 .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
|
/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...] |
/frameworks/base/test-runner/src/android/test/ |
LaunchPerformanceBase.java | 20 import android.content.Intent; 41 protected Intent mIntent; 45 mIntent = new Intent(Intent.ACTION_MAIN); 46 mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 51 * Launches intent, and waits for idle before returning.
|