Searched refs:intent (Results 1 - 25 of 464) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DClearTop.java34 Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK)
36 startActivity(intent);
40 public void onNewIntent(Intent intent) { argument
41 //Log.i("foo", "New intent in " + this + ": " + intent);
42 if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) {
46 "New intent received " + intent + ", expecting action "
H A DRemoteSubActivityScreen.java37 Intent intent = getIntent();
38 intent.setClass(this, SubActivityScreen.class);
42 boolean kill = intent.getBooleanExtra("kill", false);
H A DBroadcastTest.java109 Intent intent = new Intent(action, null);
110 intent.putExtra("caller", mCallTarget);
111 return intent;
119 public final void gotReceive(String name, Intent intent) { argument
133 if (mExpectedData[i].equals(intent.getStringExtra("test"))) {
145 + intent.getStringExtra("test"));
148 + intent.getStringExtra("test"));
195 public void onRegisteredReceiver(Intent intent) { argument
196 gotReceive(RECEIVER_REG, intent);
226 public void onReceive(Context context, Intent intent) {
264 onReceive(Context context, Intent intent) argument
[all...]
H A DRemoteReceiver.java32 public void onReceive(Context context, Intent intent) argument
34 if (LaunchpadActivity.BROADCAST_REPEAT.equals(intent.getAction())) {
35 Intent newIntent = new Intent(intent);
40 IBinder caller = intent.getIBinderExtra("caller");
H A DIntentSenderTest.java41 final Intent intent = makeBroadcastIntent(BROADCAST_REGISTERED);
48 public void onSendFinished(PendingIntent pi, Intent intent,
50 gotReceive(RECEIVER_RESULTS, intent);
54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0);
70 final Intent intent = makeBroadcastIntent(BROADCAST_LOCAL_DENIED);
75 public void onSendFinished(PendingIntent pi, Intent intent,
77 gotReceive(RECEIVER_RESULTS, intent);
81 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0);
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DMenu.java52 Intent intent = new Intent(Intent.ACTION_VIEW);
53 intent.setClass(this, TestShellActivity.class);
54 intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
55 intent.putExtra(TestShellActivity.TEST_URL, "file://" + filename);
56 intent.putExtra(TestShellActivity.TOTAL_TEST_COUNT, 1);
57 intent.putExtra(TestShellActivity.CURRENT_TEST_NUMBER, 1);
58 startActivity(intent);
64 Intent intent = new Intent(Intent.ACTION_VIEW);
65 intent.setClass(this, TestShellActivity.class);
66 intent
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentsPreloadReceiver.java25 public void onReceive(Context context, Intent intent) { argument
26 if (RecentsActivity.PRELOAD_INTENT.equals(intent.getAction())) {
28 } else if (RecentsActivity.CANCEL_PRELOAD_INTENT.equals(intent.getAction())){
/frameworks/base/core/java/android/app/admin/
H A DDeviceAdminReceiver.java30 * class provides a convenience for interpreting the raw intent actions
105 * its intent filter.
208 * @param intent The received intent as per {@link #onReceive}.
210 public void onEnabled(Context context, Intent intent) { argument
220 * @param intent The received intent as per {@link #onReceive}.
224 public CharSequence onDisableRequested(Context context, Intent intent) { argument
234 * @param intent The received intent a
236 onDisabled(Context context, Intent intent) argument
248 onPasswordChanged(Context context, Intent intent) argument
259 onPasswordFailed(Context context, Intent intent) argument
270 onPasswordSucceeded(Context context, Intent intent) argument
291 onPasswordExpiring(Context context, Intent intent) argument
300 onReceive(Context context, Intent intent) argument
[all...]
/frameworks/support/v4/jellybean/android/support/v4/app/
H A DActivityCompatJB.java25 public static void startActivity(Context context, Intent intent, Bundle options) { argument
26 context.startActivity(intent, options);
29 public static void startActivityForResult(Activity activity, Intent intent, int requestCode, Bundle options) { argument
30 activity.startActivityForResult(intent, requestCode, options);
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/scriptsupport/
H A DStarter.java51 Intent intent = new Intent();
52 intent.setClassName("com.android.dumprendertree2", "TestsListActivity");
53 intent.setAction(Intent.ACTION_RUN);
54 intent.putExtra(TestsListActivity.EXTRA_TEST_PATH, relativePath);
55 setActivityIntent(intent);
/frameworks/support/v4/java/android/support/v4/content/
H A DIntentCompat.java39 Intent intent = new Intent(Intent.ACTION_MAIN);
40 intent.setComponent(componentName);
41 intent.addCategory(Intent.CATEGORY_LAUNCHER);
42 return intent;
48 // Before api 15 you couldn't set a selector intent.
49 // Fall back and just return an intent with the requested action/category,
50 // even though it won't be a proper "main" intent.
51 Intent intent = new Intent(selectorAction);
52 intent.addCategory(selectorCategory);
53 return intent;
[all...]
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DTestsListActivity.java37 * An Activity that generates a list of tests and sends the intent to
45 /** Constants for adding extras to an intent */
83 Intent intent = getIntent();
84 if (!intent.getAction().equals(Intent.ACTION_RUN)) {
87 String path = intent.getStringExtra(EXTRA_TEST_PATH);
100 protected void onNewIntent(Intent intent) { argument
101 if (intent.getAction().equals(Intent.ACTION_REBOOT)) {
102 onCrashIntent(intent);
103 } else if (intent.getAction().equals(Intent.ACTION_SHUTDOWN)) {
104 onEverythingFinishedIntent(intent);
117 onCrashIntent(Intent intent) argument
131 onEverythingFinishedIntent(Intent intent) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DShortcutManager.java35 * <li> Returning a shortcut-matching intent to clients
49 /** Map of a shortcut to its intent. */
84 Intent intent = null;
86 intent = Intent.getIntent(intentURI);
90 if (intent == null) continue;
91 mShortcutIntents.put(shortcut, intent);
96 * Gets the shortcut intent for a given keycode+modifier. Make sure you
108 * @return The intent that matches the shortcut, or null if not found.
111 Intent intent = null;
116 intent
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DCurrentUserTracker.java40 public void onReceive(Context context, Intent intent) { argument
41 if (Intent.ACTION_USER_SWITCHED.equals(intent.getAction())) {
42 mCurrentUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0);
H A DAirplaneModeController.java65 public void onReceive(Context context, Intent intent) { argument
66 if (Intent.ACTION_AIRPLANE_MODE_CHANGED.equals(intent.getAction())) {
67 final boolean enabled = intent.getBooleanExtra("state", false);
89 Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
90 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
91 intent.putExtra("state", enabled);
92 mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DBroadcastInterceptingContext.java55 public boolean dispatchBroadcast(Intent intent) { argument
56 if (mFilter.match(getContentResolver(), intent, false, TAG) > 0) {
59 mReceiver.onReceive(context, intent);
62 set(intent);
124 public void sendBroadcast(Intent intent) { argument
129 if (interceptor.dispatchBroadcast(intent)) {
137 public void sendBroadcast(Intent intent, String receiverPermission) { argument
138 sendBroadcast(intent);
142 public void sendBroadcastAsUser(Intent intent, UserHandle user) { argument
143 sendBroadcast(intent);
147 sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) argument
153 sendStickyBroadcast(Intent intent) argument
158 sendStickyBroadcastAsUser(Intent intent, UserHandle user) argument
163 removeStickyBroadcast(Intent intent) argument
[all...]
/frameworks/base/packages/InputDevices/src/com/android/inputdevices/
H A DInputDeviceReceiver.java25 public void onReceive(Context context, Intent intent) { argument
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DReceiverService.java40 public IBinder onBind(Intent intent) { argument
45 public int onStartCommand(Intent intent, int flags, int startId) { argument
50 body = intent.getByteArrayExtra("data");
51 header = intent.getByteArrayExtra("header");
/frameworks/base/tests/BrowserTestPlugin/src/com/android/testplugin/
H A DTestPlugin.java26 public IBinder onBind(Intent intent) { argument
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
H A DReceiver.java28 public void onReceive(Context context, Intent intent) { argument
/frameworks/base/core/java/android/content/
H A DIIntentSender.aidl24 int send(int code, in Intent intent, String resolvedType,
/frameworks/base/core/java/android/app/
H A DIntentService.java81 * Sets intent redelivery preferences. Usually called from the constructor
88 * and the intent redelivered. If multiple Intents have been sent, only
115 public void onStart(Intent intent, int startId) { argument
118 msg.obj = intent;
129 public int onStartCommand(Intent intent, int flags, int startId) { argument
130 onStart(intent, startId);
145 public IBinder onBind(Intent intent) { argument
158 * @param intent The value passed to {@link
161 protected abstract void onHandleIntent(Intent intent); argument
H A DPendingIntent.java108 * extra data in the Intent; by canceling the previous pending intent,
155 * @param intent The original Intent that was sent.
160 void onSendFinished(PendingIntent pendingIntent, Intent intent, argument
178 public void performReceive(Intent intent, int resultCode, String data, argument
180 mIntent = intent;
204 * you supply here should almost always be an <em>explicit intent</em>,
212 * @param intent Intent of the activity to be launched.
217 * of the intent that can be supplied when the actual send happens.
224 Intent intent, int flags) {
225 return getActivity(context, requestCode, intent, flag
223 getActivity(Context context, int requestCode, Intent intent, int flags) argument
257 getActivity(Context context, int requestCode, Intent intent, int flags, Bundle options) argument
282 getActivityAsUser(Context context, int requestCode, Intent intent, int flags, Bundle options, UserHandle user) argument
470 getBroadcast(Context context, int requestCode, Intent intent, int flags) argument
481 getBroadcastAsUser(Context context, int requestCode, Intent intent, int flags, UserHandle userHandle) argument
525 getService(Context context, int requestCode, Intent intent, int flags) argument
606 send(Context context, int code, Intent intent) argument
663 send(Context context, int code, Intent intent, OnFinished onFinished, Handler handler) argument
704 send(Context context, int code, Intent intent, OnFinished onFinished, Handler handler, String requiredPermission) argument
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DActivityCompat.java80 * @param intent The description of the activity to start.
87 public static void startActivity(Activity activity, Intent intent, Bundle options) { argument
89 ActivityCompatJB.startActivity(activity, intent, options);
91 activity.startActivity(intent);
106 * @param intent The description of the activity to start.
115 public static void startActivityForResult(Activity activity, Intent intent, int requestCode, Bundle options) { argument
117 ActivityCompatJB.startActivityForResult(activity, intent, requestCode, options);
119 activity.startActivityForResult(intent, requestCode);
/frameworks/base/core/java/com/android/internal/content/
H A DPackageMonitor.java185 public boolean onHandleForceStop(Intent intent, String[] packages, int uid, boolean doit) { argument
189 public void onHandleUserStop(Intent intent, int userHandle) { argument
279 String getPackageName(Intent intent) { argument
280 Uri uri = intent.getData();
286 public void onReceive(Context context, Intent intent) { argument
287 mChangeUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
291 "Intent broadcast does not contain user handle: " + intent);
298 String action = intent.getAction();
300 String pkg = getPackageName(intent);
301 int uid = intent
[all...]

Completed in 530 milliseconds

1234567891011>>