/frameworks/base/core/java/com/android/internal/content/ |
D | PackageMonitor.java | 21 import android.content.Intent; 37 sPackageFilt.addAction(Intent.ACTION_PACKAGE_ADDED); 38 sPackageFilt.addAction(Intent.ACTION_PACKAGE_REMOVED); 39 sPackageFilt.addAction(Intent.ACTION_PACKAGE_CHANGED); 40 sPackageFilt.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART); 41 sPackageFilt.addAction(Intent.ACTION_PACKAGE_RESTARTED); 42 sPackageFilt.addAction(Intent.ACTION_UID_REMOVED); 44 sNonDataFilt.addAction(Intent.ACTION_UID_REMOVED); 45 sExternalFilt.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE); 46 sExternalFilt.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE); [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | SubActivityScreen.java | 21 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 …]
|
D | ServiceTest.java | 21 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 …]
|
D | BroadcastTest.java | 23 import android.content.Intent; 107 public Intent makeBroadcastIntent(String action) { in makeBroadcastIntent() 108 Intent intent = new Intent(action, null); in makeBroadcastIntent() 113 public void finishWithResult(int resultCode, Intent data) { in finishWithResult() 118 public final void gotReceive(String name, Intent intent) { in gotReceive() 194 public void onRegisteredReceiver(Intent intent) { in onRegisteredReceiver() 225 public void onReceive(Context context, Intent intent) { 263 public void onReceive(Context context, Intent intent) { in onReceive() 279 new Intent("com.android.frameworks.coretests.activity.BROADCAST_RESULT"), in testResult() 304 Intent intent = new Intent(LaunchpadActivity.BROADCAST_STICKY1, null); in testSetSticky() [all …]
|
D | ActivityTestsBase.java | 21 import android.content.Intent; 32 protected Intent mIntent; 40 private Intent mData; 46 mIntent = new Intent(mContext, LaunchpadActivity.class); in setUp() 87 public void activityFinished(int resultCode, Intent data, RuntimeException where) { in activityFinished() 91 public Intent editIntent() { in editIntent() 109 finishWithResult(Activity.RESULT_CANCELED, (new Intent()).setAction(error)); in finishBad() 112 public void finishWithResult(int resultCode, Intent data) { in finishWithResult() 118 public void finishWithResult(int resultCode, Intent data, RuntimeException where) { in finishWithResult() 136 mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in runLaunchpad() [all …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 22 import android.content.Intent; 135 Uri uri = Settings.Bookmarks.add(r, new Intent("TEST"), in testRowNumberContentUri() 202 assertCanBeHandled(new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)); in testSettings() 203 assertCanBeHandled(new Intent(Settings.ACTION_ADD_ACCOUNT)); in testSettings() 204 assertCanBeHandled(new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS)); in testSettings() 205 assertCanBeHandled(new Intent(Settings.ACTION_APN_SETTINGS)); in testSettings() 206 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS) in testSettings() 208 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS)); in testSettings() 209 assertCanBeHandled(new Intent(Settings.ACTION_APPLICATION_SETTINGS)); in testSettings() 210 assertCanBeHandled(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS)); in testSettings() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserActivity.java | 19 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 …]
|
D | ExternalMediaFormatActivity.java | 25 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/services/java/com/android/server/ |
D | DockObserver.java | 23 import android.content.Intent; 52 private int mDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED; 53 private int mPreviousDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED; 85 if (mPreviousDockState != Intent.EXTRA_DOCK_STATE_DESK || in onUEvent() 86 mDockState != Intent.EXTRA_DOCK_STATE_UNDOCKED) { in onUEvent() 117 if (mDockState != Intent.EXTRA_DOCK_STATE_UNDOCKED) { in systemReady() 144 Intent intent = new Intent(Intent.ACTION_DOCK_EVENT); 145 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); 146 intent.putExtra(Intent.EXTRA_DOCK_STATE, mDockState); 160 if (mDockState == Intent.EXTRA_DOCK_STATE_UNDOCKED) { [all …]
|
D | UiModeManagerService.java | 31 import android.content.Intent; 83 private int mDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED; 84 private int mLastBroadcastState = Intent.EXTRA_DOCK_STATE_UNDOCKED; 110 static Intent buildHomeIntent(String category) { in buildHomeIntent() 111 Intent intent = new Intent(Intent.ACTION_MAIN); in buildHomeIntent() 113 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK in buildHomeIntent() 114 | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); in buildHomeIntent() 124 public void onReceive(Context context, Intent intent) { 139 category = Intent.CATEGORY_CAR_DOCK; 146 category = Intent.CATEGORY_DESK_DOCK; [all …]
|
D | DeviceStorageMonitorService.java | 24 import android.content.Intent; 88 private Intent mStorageLowIntent; 89 private Intent mStorageOkIntent; 90 private Intent mStorageFullIntent; 91 private Intent mStorageNotFullIntent; 315 mStorageLowIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_LOW); in DeviceStorageMonitorService() 316 mStorageLowIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); in DeviceStorageMonitorService() 317 mStorageOkIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_OK); in DeviceStorageMonitorService() 318 mStorageOkIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); in DeviceStorageMonitorService() 319 mStorageFullIntent = new Intent(Intent.ACTION_DEVICE_STORAGE_FULL); in DeviceStorageMonitorService() [all …]
|
D | WiredAccessoryObserver.java | 22 import android.content.Intent; 78 new IntentFilter(Intent.ACTION_BOOT_COMPLETED), null, null); in WiredAccessoryObserver() 83 public void onReceive(Context context, Intent intent) { in onReceive() 194 Intent intent = new Intent(AudioManager.ACTION_AUDIO_BECOMING_NOISY); in update() 236 Intent intent; in sendIntent() 240 intent = new Intent(Intent.ACTION_USB_ANLG_HEADSET_PLUG); in sendIntent() 241 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); in sendIntent() 246 intent = new Intent(Intent.ACTION_USB_DGTL_HEADSET_PLUG); in sendIntent() 247 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); in sendIntent() 252 intent = new Intent(Intent.ACTION_HDMI_AUDIO_PLUG); in sendIntent() [all …]
|
D | AlarmManagerService.java | 26 import android.content.Intent; 76 private static final Intent mBackgroundIntent 77 = new Intent().addFlags(Intent.FLAG_FROM_BACKGROUND); 109 HashMap<Intent.FilterComparison, FilterStats> filterStats 110 = new HashMap<Intent.FilterComparison, FilterStats>(); 131 new Intent(Intent.ACTION_TIME_TICK).addFlags( in AlarmManagerService() 132 Intent.FLAG_RECEIVER_REGISTERED_ONLY), 0); in AlarmManagerService() 133 Intent intent = new Intent(Intent.ACTION_DATE_CHANGED); in AlarmManagerService() 134 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); in AlarmManagerService() 265 Intent intent = new Intent(Intent.ACTION_TIMEZONE_CHANGED); in setTimeZone() [all …]
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | PhoneFallbackEventHandler.java | 23 import android.content.Intent; 103 Intent intent = new Intent(Intent.ACTION_MEDIA_BUTTON, null); in onKeyDown() 104 intent.putExtra(Intent.EXTRA_KEY_EVENT, event); in onKeyDown() 119 Intent intent = new Intent(Intent.ACTION_VOICE_COMMAND); in onKeyDown() 120 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onKeyDown() 142 Intent intent = new Intent(Intent.ACTION_CAMERA_BUTTON, null); in onKeyDown() 143 intent.putExtra(Intent.EXTRA_KEY_EVENT, event); in onKeyDown() 160 Intent intent = new Intent(Intent.ACTION_SEARCH_LONG_PRESS); in onKeyDown() 161 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onKeyDown() 218 Intent intent = new Intent(Intent.ACTION_MEDIA_BUTTON, null); in onKeyUp() [all …]
|
/frameworks/base/services/java/com/android/server/am/ |
D | UriPermissionOwner.java | 19 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/services/tests/servicestests/src/com/android/server/ |
D | BroadcastInterceptingContext.java | 22 import android.content.Intent; 45 public class BroadcastInterceptor extends AbstractFuture<Intent> { 54 public boolean dispatchBroadcast(Intent intent) { in dispatchBroadcast() 70 public Intent get() throws InterruptedException, ExecutionException { in get() 83 public Future<Intent> nextBroadcastIntent(String action) { in nextBroadcastIntent() 87 public Future<Intent> nextBroadcastIntent(IntentFilter filter) { in nextBroadcastIntent() 96 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() 104 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() 123 public void sendBroadcast(Intent intent) { in sendBroadcast() 136 public void sendStickyBroadcast(Intent intent) { in sendStickyBroadcast() [all …]
|
/frameworks/base/tests/SmokeTest/src/com/android/smoketest/ |
D | SmokeTestActivity.java | 20 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/DumpRenderTree2/src/com/android/dumprendertree2/ |
D | TestsListActivity.java | 23 import android.content.Intent; 83 Intent intent = getIntent(); in onCreate() 84 if (!intent.getAction().equals(Intent.ACTION_RUN)) { in onCreate() 92 Intent serviceIntent = new Intent(this, ManagerService.class); in onCreate() 100 protected void onNewIntent(Intent intent) { in onNewIntent() 101 if (intent.getAction().equals(Intent.ACTION_REBOOT)) { in onNewIntent() 103 } else if (intent.getAction().equals(Intent.ACTION_SHUTDOWN)) { in onNewIntent() 117 private void onCrashIntent(Intent intent) { in onCrashIntent() 131 private void onEverythingFinishedIntent(Intent intent) { in onEverythingFinishedIntent() 188 Intent intent = new Intent(); in restartExecutor() [all …]
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | Menu.java | 19 import android.content.Intent; 52 Intent intent = new Intent(Intent.ACTION_VIEW); in processFile() 54 intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); in processFile() 64 Intent intent = new Intent(Intent.ACTION_VIEW); in processDirectory() 66 intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); in processDirectory()
|
/frameworks/base/core/java/android/content/ |
D | Intent.java | 593 public class Intent implements Parcelable, Cloneable { class 831 public static Intent createChooser(Intent target, CharSequence title) { in createChooser() 832 Intent intent = new Intent(ACTION_CHOOSER); in createChooser() 2904 public Intent() { in Intent() method in Intent 2910 public Intent(Intent o) { in Intent() method in Intent 2930 return new Intent(this); in clone() 2933 private Intent(Intent o, boolean all) { in Intent() method in Intent 2948 public Intent cloneFilter() { in cloneFilter() 2949 return new Intent(this, false); in cloneFilter() 2962 public Intent(String action) { in Intent() method in Intent [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | AirplaneModeController.java | 22 import android.content.Intent; 48 filter.addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED); in AirplaneModeController() 64 public void onReceive(Context context, Intent intent) { in onReceive() 65 if (Intent.ACTION_AIRPLANE_MODE_CHANGED.equals(intent.getAction())) { in onReceive() 88 Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); in unsafe() 89 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); in unsafe()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnConfig.java | 21 import android.content.Intent; 39 public static Intent getIntentForConfirmation() { in getIntentForConfirmation() 40 Intent intent = new Intent(); in getIntentForConfirmation() 46 Intent intent = new Intent(); in getIntentForStatusPanel() 49 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NO_HISTORY | in getIntentForStatusPanel() 50 Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); in getIntentForStatusPanel()
|
/frameworks/base/core/java/android/server/search/ |
D | SearchManagerService.java | 28 import android.content.Intent; 64 new IntentFilter(Intent.ACTION_BOOT_COMPLETED)); in SearchManagerService() 84 public void onReceive(Context context, Intent intent) { in onReceive() 115 Intent intent = new Intent(SearchManager.INTENT_ACTION_SEARCHABLES_CHANGED); in updateSearchables() 116 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); in updateSearchables() 136 Intent intent = new Intent(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED); in onChange() 137 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); in onChange()
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 25 import android.content.Intent; 203 public void onEnabled(Context context, Intent intent) { in onEnabled() 217 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() 229 public void onDisabled(Context context, Intent intent) { in onDisabled() 241 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() 252 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed() 263 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded() 284 public void onPasswordExpiring(Context context, Intent intent) { in onPasswordExpiring() 293 public void onReceive(Context context, Intent intent) { in onReceive()
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViewsService.java | 22 import android.content.Intent; 41 private static final HashMap<Intent.FilterComparison, RemoteViewsFactory> sRemoteViewFactories = 42 new HashMap<Intent.FilterComparison, RemoteViewsFactory>(); 211 public void onDestroy(Intent intent) { in onDestroy() 213 Intent.FilterComparison fc = new Intent.FilterComparison(intent); in onDestroy() 232 public IBinder onBind(Intent intent) { in onBind() 234 Intent.FilterComparison fc = new Intent.FilterComparison(intent); in onBind() 254 public abstract RemoteViewsFactory onGetViewFactory(Intent intent); in onGetViewFactory()
|