Home
last modified time | relevance | path

Searched refs:Intent (Results 1 – 25 of 1058) sorted by relevance

12345678910>>...43

/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java21 import android.content.Intent;
37 Intent intent = getIntent(); in onCreate()
38 Parcelable targetParcelable = intent.getParcelableExtra(Intent.EXTRA_INTENT); in onCreate()
39 if (!(targetParcelable instanceof Intent)) { in onCreate()
45 Intent target = (Intent)targetParcelable; in onCreate()
49 mReplacementExtras = intent.getBundleExtra(Intent.EXTRA_REPLACEMENT_EXTRAS); in onCreate()
50 CharSequence title = intent.getCharSequenceExtra(Intent.EXTRA_TITLE); in onCreate()
55 Parcelable[] pa = intent.getParcelableArrayExtra(Intent.EXTRA_INITIAL_INTENTS); in onCreate()
56 Intent[] initialIntents = null; in onCreate()
58 initialIntents = new Intent[pa.length]; in onCreate()
[all …]
DExternalMediaFormatActivity.java25 import android.content.Intent;
41 public void onReceive(Context context, Intent intent) {
45 if (action == Intent.ACTION_MEDIA_REMOVED ||
46 action == Intent.ACTION_MEDIA_CHECKING ||
47 action == Intent.ACTION_MEDIA_MOUNTED ||
48 action == Intent.ACTION_MEDIA_SHARED) {
75 filter.addAction(Intent.ACTION_MEDIA_REMOVED); in onResume()
76 filter.addAction(Intent.ACTION_MEDIA_CHECKING); in onResume()
77 filter.addAction(Intent.ACTION_MEDIA_MOUNTED); in onResume()
78 filter.addAction(Intent.ACTION_MEDIA_SHARED); in onResume()
[all …]
DIntentForwarderActivity.java27 import android.content.Intent;
58 Intent intentReceived = getIntent(); in onCreate()
80 Intent newIntent = new Intent(intentReceived); in onCreate()
84 newIntent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT in onCreate()
85 |Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP); in onCreate()
89 if (newIntent.getAction().equals(Intent.ACTION_CHOOSER)) { in onCreate()
90 Intent innerIntent = (Intent) newIntent.getParcelableExtra(Intent.EXTRA_INTENT); in onCreate()
134 boolean canForward(Intent intent, int targetUserId) { in canForward()
136 if (intent.getAction().equals(Intent.ACTION_CHOOSER)) { in canForward()
138 if (intent.hasExtra(Intent.EXTRA_INITIAL_INTENTS)) { in canForward()
[all …]
/frameworks/support/v4/java/android/support/v4/app/
DTaskStackBuilder.java23 import android.content.Intent;
69 public class TaskStackBuilder implements Iterable<Intent> {
73 Intent getSupportParentActivityIntent(); in getSupportParentActivityIntent()
77 PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent()
82 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent()
84 Intent topIntent = new Intent(intents[intents.length - 1]); in getPendingIntent()
85 topIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in getPendingIntent()
91 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent()
93 intents[0] = new Intent(intents[0]).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | in getPendingIntent()
102 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent()
[all …]
DNavUtils.java22 import android.content.Intent;
43 Intent getParentActivityIntent(Activity activity); in getParentActivityIntent()
44 boolean shouldUpRecreateTask(Activity activity, Intent targetIntent); in shouldUpRecreateTask()
45 void navigateUpTo(Activity activity, Intent upIntent); in navigateUpTo()
52 public Intent getParentActivityIntent(Activity activity) { in getParentActivityIntent()
60 final Intent parentIntent = grandparent == null in getParentActivityIntent()
62 : new Intent().setComponent(target); in getParentActivityIntent()
72 public boolean shouldUpRecreateTask(Activity activity, Intent targetIntent) { in shouldUpRecreateTask()
74 return action != null && !action.equals(Intent.ACTION_MAIN); in shouldUpRecreateTask()
78 public void navigateUpTo(Activity activity, Intent upIntent) { in navigateUpTo()
[all …]
DShareCompat.java21 import android.content.Intent;
261 private Intent mIntent;
281 mIntent = new Intent().setAction(Intent.ACTION_SEND); in IntentBuilder()
284 mIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in IntentBuilder()
296 public Intent getIntent() { in getIntent()
298 combineArrayExtra(Intent.EXTRA_EMAIL, mToAddresses); in getIntent()
302 combineArrayExtra(Intent.EXTRA_CC, mCcAddresses); in getIntent()
306 combineArrayExtra(Intent.EXTRA_BCC, mBccAddresses); in getIntent()
312 boolean isSendMultiple = mIntent.getAction().equals(Intent.ACTION_SEND_MULTIPLE); in getIntent()
317 mIntent.setAction(Intent.ACTION_SEND); in getIntent()
[all …]
/frameworks/support/v4/java/android/support/v4/content/
DIntentCompat.java21 import android.content.Intent;
31 Intent makeMainActivity(ComponentName componentName); in makeMainActivity()
32 Intent makeMainSelectorActivity(String selectorAction, String selectorCategory); in makeMainSelectorActivity()
33 Intent makeRestartActivityTask(ComponentName mainActivity); in makeRestartActivityTask()
38 public Intent makeMainActivity(ComponentName componentName) { in makeMainActivity()
39 Intent intent = new Intent(Intent.ACTION_MAIN); in makeMainActivity()
41 intent.addCategory(Intent.CATEGORY_LAUNCHER); in makeMainActivity()
46 public Intent makeMainSelectorActivity(String selectorAction, in makeMainSelectorActivity()
51 Intent intent = new Intent(selectorAction); in makeMainSelectorActivity()
57 public Intent makeRestartActivityTask(ComponentName mainActivity) { in makeRestartActivityTask()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSomnambulator.java20 import android.content.Intent;
38 final Intent launchIntent = getIntent(); in onStart()
40 if (Intent.ACTION_CREATE_SHORTCUT.equals(action)) { in onStart()
41 Intent shortcutIntent = new Intent(this, Somnambulator.class); in onStart()
42 shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS in onStart()
43 | Intent.FLAG_ACTIVITY_NEW_TASK); in onStart()
44 Intent resultIntent = new Intent(); in onStart()
45 resultIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, in onStart()
46 Intent.ShortcutIconResource.fromContext(this, R.mipmap.ic_launcher_dreams)); in onStart()
47 resultIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); in onStart()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageMonitor.java21 import android.content.Intent;
42 sPackageFilt.addAction(Intent.ACTION_PACKAGE_ADDED);
43 sPackageFilt.addAction(Intent.ACTION_PACKAGE_REMOVED);
44 sPackageFilt.addAction(Intent.ACTION_PACKAGE_CHANGED);
45 sPackageFilt.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART);
46 sPackageFilt.addAction(Intent.ACTION_PACKAGE_RESTARTED);
47 sPackageFilt.addAction(Intent.ACTION_UID_REMOVED);
49 sNonDataFilt.addAction(Intent.ACTION_UID_REMOVED);
50 sNonDataFilt.addAction(Intent.ACTION_USER_STOPPED);
51 sExternalFilt.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE);
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DSubActivityScreen.java21 import android.content.Intent;
49 Intent.FILL_IN_ACTION); in onCreate()
50 Intent res = new Intent(); in onCreate()
58 Intent intent = new Intent(); in onCreate()
85 setResult(RESULT_CANCELED, (new Intent()).setAction("Interrupted!")); in onResume()
95 Intent res = new Intent(); in onResume()
109 Intent data) { in onActivityResult()
122 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
129 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
132 setResult(RESULT_CANCELED, (new Intent()).setAction( in onActivityResult()
[all …]
DServiceTest.java21 import android.content.Intent;
191 void startExpectResult(Intent service) { in startExpectResult()
195 void startExpectResult(Intent service, Bundle bundle) { in startExpectResult()
201 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult()
205 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult()
223 void startExpectNoPermission(Intent service) { in startExpectNoPermission()
232 void bindExpectResult(Intent service) { in bindExpectResult()
339 void bindAutoExpectResult(Intent service) { in bindAutoExpectResult()
363 void bindExpectNoPermission(Intent service) { in bindExpectNoPermission()
378 startExpectResult(new Intent(getContext(), LocalService.class)); in testLocalStartClass()
[all …]
DBroadcastTest.java23 import android.content.Intent;
108 public Intent makeBroadcastIntent(String action) { in makeBroadcastIntent()
109 Intent intent = new Intent(action, null); in makeBroadcastIntent()
114 public void finishWithResult(int resultCode, Intent data) { in finishWithResult()
119 public final void gotReceive(String name, Intent intent) { in gotReceive()
195 public void onRegisteredReceiver(Intent intent) { in onRegisteredReceiver()
226 public void onReceive(Context context, Intent intent) {
264 public void onReceive(Context context, Intent intent) { in onReceive()
280 new Intent("com.android.frameworks.coretests.activity.BROADCAST_RESULT"), in testResult()
305 Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null); in testSetSticky()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DUriPermission.java19 import android.content.Intent;
105 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in initPersistedModes()
106 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in initPersistedModes()
116 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in grantModes()
117 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in grantModes()
118 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in grantModes()
127 if ((modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0) { in grantModes()
130 if ((modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) { in grantModes()
142 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in takePersistableModes()
143 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in takePersistableModes()
[all …]
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportReceiver.java29 import android.content.Intent;
67 public void onReceive(Context context, Intent intent) { in onReceive()
76 Intent sendIntent = buildSendIntent(context, bugreportUri, screenshotUri); in onReceive()
77 Intent notifIntent; in onReceive()
85 notifIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onReceive()
114 private static Intent buildWarningIntent(Context context, Intent sendIntent) { in buildWarningIntent()
115 final Intent intent = new Intent(context, BugreportWarningActivity.class); in buildWarningIntent()
116 intent.putExtra(Intent.EXTRA_INTENT, sendIntent); in buildWarningIntent()
123 private static Intent buildSendIntent(Context context, Uri bugreportUri, Uri screenshotUri) { in buildSendIntent()
124 final Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); in buildSendIntent()
[all …]
/frameworks/base/core/java/android/app/
DTaskStackBuilder.java22 import android.content.Intent;
64 private final ArrayList<Intent> mIntents = new ArrayList<Intent>();
89 public TaskStackBuilder addNextIntent(Intent nextIntent) { in addNextIntent()
106 public TaskStackBuilder addNextIntentWithParentStack(Intent nextIntent) { in addNextIntentWithParentStack()
129 final Intent parent = sourceActivity.getParentActivityIntent(); in addParentStack()
174 final Intent parent = parentActivity == null && insertAt == 0 in addParentStack()
175 ? Intent.makeMainActivity(target) in addParentStack()
176 : new Intent().setComponent(target); in addParentStack()
201 public Intent editIntentAt(int index) { in editIntentAt()
300 public Intent[] getIntents() { in getIntents()
[all …]
/frameworks/base/core/java/android/content/
DContext.java1195 public abstract void startActivity(Intent intent); in startActivity()
1207 public void startActivityAsUser(Intent intent, UserHandle user) { in startActivityAsUser()
1236 public abstract void startActivity(Intent intent, @Nullable Bundle options); in startActivity()
1252 public void startActivityAsUser(Intent intent, @Nullable Bundle options, UserHandle userId) { in startActivityAsUser()
1267 public abstract void startActivities(Intent[] intents); in startActivities()
1293 public abstract void startActivities(Intent[] intents, Bundle options); in startActivities()
1321 public void startActivitiesAsUser(Intent[] intents, Bundle options, UserHandle userHandle) { in startActivitiesAsUser()
1342 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) in startIntentSender()
1371 @Nullable Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, in startIntentSender()
1394 public abstract void sendBroadcast(Intent intent); in sendBroadcast()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java23 import android.content.Intent;
175 Uri uri = Settings.Bookmarks.add(r, new Intent("TEST"), in testRowNumberContentUri()
289 assertCanBeHandled(new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)); in testSettings()
290 assertCanBeHandled(new Intent(Settings.ACTION_ADD_ACCOUNT)); in testSettings()
291 assertCanBeHandled(new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS)); in testSettings()
292 assertCanBeHandled(new Intent(Settings.ACTION_APN_SETTINGS)); in testSettings()
293 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS) in testSettings()
295 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS)); in testSettings()
296 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_SETTINGS)); in testSettings()
297 assertCanBeHandled(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS)); in testSettings()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java22 import android.content.Intent;
46 public class BroadcastInterceptor extends AbstractFuture<Intent> {
55 public boolean dispatchBroadcast(Intent intent) { in dispatchBroadcast()
71 public Intent get() throws InterruptedException, ExecutionException { in get()
84 public Future<Intent> nextBroadcastIntent(String action) { in nextBroadcastIntent()
88 public Future<Intent> nextBroadcastIntent(IntentFilter filter) { in nextBroadcastIntent()
97 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
105 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
124 public void sendBroadcast(Intent intent) { in sendBroadcast()
137 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast()
[all …]
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java30 import android.content.Intent;
63 private int mDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
65 private int mLastBroadcastState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
97 private static Intent buildHomeIntent(String category) { in buildHomeIntent()
98 Intent intent = new Intent(Intent.ACTION_MAIN); in buildHomeIntent()
100 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK in buildHomeIntent()
101 | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); in buildHomeIntent()
111 public void onReceive(Context context, Intent intent) {
130 public void onReceive(Context context, Intent intent) {
131 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE,
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDateView.java21 import android.content.Intent;
45 public void onReceive(Context context, Intent intent) {
47 if (Intent.ACTION_TIME_TICK.equals(action)
48 || Intent.ACTION_TIME_CHANGED.equals(action)
49 || Intent.ACTION_TIMEZONE_CHANGED.equals(action)
50 || Intent.ACTION_LOCALE_CHANGED.equals(action)) {
51 if (Intent.ACTION_LOCALE_CHANGED.equals(action)
52 || Intent.ACTION_TIMEZONE_CHANGED.equals(action)) {
83 filter.addAction(Intent.ACTION_TIME_TICK); in onAttachedToWindow()
84 filter.addAction(Intent.ACTION_TIME_CHANGED); in onAttachedToWindow()
[all …]
DSplitClockView.java22 import android.content.Intent;
43 public void onReceive(Context context, Intent intent) {
45 if (Intent.ACTION_TIME_CHANGED.equals(action)
46 || Intent.ACTION_TIMEZONE_CHANGED.equals(action)
47 || Intent.ACTION_LOCALE_CHANGED.equals(action)
48 || Intent.ACTION_CONFIGURATION_CHANGED.equals(action)
49 || Intent.ACTION_USER_SWITCHED.equals(action)) {
73 filter.addAction(Intent.ACTION_TIME_CHANGED); in onAttachedToWindow()
74 filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); in onAttachedToWindow()
75 filter.addAction(Intent.ACTION_LOCALE_CHANGED); in onAttachedToWindow()
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java22 import android.content.Intent;
276 public void startActivity(Intent intent) { in startActivity()
281 public void startActivity(Intent intent, Bundle options) { in startActivity()
286 public void startActivities(Intent[] intents) { in startActivities()
291 public void startActivities(Intent[] intents, Bundle options) { in startActivities()
297 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) in startIntentSender()
304 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, in startIntentSender()
310 public void sendBroadcast(Intent intent) { in sendBroadcast()
315 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast()
321 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast()
[all …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardActivityLauncher.java28 import android.content.Intent;
49 private static final Intent SECURE_CAMERA_INTENT =
50 new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE)
51 .addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
52 private static final Intent INSECURE_CAMERA_INTENT =
53 new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
70 Intent intent = getCameraIntent(); in getCameraWidgetInfo()
136 Intent pickIntent = new Intent(AppWidgetManager.ACTION_KEYGUARD_APPWIDGET_PICK); in launchWidgetPicker()
148 Intent.FLAG_ACTIVITY_NEW_TASK in launchWidgetPicker()
149 | Intent.FLAG_ACTIVITY_SINGLE_TOP in launchWidgetPicker()
[all …]
/frameworks/support/tests/java/android/support/tests/
DGrantActivity.java21 import android.content.Intent;
34 final Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE); in onCreate()
39 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult()
43 Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in onActivityResult()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DSchedulerService.java22 import android.content.Intent;
28 public int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand()
34 new Intent(this, FrameworkPerfActivity.class) in onStartCommand()
35 .setAction(Intent.ACTION_MAIN) in onStartCommand()
36 .addCategory(Intent.CATEGORY_LAUNCHER) in onStartCommand()
37 .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0)); in onStartCommand()
43 public IBinder onBind(Intent intent) { in onBind()

12345678910>>...43