/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
ToyVpnClient.java | 20 import android.content.Intent; 47 Intent intent = VpnService.prepare(this); local 48 if (intent != null) { 49 startActivityForResult(intent, 0); 56 protected void onActivityResult(int request, int result, Intent data) { 59 Intent intent = new Intent(this, ToyVpnService.class) local 63 startService(intent); [all...] |
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
RsBenchTest.java | 21 import android.content.Intent; 52 Intent intent = new Intent(Intent.ACTION_MAIN); local 53 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 54 intent.setClassName("com.android.perftest", "com.android.perftest.RsBench"); 55 intent.setData(data); 56 mAct = (RsBench) mInst.startActivitySync(intent); [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppLauncherActivity.java | 46 import android.content.Intent; 55 * This class is designed to act as the entry point of handling the share intent 68 Intent intent = getIntent(); local 69 String action = intent.getAction(); 71 if (action.equals(Intent.ACTION_SEND) || action.equals(Intent.ACTION_SEND_MULTIPLE)) { 74 * probably Pictures, videos, or vCards. The Intent should contain 77 if (action.equals(Intent.ACTION_SEND)) { 79 String type = intent.getType() [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ContactsSearchManager.java | 20 import android.content.Intent; 56 private static Intent buildIntent( 58 Intent intent = new Intent(); local 59 intent.setData(ContactsContract.Contacts.CONTENT_URI); 60 intent.setAction(UI.FILTER_CONTACTS_ACTION); 62 Intent originalIntent = context.getIntent(); 65 intent.putExtras(originalExtras); 67 intent.putExtra(UI.FILTER_TEXT_EXTRA_KEY, initialQuery) [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
PhoneCapabilityTester.java | 20 import android.content.Intent; 41 * Tests whether the Intent has a receiver registered. This can be used to show/hide 44 public static boolean isIntentRegistered(Context context, Intent intent) { 46 final List<ResolveInfo> receiverList = packageManager.queryIntentActivities(intent, 80 final Intent intent = new Intent(Intent.ACTION_SENDTO, local 82 return isIntentRegistered(context, intent); [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmAlert.java | 22 import android.content.Intent; 50 public void onReceive(Context context, Intent intent) { 68 new IntentFilter(Intent.ACTION_SCREEN_OFF)); 104 Intent i = new Intent(this, AlarmAlertFullScreen.class);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
Help.java | 19 import android.content.Intent; 43 Intent helpIntent = getHelpIntent(activityName); 55 private Intent getHelpIntent(String activityName) { 58 return new Intent(Intent.ACTION_VIEW, helpUrl);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryPackInstallBroadcastReceiver.java | 21 import android.content.Intent; 34 * The action of the intent for publishing that new dictionary data is available. 44 public void onReceive(Context context, Intent intent) { 45 final String action = intent.getAction(); 49 if (action.equals(Intent.ACTION_PACKAGE_ADDED)) { 50 final Uri packageUri = intent.getData(); 75 } else if (action.equals(Intent.ACTION_PACKAGE_REMOVED) 76 && !intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
VoicemailCleanupService.java | 21 import android.content.Intent; 39 protected void onHandleIntent(Intent intent) { 40 handleIntentInternal(intent, getContentResolver()); 44 void handleIntentInternal(Intent intent, 46 if (intent.getAction().equals(Intent.ACTION_PACKAGE_REMOVED) && 47 !intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
ServiceTest.java | 21 import android.content.Intent; 191 void startExpectResult(Intent service) { 195 void startExpectResult(Intent service, Bundle bundle) { 201 getContext().startService(new Intent(service).putExtras(bundle)); 205 getContext().startService(new Intent(service).putExtras(bundle)); 223 void startExpectNoPermission(Intent service) { 232 void bindExpectResult(Intent service) { 339 void bindAutoExpectResult(Intent service) { 363 void bindExpectNoPermission(Intent service) { 378 startExpectResult(new Intent(getContext(), LocalService.class)) [all...] |
/frameworks/base/core/tests/coretests/src/android/provider/ |
SettingsProviderTest.java | 23 import android.content.Intent; 139 Uri uri = Settings.Bookmarks.add(r, new Intent("TEST"), 147 v.put(Settings.Bookmarks.INTENT, "#Intent;action=TOAST;end"); 253 assertCanBeHandled(new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)); 254 assertCanBeHandled(new Intent(Settings.ACTION_ADD_ACCOUNT)); 255 assertCanBeHandled(new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS)); 256 assertCanBeHandled(new Intent(Settings.ACTION_APN_SETTINGS)); 257 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS) 259 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS)) [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
MessageComposeTests.java | 21 import android.content.Intent; 120 private static final String ACTION_REPLY = "com.android.email.intent.action.REPLY"; 121 private static final String ACTION_REPLY_ALL = "com.android.email.intent.action.REPLY_ALL"; 122 private static final String ACTION_FORWARD = "com.android.email.intent.action.FORWARD"; 123 private static final String ACTION_EDIT_DRAFT = "com.android.email.intent.action.EDIT_DRAFT"; 154 Intent intent = new Intent(Intent.ACTION_VIEW); local 155 setActivityIntent(intent); 204 Intent intent = new Intent(ACTION_REPLY); local 248 Intent intent = new Intent(ACTION_REPLY); local 291 Intent intent = new Intent(ACTION_REPLY); local 323 Intent intent = new Intent(ACTION_FORWARD); local 344 Intent intent = new Intent(ACTION_REPLY); local 379 Intent intent = new Intent(ACTION_REPLY); local 416 Intent intent = new Intent(ACTION_FORWARD); local 442 Intent intent = new Intent(ACTION_EDIT_DRAFT); local 477 Intent intent = new Intent(ACTION_EDIT_DRAFT); local 513 Intent intent = new Intent(ACTION_EDIT_DRAFT); local 553 final Intent intent = new Intent(Intent.ACTION_VIEW); local 589 final Intent intent = new Intent(Intent.ACTION_VIEW); local 626 final Intent intent = new Intent(Intent.ACTION_VIEW); local 664 final Intent intent = new Intent(Intent.ACTION_VIEW); local 695 Intent intent = new Intent(Intent.ACTION_VIEW); local 719 Intent intent = new Intent(Intent.ACTION_VIEW); local 743 Intent intent = new Intent(Intent.ACTION_VIEW); local 768 Intent intent = new Intent(Intent.ACTION_SEND); local 792 Intent intent = new Intent(Intent.ACTION_VIEW); local 963 final Intent intent = new Intent(ACTION_EDIT_DRAFT); local [all...] |
/cts/tests/src/android/app/cts/ |
ActivityTestsBase.java | 21 import android.content.Intent; 32 protected Intent mIntent; 40 private Intent mData; 46 mIntent = new Intent(mContext, LaunchpadActivity.class); 87 public void activityFinished(int resultCode, Intent data, RuntimeException where) { 91 public Intent editIntent() { 110 finishWithResult(Activity.RESULT_CANCELED, new Intent().setAction(error)); 113 public void finishWithResult(int resultCode, Intent data) { 119 public void finishWithResult(int resultCode, Intent data, RuntimeException where) { 140 mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) [all...] |
/cts/tests/tests/holo/src/android/holo/cts/ |
LayoutPickerActivity.java | 20 import android.content.Intent; 46 Intent intent = new Intent(this, ThemeTestActivity.class); local 47 intent.putExtra(ThemeTestActivity.EXTRA_THEME_INDEX, mThemeIndex); 48 intent.putExtra(ThemeTestActivity.EXTRA_LAYOUT_INDEX, position); 49 intent.putExtra(ThemeTestActivity.EXTRA_TASK, mTestTask); 50 intent.putExtra(ThemeTestActivity.EXTRA_LAYOUT_ADAPTER_MODE, LayoutAdapter.MODE_VIEWING); 51 startActivity(intent);
|
ThemePickerActivity.java | 20 import android.content.Intent; 43 Intent intent = new Intent(this, LayoutPickerActivity.class); local 44 intent.putExtra(LayoutPickerActivity.EXTRA_THEME_INDEX, position); 45 intent.putExtra(LayoutPickerActivity.EXTRA_TASK, mTestTask); 46 startActivity(intent);
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
ClockBackActivity.java | 20 import android.content.Intent; 34 /** An intent for launching the system settings. */ 35 private static final Intent sSettingsIntent = 36 new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
|
TaskListActivity.java | 22 import android.content.Intent; 31 /** An intent for launching the system settings. */ 32 private static final Intent sSettingsIntent = 33 new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
Forwarding.java | 24 import android.content.Intent; 78 Intent intent = new Intent(); 79 intent.setClass(Forwarding.this, ForwardTarget.class); 80 startActivity(intent);
|
IncomingMessage.java | 29 import android.content.Intent; 62 * This method creates an array of Intent objects representing the 66 static Intent[] makeMessageIntentStack(Context context, CharSequence from, 72 Intent[] intents = new Intent[4]; 75 // This is a convenient way to make the proper Intent to launch and 77 intents[0] = Intent.makeRestartActivityTask(new ComponentName(context, 81 intents[1] = new Intent(context, com.example.android.apis.ApiDemos.class); 84 intents[2] = new Intent(context, com.example.android.apis.ApiDemos.class); 89 intents[3] = new Intent(context, IncomingMessageView.class) 167 Intent intent = new Intent(this, IncomingMessageInterstitial.class); local [all...] |
NotifyingController.java | 24 import android.content.Intent; 49 startService(new Intent(NotifyingController.this, 56 stopService(new Intent(NotifyingController.this,
|
RedirectEnter.java | 24 import android.content.Intent; 54 Intent intent = new Intent(RedirectEnter.this, RedirectMain.class); 55 startActivity(intent);
|
/development/samples/ApiDemos/src/com/example/android/apis/nfc/ |
TechFilter.java | 22 import android.content.Intent; 38 Intent intent = getIntent(); local 39 String action = intent.getAction(); 41 mText.setText("Discovered tag " + ++mCount + " with intent: " + intent); 48 public void onNewIntent(Intent intent) { 49 mText.setText("Discovered tag " + ++mCount + " with intent: " + intent); [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));
|
PeerActivity.java | 22 import android.content.Intent; 44 Intent target = new Intent(this, PeerActivity.class);
|
/development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/ |
ContentCategoryActivity.java | 22 import android.content.Intent; 47 Intent target = new Intent(this, ContentViewActivity.class);
|