Home
last modified time | relevance | path

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

12345678910>>...31

/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;
42 Intent getParentActivityIntent(Activity activity); in getParentActivityIntent()
43 boolean shouldUpRecreateTask(Activity activity, Intent targetIntent); in shouldUpRecreateTask()
44 void navigateUpTo(Activity activity, Intent upIntent); in navigateUpTo()
51 public Intent getParentActivityIntent(Activity activity) { in getParentActivityIntent()
59 final Intent parentIntent = grandparent == null in getParentActivityIntent()
61 : new Intent().setComponent(target); in getParentActivityIntent()
71 public boolean shouldUpRecreateTask(Activity activity, Intent targetIntent) { in shouldUpRecreateTask()
73 return action != null && !action.equals(Intent.ACTION_MAIN); in shouldUpRecreateTask()
77 public void navigateUpTo(Activity activity, Intent upIntent) { in navigateUpTo()
[all …]
DShareCompat.java21 import android.content.Intent;
260 private Intent mIntent;
280 mIntent = new Intent().setAction(Intent.ACTION_SEND); in IntentBuilder()
283 mIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in IntentBuilder()
295 public Intent getIntent() { in getIntent()
297 combineArrayExtra(Intent.EXTRA_EMAIL, mToAddresses); in getIntent()
301 combineArrayExtra(Intent.EXTRA_CC, mCcAddresses); in getIntent()
305 combineArrayExtra(Intent.EXTRA_BCC, mBccAddresses); in getIntent()
311 boolean isSendMultiple = mIntent.getAction().equals(Intent.ACTION_SEND_MULTIPLE); in getIntent()
316 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;
45 sPackageFilt.addAction(Intent.ACTION_PACKAGE_ADDED);
46 sPackageFilt.addAction(Intent.ACTION_PACKAGE_REMOVED);
47 sPackageFilt.addAction(Intent.ACTION_PACKAGE_CHANGED);
48 sPackageFilt.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART);
49 sPackageFilt.addAction(Intent.ACTION_PACKAGE_RESTARTED);
50 sPackageFilt.addAction(Intent.ACTION_UID_REMOVED);
52 sNonDataFilt.addAction(Intent.ACTION_UID_REMOVED);
53 sNonDataFilt.addAction(Intent.ACTION_USER_STOPPED);
54 sExternalFilt.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE);
[all …]
/frameworks/base/services/java/com/android/server/
DIdleMaintenanceService.java24 import android.content.Intent;
72 private static final Intent sIdleMaintenanceStartIntent;
74 sIdleMaintenanceStartIntent = new Intent(Intent.ACTION_IDLE_MAINTENANCE_START);
75 sIdleMaintenanceStartIntent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
78 private static final Intent sIdleMaintenanceEndIntent;
80 sIdleMaintenanceEndIntent = new Intent(Intent.ACTION_IDLE_MAINTENANCE_END);
81 sIdleMaintenanceEndIntent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
113 Intent intent = new Intent(ACTION_UPDATE_IDLE_MAINTENANCE_STATE); in IdleMaintenanceService()
114 intent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); in IdleMaintenanceService()
128 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in register()
[all …]
DDockObserver.java21 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) { in systemReady()
144 Intent intent = new Intent(Intent.ACTION_DOCK_EVENT); in handleDockStateChange()
145 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); in handleDockStateChange()
146 intent.putExtra(Intent.EXTRA_DOCK_STATE, mDockState); in handleDockStateChange()
153 if (mDockState == Intent.EXTRA_DOCK_STATE_UNDOCKED) { in handleDockStateChange()
154 if ((mPreviousDockState == Intent.EXTRA_DOCK_STATE_DESK) || in handleDockStateChange()
155 (mPreviousDockState == Intent.EXTRA_DOCK_STATE_LE_DESK) || in handleDockStateChange()
[all …]
DUiModeManagerService.java30 import android.content.Intent;
66 private int mDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
67 private int mLastBroadcastState = Intent.EXTRA_DOCK_STATE_UNDOCKED;
93 static Intent buildHomeIntent(String category) { in buildHomeIntent()
94 Intent intent = new Intent(Intent.ACTION_MAIN); in buildHomeIntent()
96 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK in buildHomeIntent()
97 | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); in buildHomeIntent()
107 public void onReceive(Context context, Intent intent) {
126 public void onReceive(Context context, Intent intent) {
127 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE,
[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/core/java/com/android/internal/app/
DChooserActivity.java19 import android.content.Intent;
27 Intent intent = getIntent(); in onCreate()
28 Parcelable targetParcelable = intent.getParcelableExtra(Intent.EXTRA_INTENT); in onCreate()
29 if (!(targetParcelable instanceof Intent)) { in onCreate()
34 Intent target = (Intent)targetParcelable; in onCreate()
35 CharSequence title = intent.getCharSequenceExtra(Intent.EXTRA_TITLE); in onCreate()
39 Parcelable[] pa = intent.getParcelableArrayExtra(Intent.EXTRA_INITIAL_INTENTS); in onCreate()
40 Intent[] initialIntents = null; in onCreate()
42 initialIntents = new Intent[pa.length]; in onCreate()
44 if (!(pa[i] instanceof Intent)) { 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) {
76 filter.addAction(Intent.ACTION_MEDIA_REMOVED); in onResume()
77 filter.addAction(Intent.ACTION_MEDIA_CHECKING); in onResume()
78 filter.addAction(Intent.ACTION_MEDIA_MOUNTED); in onResume()
79 filter.addAction(Intent.ACTION_MEDIA_SHARED); in onResume()
[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()
110 private static Intent buildWarningIntent(Context context, Intent sendIntent) { in buildWarningIntent()
111 final Intent intent = new Intent(context, BugreportWarningActivity.class); in buildWarningIntent()
112 intent.putExtra(Intent.EXTRA_INTENT, sendIntent); in buildWarningIntent()
119 private static Intent buildSendIntent(Context context, Uri bugreportUri, Uri screenshotUri) { in buildSendIntent()
120 final Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); in buildSendIntent()
[all …]
/frameworks/base/core/java/android/app/
DTaskStackBuilder.java21 import android.content.Intent;
63 private final ArrayList<Intent> mIntents = new ArrayList<Intent>();
88 public TaskStackBuilder addNextIntent(Intent nextIntent) { in addNextIntent()
105 public TaskStackBuilder addNextIntentWithParentStack(Intent nextIntent) { in addNextIntentWithParentStack()
128 final Intent parent = sourceActivity.getParentActivityIntent(); in addParentStack()
173 final Intent parent = parentActivity == null && insertAt == 0 in addParentStack()
174 ? Intent.makeMainActivity(target) in addParentStack()
175 : new Intent().setComponent(target); in addParentStack()
200 public Intent editIntentAt(int index) { in editIntentAt()
297 public Intent[] getIntents() { in getIntents()
[all …]
/frameworks/base/core/java/android/content/
DContext.java919 public abstract void startActivity(Intent intent); in startActivity()
931 public void startActivityAsUser(Intent intent, UserHandle user) { in startActivityAsUser()
960 public abstract void startActivity(Intent intent, Bundle options); in startActivity()
976 public void startActivityAsUser(Intent intent, Bundle options, UserHandle userId) { in startActivityAsUser()
991 public abstract void startActivities(Intent[] intents); in startActivities()
1017 public abstract void startActivities(Intent[] intents, Bundle options); in startActivities()
1045 public void startActivitiesAsUser(Intent[] intents, Bundle options, UserHandle userHandle) { in startActivitiesAsUser()
1066 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) in startIntentSender()
1095 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, in startIntentSender()
1118 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/java/com/android/server/am/
DUriPermissionOwner.java19 import android.content.Intent;
62 removeUriPermissionsLocked(Intent.FLAG_GRANT_READ_URI_PERMISSION in removeUriPermissionsLocked()
63 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in removeUriPermissionsLocked()
67 if ((mode&Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0 in removeUriPermissionsLocked()
72 &Intent.FLAG_GRANT_READ_URI_PERMISSION) == 0) { in removeUriPermissionsLocked()
73 perm.modeFlags &= ~Intent.FLAG_GRANT_READ_URI_PERMISSION; in removeUriPermissionsLocked()
79 if ((mode&Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0 in removeUriPermissionsLocked()
84 &Intent.FLAG_GRANT_WRITE_URI_PERMISSION) == 0) { in removeUriPermissionsLocked()
85 perm.modeFlags &= ~Intent.FLAG_GRANT_WRITE_URI_PERMISSION; in removeUriPermissionsLocked()
94 if ((mode&Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0 in removeUriPermissionLocked()
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java22 import android.content.Intent;
259 public void startActivity(Intent intent) { in startActivity()
264 public void startActivity(Intent intent, Bundle options) { in startActivity()
269 public void startActivities(Intent[] intents) { in startActivities()
274 public void startActivities(Intent[] intents, Bundle options) { in startActivities()
280 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) in startIntentSender()
287 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, in startIntentSender()
293 public void sendBroadcast(Intent intent) { in sendBroadcast()
298 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast()
304 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast()
[all …]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
DKeyguardActivityLauncher.java26 import android.content.Intent;
47 private static final Intent SECURE_CAMERA_INTENT =
48 new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE)
49 .addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
50 private static final Intent INSECURE_CAMERA_INTENT =
51 new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
66 Intent intent = getCameraIntent(); in getCameraWidgetInfo()
119 Intent pickIntent = new Intent(AppWidgetManager.ACTION_KEYGUARD_APPWIDGET_PICK); in launchWidgetPicker()
131 Intent.FLAG_ACTIVITY_NEW_TASK in launchWidgetPicker()
132 | Intent.FLAG_ACTIVITY_SINGLE_TOP in launchWidgetPicker()
[all …]
/frameworks/opt/mailcommon/java/com/android/mailcommon/
DWebViewContextMenu.java24 import android.content.Intent;
118 Intent send = new Intent(Intent.ACTION_SEND); in showShareLinkMenuItem()
125 Intent send = new Intent(Intent.ACTION_SEND); in shareLink()
127 send.putExtra(Intent.EXTRA_TEXT, url); in shareLink()
130 mActivity.startActivity(Intent.createChooser(send, mActivity.getText( in shareLink()
209 dialMenuItem.setIntent(new Intent(Intent.ACTION_VIEW, in onCreateContextMenu()
217 sendSmsMenuItem.setIntent(new Intent(Intent.ACTION_SENDTO, in onCreateContextMenu()
221 final Intent addIntent = new Intent(Intent.ACTION_INSERT_OR_EDIT); in onCreateContextMenu()
239 new Intent(Intent.ACTION_VIEW, Uri in onCreateContextMenu()
258 viewMapMenuItem.setIntent(new Intent(Intent.ACTION_VIEW, in onCreateContextMenu()
[all …]
/frameworks/base/tests/SmokeTest/src/com/android/smoketest/
DSmokeTestActivity.java20 import android.content.Intent;
33 protected Intent getTargetIntent() { in getTargetIntent()
35 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null); in getTargetIntent()
38 targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in getTargetIntent()
/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>>...31