HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 76 - 100 of 4230) sorted by null

1 2 34 5 6 7 8 91011>>

  /frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DemoModeController.java 21 import android.content.Intent;
225 final Intent intent = new Intent("com.android.systemui.demo"); local
226 intent.putExtra("command", "exit");
227 mContext.sendBroadcast(intent);
234 final Intent intent = new Intent("com.android.systemui.demo");
235 intent.putExtra("command", "status")
    [all...]
  /frameworks/support/compat/java/android/support/v4/content/
IntentCompat.java 19 import android.content.Intent;
23 * Helper for accessing features in {@link android.content.Intent}.
31 * A constant String that is associated with the Intent, used with
32 * {@link android.content.Intent#ACTION_SEND} to supply an alternative to
33 * {@link android.content.Intent#EXTRA_TEXT}
35 * {@link android.content.Intent#EXTRA_TEXT}.
37 public static final String EXTRA_HTML_TEXT = "android.intent.extra.HTML_TEXT";
40 * Used as a boolean extra field in {@link android.content.Intent#ACTION_VIEW} intents to
44 public static final String EXTRA_START_PLAYBACK = "android.intent.extra.START_PLAYBACK";
50 public static final String CATEGORY_LEANBACK_LAUNCHER = "android.intent.category.LEANBACK_LAUNCHER"
80 Intent intent = new Intent(selectorAction); local
    [all...]
  /frameworks/support/wear/tests/src/android/support/wear/widget/
LayoutTestActivity.java 20 import android.content.Intent;
29 Intent intent = getIntent(); local
30 if (!intent.hasExtra(EXTRA_LAYOUT_RESOURCE_ID)) {
32 "Intent extras must contain EXTRA_LAYOUT_RESOURCE_ID");
34 int layoutId = intent.getIntExtra(EXTRA_LAYOUT_RESOURCE_ID, -1);
  /packages/apps/Messaging/src/com/android/messaging/receiver/
StorageStatusReceiver.java 21 import android.content.Intent;
31 public void onReceive(final Context context, final Intent intent) {
32 if (Intent.ACTION_DEVICE_STORAGE_LOW.equals(intent.getAction())) {
34 } else if (Intent.ACTION_DEVICE_STORAGE_OK.equals(intent.getAction())) {
SendStatusReceiver.java 21 import android.content.Intent;
34 * The SMS sent and delivery intent receiver.
58 public void onReceive(final Context context, final Intent intent) {
60 final String action = intent.getAction();
63 final Uri requestId = intent.getData();
67 intent.getIntExtra(EXTRA_ERROR_CODE, NO_ERROR_CODE),
68 intent.getIntExtra(EXTRA_PART_ID, NO_PART_ID),
69 intent.getIntExtra(EXTRA_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID));
71 final Uri messageUri = intent.getData()
    [all...]
  /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/UnifiedEmail/src/com/android/mail/browse/
EmlTempFileDeletionService.java 21 import android.content.Intent;
38 protected void onHandleIntent(Intent intent) {
39 final String action = intent.getAction();
40 if (Intent.ACTION_DELETE.equals(action)) {
41 final Uri uri = intent.getData();
  /cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/
TranslucentAssistantActivity.java 19 import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK;
20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
24 import android.content.Intent;
34 final Intent intent = new Intent(caller, TranslucentAssistantActivity.class); local
35 intent.setFlags(FLAG_ACTIVITY_CLEAR_TASK | FLAG_ACTIVITY_NEW_TASK);
37 intent.putExtras(extras);
42 caller.startActivity(intent, options.toBundle());
  /cts/tests/app/src/android/app/cts/
Instrumentation_ActivityResultTest.java 22 import android.content.Intent;
28 Intent intent = new Intent(); local
29 ActivityResult result = new ActivityResult(Activity.RESULT_OK, intent);
31 assertEquals(intent, result.getResultData());
33 result = new ActivityResult(Activity.RESULT_CANCELED, intent);
  /cts/tests/tests/net/appForApi23/src/android/net/cts/appForApi23/
ConnectivityReceiver.java 20 import android.content.Intent;
30 public void onReceive(Context context, Intent intent) {
31 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
32 int networkType = intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, 0);
37 if (GET_WIFI_CONNECTIVITY_ACTION_COUNT.equals(intent.getAction())) {
  /development/samples/ApiDemos/src/com/example/android/apis/app/
Intents.java 22 import android.content.Intent;
37 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
38 intent.setType("audio/*");
39 startActivity(Intent.createChooser(intent, "Select music"));
43 Intent intent = new Intent(Intent.ACTION_GET_CONTENT) local
49 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
    [all...]
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...]
  /packages/apps/Contacts/src/com/android/contacts/util/
ImplicitIntentsUtil.java 23 import android.content.Intent;
48 * Why not just always use explicit intents? The Contacts/Dialer app implements standard intent
49 * actions used by others apps. We want to continue exercising these intent filters to make sure
50 * they still work. Plus we sometimes don't know an explicit intent would work. See
58 * Start an intent. If it is possible for this app to handle the intent, force this app's
59 * activity to handle the intent. Sometimes it is impossible to know whether this app
60 * can handle an intent while coding since the code is used inside both Dialer and Contacts.
66 public static void startActivityInAppIfPossible(Context context, Intent intent) {
118 final Intent intent = ImplicitIntentsUtil.composeQuickContactIntent( local
145 final Intent intent = new Intent(context, QuickContactActivity.class); local
160 final Intent intent = new Intent(Settings.ACTION_SYNC_SETTINGS); local
171 final Intent intent = new Intent(Settings.ACTION_ADD_ACCOUNT); local
179 final Intent intent = composeQuickContactIntent(context, contactUri, local
    [all...]
  /packages/apps/Dialer/java/com/android/voicemail/
VoicemailPowerCycleReceiver.java 21 import android.content.Intent;
24 /** Receives {@link Intent#ACTION_BOOT_COMPLETED} and {@link Intent#ACTION_SHUTDOWN} */
28 public void onReceive(Context context, Intent intent) {
30 if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
32 } else if (Intent.ACTION_SHUTDOWN.equals(intent.getAction())) {
35 throw Assert.createAssertionFailException("unexpected action: " + intent.getAction())
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
Gallery.java 21 import android.content.Intent;
29 Intent intent = IntentHelper.getGalleryIntent(Gallery.this); local
33 intent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
34 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
35 startActivity(intent);
  /packages/apps/Nfc/src/com/android/nfc/
NfcRootActivity.java 22 import android.content.Intent;
33 Intent intent = getIntent(); local
34 if (intent != null && intent.hasExtra(EXTRA_LAUNCH_INTENT)) {
35 final Intent launchIntent = intent.getParcelableExtra(EXTRA_LAUNCH_INTENT);
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
BatteryBroadcastReceiver.java 21 import android.content.Intent;
52 public void onReceive(Context context, Intent intent) {
53 updateBatteryStatus(intent, false /* forceUpdate */);
61 final Intent intent = mContext.registerReceiver(this, local
62 new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
63 updateBatteryStatus(intent, true /* forceUpdate */);
70 private void updateBatteryStatus(Intent intent, boolean forceUpdate)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/
PublicPreferenceActivity.java 21 import android.content.Intent;
42 final Intent intent = getIntent(); local
45 intent.removeExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT);
46 intent.removeExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_ARGUMENTS);
47 intent.removeExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_SHORT_TITLE);
48 intent.removeExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT_TITLE);
51 final Uri dataUri = intent.getData();
65 intent.setData(builder.build());
72 // Force this intent to be sent to the appropriate MailPreferenceActivity clas
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/
ViewContact.java 20 import android.content.Intent;
29 Intent intent = new Intent(getIntent()); local
33 intent.setClass(this, HomeXLarge.class);
35 intent.setClass(this, DetailsNormal.class);
37 startActivity(intent);
  /packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
NotificationShowcaseActivity.java 10 import android.content.Intent;
38 Intent intent = new Intent(NotificationService.ACTION_CREATE); local
39 intent.setComponent(new ComponentName(this, NotificationService.class));
40 startService(intent);
44 Intent intent = new Intent(NotificationService.ACTION_DESTROY); local
45 intent.setComponent(new ComponentName(this, NotificationService.class))
50 Intent intent = new Intent(); local
    [all...]
  /frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
BroadcastInterceptingContext.java 22 import android.content.Intent;
39 * {@link Context#sendBroadcast(Intent)}.
46 public abstract class FutureIntent extends FutureTask<Intent> {
71 public boolean dispatchBroadcast(Intent intent) {
72 if (mFilter.match(getContentResolver(), intent, false, TAG) > 0) {
75 mReceiver.onReceive(context, intent);
78 set(intent);
87 public Intent get() throws InterruptedException, ExecutionException {
104 final Intent intent = get(timeout, unit) local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/
WakeLockHelper.java 20 import android.content.Intent;
51 public void acquire(final Context context, final Intent intent, final int opcode) {
66 intent.putExtra(EXTRA_CALLING_PID, mMyPid);
72 public boolean isHeld(final Intent intent) {
73 final boolean respectWakeLock = (mMyPid == intent.getIntExtra(EXTRA_CALLING_PID, -1));
80 public boolean ensure(final Intent intent, final int opcode) {
81 final boolean respectWakeLock = (mMyPid == intent.getIntExtra(EXTRA_CALLING_PID, -1))
    [all...]
  /frameworks/base/location/java/android/location/
SettingInjectorService.java 20 import android.content.Intent;
41 * &lt;intent-filter&gt;
43 * &lt;/intent-filter&gt;
87 * Intent action that must be declared in the manifest for the subclass. Used to start the
104 * Intent action a client should broadcast when the value of one of its injected settings has
118 * Name of the intent key used to specify the messenger
136 public final IBinder onBind(Intent intent) {
141 public final void onStart(Intent intent, int startId)
    [all...]
  /packages/apps/Messaging/tests/src/com/android/messaging/
FakeContext.java 23 import android.content.Intent;
36 public void startServiceForStub(Intent intent);
37 public void onStartCommandForStub(Intent intent, int flags, int startid);
40 ArrayList<Intent> mStartedIntents;
49 mStartedIntents = new ArrayList<Intent>();
57 public ArrayList<Intent> extractIntents() {
58 final ArrayList<Intent> intents = mStartedIntents;
59 mStartedIntents = new ArrayList<Intent>();
    [all...]
  /prebuilts/misc/common/android-support-test/espresso/
espresso_intents_release_no_deps.jar 

Completed in 2389 milliseconds

1 2 34 5 6 7 8 91011>>