HomeSort by relevance Sort by last modified time
    Searched refs:Intent (Results 176 - 200 of 2371) sorted by null

1 2 3 4 5 6 78 91011>>

  /cts/tests/tests/holo/src/android/holo/cts/
SingleThemeIterator.java 19 import android.content.Intent;
26 class SingleThemeIterator implements Iterator<Intent> {
48 public Intent next() {
49 Intent intent = new Intent(); local
50 intent.putExtra(LayoutTestActivity.EXTRA_THEME_INDEX, mThemeIndex);
51 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_INDEX, mLayoutIndex);
52 intent.putExtra(LayoutTestActivity.EXTRA_TASK, mTask);
53 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_ADAPTER_MODE, mLayoutAdapterMode)
    [all...]
SingleThemeLayoutIterator.java 19 import android.content.Intent;
23 class SingleThemeLayoutIterator implements Iterator<Intent> {
45 public Intent next() {
46 Intent intent = new Intent(); local
47 intent.putExtra(LayoutTestActivity.EXTRA_THEME_INDEX, mThemeIndex);
48 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_INDEX, mLayoutIndex);
49 intent.putExtra(LayoutTestActivity.EXTRA_TASK, mTask);
50 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_ADAPTER_MODE, mLayoutAdapterMode)
    [all...]
  /development/samples/ApiDemos/tests/src/com/example/android/apis/app/
LocalServiceTest.java 22 import android.content.Intent;
65 Intent startIntent = new Intent();
75 Intent startIntent = new Intent();
  /development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/
ViewFromOtherTaskActivity.java 22 import android.content.Intent;
47 Intent target = new Intent(this, OutsideTaskActivity.class)
48 .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
49 Intent.FLAG_ACTIVITY_TASK_ON_HOME);
  /development/samples/training/notify-user/src/com/example/android/pingme/
ResultActivity.java 18 import android.content.Intent;
39 Intent intent = new Intent(getApplicationContext(), PingService.class); local
40 intent.setAction(CommonConstants.ACTION_SNOOZE);
41 startService(intent);
45 Intent intent = new Intent(getApplicationContext(), PingService.class); local
46 intent.setAction(CommonConstants.ACTION_DISMISS)
    [all...]
  /frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
MediaDump.java 20 import android.content.Intent;
45 Intent videoDumpIntent = new Intent(this, VideoDumpActivity.class);
54 Intent rgbPlayerIntent = new Intent(this, RgbPlayerActivity.class);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
CurrentUserTracker.java 22 import android.content.Intent;
32 IntentFilter filter = new IntentFilter(Intent.ACTION_USER_SWITCHED);
43 public void onReceive(Context context, Intent intent) {
44 if (Intent.ACTION_USER_SWITCHED.equals(intent.getAction())) {
46 mCurrentUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0);
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertDialog.java 21 import android.content.Intent;
37 public void onReceive(Context context, Intent intent) {
51 new IntentFilter(Intent.ACTION_SCREEN_OFF));
76 Intent i = new Intent(this, CellBroadcastAlertFullScreen.class);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
IntentUtilities.java 22 import android.content.Intent;
103 public static long getAccountIdFromIntent(Intent intent) {
104 return getLongFromIntent(intent, ACCOUNT_ID_PARAM);
110 public static String getAccountNameFromIntent(Intent intent) {
111 return getStringFromIntent(intent, ACCOUNT_NAME_PARAM);
117 public static long getMailboxIdFromIntent(Intent intent) {
118 return getLongFromIntent(intent, MAILBOX_ID_PARAM)
    [all...]
  /packages/apps/Email/src/com/android/mail/providers/
EmailAccountCacheProvider.java 20 import android.content.Intent;
44 protected Intent getNoAccountsIntent(Context context) {
45 Intent intent = new Intent(); local
46 intent.setAction(Intent.ACTION_EDIT);
47 intent.setData(Uri.parse("content://ui.email.android.com/settings"));
48 intent.putExtra(AccountSettings.EXTRA_NO_ACCOUNTS, true);
49 return intent;
    [all...]
  /packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/
ImsFrameworkReceiver.java 21 import android.content.Intent;
28 public void onReceive(Context context, Intent intent) {
29 String action = intent.getAction();
30 if (Intent.ACTION_BOOT_COMPLETED.equals(action)) {
32 intent = new Intent(intent);
33 intent.setClass(context, ImsFrameworkService.class);
34 if (context.startService(intent) == null)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
IntentActivityFlags.java 10 import android.content.Intent;
18 * Example of various Intent flags to modify the activity stack.
35 * This creates an array of Intent objects representing the back stack
39 private Intent[] buildIntentsToViewsLists() {
44 Intent[] intents = new Intent[3];
47 // This is a convenient way to make the proper Intent to launch and
49 intents[0] = Intent.makeRestartActivityTask(new ComponentName(this,
52 Intent intent = new Intent(Intent.ACTION_MAIN) local
    [all...]
  /cts/tests/tests/security/src/android/security/cts/
BrowserTest.java 21 import android.content.Intent;
60 * intent sets document.b2 to 1. The second intent attempts to read
74 List<Intent> intents = getAllJavascriptIntents();
75 for (Intent i : intents) {
98 * intent sets the variable "document.b1" equal to 1. If we are able
99 * read document.b1 in subsequent invocations of the intent, then
112 List<Intent> intents = getAllJavascriptIntents();
113 for (Intent i : intents) {
114 i.addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT)
    [all...]
  /frameworks/base/core/java/android/app/
TaskStackBuilder.java 21 import android.content.Intent;
63 private final ArrayList<Intent> mIntents = new ArrayList<Intent>();
82 * Add a new Intent to the task stack. The most recently added Intent will invoke
85 * @param nextIntent Intent for the next Activity in the synthesized task stack
88 public TaskStackBuilder addNextIntent(Intent nextIntent) {
94 * Add a new Intent with the resolved chain of parents for the target activity to
99 * {@link #addNextIntent(Intent) addNextIntent} with nextIntent.</p>
101 * @param nextIntent Intent for the topmost Activity in the synthesized task stack
    [all...]
  /frameworks/base/services/java/com/android/server/
DockObserver.java 21 import android.content.Intent;
52 private int mDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
53 private int mPreviousDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
119 if (mDockState != Intent.EXTRA_DOCK_STATE_UNDOCKED) {
135 // Skip the dock intent if not yet provisioned.
144 Intent intent = new Intent(Intent.ACTION_DOCK_EVENT); local
145 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING)
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
DockEventReceiver.java 27 import android.content.Intent;
47 public void onReceive(Context context, Intent intent) {
48 if (intent == null)
51 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE, intent.getIntExtra(
53 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
56 Log.d(TAG, "Action: " + intent.getAction() + " State:" + state + " Device: "
60 if (Intent.ACTION_DOCK_EVENT.equals(intent.getAction()
    [all...]
  /cts/tests/src/android/app/cts/
LocalActivityManagerTestHelper.java 23 import android.content.Intent;
90 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
91 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
92 mLocalActivityManager.startActivity(id, intent);
118 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class) local
160 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
179 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
193 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
207 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
229 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
264 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
318 final Intent intent = new Intent(this, LocalActivityManagerStubActivity.class); local
    [all...]
  /developers/build/prebuilts/gradle/ActionBarCompat-ShareActionProvider/ActionBarCompat-ShareActionProviderSample/src/main/java/com/example/android/actionbarcompat/shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /developers/samples/android/ui/actionbarcompat/ActionBarCompat-ShareActionProvider/ActionBarCompat-ShareActionProviderSample/src/main/java/com/example/android/actionbarcompat/shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /development/samples/browseable/ShareActionProvider/src/com.example.android.actionbarcompat.shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppLiveFolder.java 39 import android.content.Intent;
54 final Intent intent = getIntent(); local
55 final String action = intent.getAction();
68 private static Intent createLiveFolder(Context context, Uri uri, String name, int icon) {
69 final Intent intent = new Intent(); local
71 intent.setDataAndNormalize(uri);
72 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_BASE_INTENT, new Intent
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/widget/
CalendarAppWidgetProvider.java 29 import android.content.Intent;
56 public void onReceive(Context context, Intent intent) {
59 final String action = intent.getAction();
61 Log.d(TAG, "AppWidgetProvider got the intent: " + intent.toString());
67 } else if (action.equals(Intent.ACTION_PROVIDER_CHANGED)
68 || action.equals(Intent.ACTION_TIME_CHANGED)
69 || action.equals(Intent.ACTION_TIMEZONE_CHANGED)
70 || action.equals(Intent.ACTION_DATE_CHANGED
177 Intent intent = new Intent(Utils.getWidgetScheduledUpdateAction(context)); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
PackagesMonitor.java 22 import android.content.Intent;
38 public void onReceive(final Context context, final Intent intent) {
39 intent.setClass(context, AsyncService.class);
40 context.startService(intent);
49 protected void onHandleIntent(Intent intent) {
50 onReceiveAsync(this, intent);
55 private static void onReceiveAsync(Context context, Intent intent) {
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
PackageIntentReceiver.java 23 import android.content.Intent;
28 * Package intent receiver that invokes {@link ContactsProvider2#onPackageChanged} to update
34 public void onReceive(Context context, Intent intent) {
35 Uri packageUri = intent.getData();
43 handlePackageChangedForVoicemail(context, intent);
46 private void handlePackageChangedForVoicemail(Context context, Intent intent) {
47 if (intent.getAction().equals(Intent.ACTION_PACKAGE_REMOVED) &
    [all...]
  /packages/providers/MediaProvider/src/com/android/providers/media/
MtpReceiver.java 21 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
32 final String action = intent.getAction();
33 if (Intent.ACTION_BOOT_COMPLETED.equals(action)) {
34 final Intent usbState = context.registerReceiver(
40 handleUsbState(context, intent);
44 private void handleUsbState(Context context, Intent intent) {
45 Bundle extras = intent.getExtras()
    [all...]

Completed in 554 milliseconds

1 2 3 4 5 6 78 91011>>