/frameworks/support/core-utils/java/android/support/v4/app/ |
D | TaskStackBuilder.java | 24 import android.content.Intent; 69 public final class TaskStackBuilder implements Iterable<Intent> { 73 Intent getSupportParentActivityIntent(); in getSupportParentActivityIntent() 77 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent() 79 intents[0] = new Intent(intents[0]).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in getPendingIntent() 80 | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_TASK_ON_HOME); in getPendingIntent() 88 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent() 90 intents[0] = new Intent(intents[0]).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in getPendingIntent() 91 | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_TASK_ON_HOME); in getPendingIntent() 106 private final ArrayList<Intent> mIntents = new ArrayList<Intent>(); [all …]
|
D | NavUtils.java | 22 import android.content.Intent; 56 public static boolean shouldUpRecreateTask(Activity sourceActivity, Intent targetIntent) { in shouldUpRecreateTask() 61 return action != null && !action.equals(Intent.ACTION_MAIN); in shouldUpRecreateTask() 78 Intent upIntent = getParentActivityIntent(sourceActivity); in navigateUpFromSameTask() 104 public static void navigateUpTo(Activity sourceActivity, Intent upIntent) { in navigateUpTo() 108 upIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in navigateUpTo() 124 public static Intent getParentActivityIntent(Activity sourceActivity) { in getParentActivityIntent() 128 Intent result = sourceActivity.getParentActivityIntent(); in getParentActivityIntent() 141 ? Intent.makeMainActivity(target) in getParentActivityIntent() 142 : new Intent().setComponent(target); in getParentActivityIntent() [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageMonitor.java | 21 import android.content.Intent; 43 sPackageFilt.addAction(Intent.ACTION_PACKAGE_ADDED); 44 sPackageFilt.addAction(Intent.ACTION_PACKAGE_REMOVED); 45 sPackageFilt.addAction(Intent.ACTION_PACKAGE_CHANGED); 46 sPackageFilt.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART); 47 sPackageFilt.addAction(Intent.ACTION_PACKAGE_RESTARTED); 48 sPackageFilt.addAction(Intent.ACTION_PACKAGE_DATA_CLEARED); 50 sNonDataFilt.addAction(Intent.ACTION_UID_REMOVED); 51 sNonDataFilt.addAction(Intent.ACTION_USER_STOPPED); 52 sNonDataFilt.addAction(Intent.ACTION_PACKAGES_SUSPENDED); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Somnambulator.java | 20 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierSignalAgentTest.java | 18 import android.content.Intent; 73 Intent intent = new Intent(ACTION_CARRIER_SIGNAL_PCO_VALUE); in testNotifyManifestReceivers() 82 ArgumentCaptor<Intent> mCaptorIntent = ArgumentCaptor.forClass(Intent.class); in testNotifyManifestReceivers() 86 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testNotifyManifestReceivers() 96 .when(mPackageManager).queryBroadcastReceivers((Intent) any(), anyInt()); in testNotifyManifestReceivers() 99 mCaptorIntent = ArgumentCaptor.forClass(Intent.class); in testNotifyManifestReceivers() 103 Intent capturedIntent = mCaptorIntent.getAllValues().get(1); in testNotifyManifestReceivers() 117 Intent intent = new Intent(ACTION_CARRIER_SIGNAL_PCO_VALUE); in testNotifyRuntimeReceivers() 124 ArgumentCaptor<Intent> mCaptorIntent = ArgumentCaptor.forClass(Intent.class); in testNotifyRuntimeReceivers() 128 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testNotifyRuntimeReceivers() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
D | WizardManagerHelperTest.java | 26 import android.content.Intent; 48 final Intent intent = new Intent("test.intent.ACTION"); in testGetNextIntent() 54 final Intent data = new Intent(); in testGetNextIntent() 57 final Intent nextIntent = in testGetNextIntent() 76 final Intent intent = new Intent(); in testIsSetupWizardTrue() 84 final Intent intent = new Intent(); in testIsSetupWizardFalse() 92 final Intent intent = new Intent(); in testHoloIsNotLightTheme() 100 final Intent intent = new Intent(); in testHoloLightIsLightTheme() 108 final Intent intent = new Intent(); in testMaterialIsNotLightTheme() 116 final Intent intent = new Intent(); in testMaterialLightIsLightTheme() [all …]
|
/frameworks/support/compat/java/android/support/v4/app/ |
D | ShareCompat.java | 23 import android.content.Intent; 195 private Intent mIntent; 215 mIntent = new Intent().setAction(Intent.ACTION_SEND); in IntentBuilder() 218 mIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); in IntentBuilder() 230 public Intent getIntent() { in getIntent() 232 combineArrayExtra(Intent.EXTRA_EMAIL, mToAddresses); in getIntent() 236 combineArrayExtra(Intent.EXTRA_CC, mCcAddresses); in getIntent() 240 combineArrayExtra(Intent.EXTRA_BCC, mBccAddresses); in getIntent() 246 boolean isSendMultiple = mIntent.getAction().equals(Intent.ACTION_SEND_MULTIPLE); in getIntent() 251 mIntent.setAction(Intent.ACTION_SEND); in getIntent() [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 …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UriPermission.java | 19 import android.content.Intent; 114 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in initPersistedModes() 115 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in initPersistedModes() 125 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in grantModes() 126 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in grantModes() 127 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in grantModes() 136 if ((modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0) { in grantModes() 139 if ((modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) { in grantModes() 151 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in takePersistableModes() 152 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in takePersistableModes() [all …]
|
/frameworks/support/media-compat/java/android/support/v4/media/session/ |
D | MediaButtonReceiver.java | 24 import android.content.Intent; 97 public void onReceive(Context context, Intent intent) { in onReceive() 99 || !Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction()) in onReceive() 100 || !intent.hasExtra(Intent.EXTRA_KEY_EVENT)) { in onReceive() 105 getServiceComponentByAction(context, Intent.ACTION_MEDIA_BUTTON); in onReceive() 125 + Intent.ACTION_MEDIA_BUTTON + " or implements a media browser service."); in onReceive() 131 private final Intent mIntent; 136 MediaButtonConnectionCallback(Context context, Intent intent, PendingResult pendingResult) { in MediaButtonConnectionCallback() 151 KeyEvent ke = mIntent.getParcelableExtra(Intent.EXTRA_KEY_EVENT); in onConnected() 186 public static KeyEvent handleIntent(MediaSessionCompat mediaSessionCompat, Intent intent) { in handleIntent() [all …]
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/ |
D | AppBridge.java | 4 import android.content.Intent; 28 Intent intent = new Intent(ACTION_OSU_NOTIFICATION); in showOsuCount() 31 Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK); in showOsuCount() 38 Intent intent = new Intent(ACTION_OSU_NOTIFICATION); in showStatus() 45 Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK); in showStatus() 50 Intent intent = new Intent(ACTION_OSU_NOTIFICATION); in showDeauth() 56 Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK); in showDeauth()
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 29 import android.content.Intent; 484 public void onEnabled(Context context, Intent intent) { in onEnabled() 498 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() 510 public void onDisabled(Context context, Intent intent) { in onDisabled() 525 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() 539 public void onPasswordChanged(Context context, Intent intent, UserHandle user) { in onPasswordChanged() 555 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed() 569 public void onPasswordFailed(Context context, Intent intent, UserHandle user) { in onPasswordFailed() 585 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded() 599 public void onPasswordSucceeded(Context context, Intent intent, UserHandle user) { in onPasswordSucceeded() [all …]
|
/frameworks/base/core/java/android/app/ |
D | TaskStackBuilder.java | 22 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/support/compat/java/android/support/v4/content/ |
D | IntentCompat.java | 21 import android.content.Intent; 32 public Intent makeMainSelectorActivity(String selectorAction, in makeMainSelectorActivity() 37 Intent intent = new Intent(selectorAction); in makeMainSelectorActivity() 46 public Intent makeMainSelectorActivity(String selectorAction, String selectorCategory) { in makeMainSelectorActivity() 47 return Intent.makeMainSelectorActivity(selectorAction, selectorCategory); in makeMainSelectorActivity() 219 public static Intent makeMainActivity(ComponentName mainActivity) { in makeMainActivity() 220 return Intent.makeMainActivity(mainActivity); in makeMainActivity() 243 public static Intent makeMainSelectorActivity(String selectorAction, in makeMainSelectorActivity() 264 public static Intent makeRestartActivityTask(ComponentName mainActivity) { in makeRestartActivityTask() 265 return Intent.makeRestartActivityTask(mainActivity); in makeRestartActivityTask()
|
/frameworks/support/compat/tests/java/android/support/v4/app/ |
D | JobIntentServiceTest.java | 24 import android.content.Intent; 53 static ArrayList<Intent> sFinishedWork; 65 public final Intent intent; 70 public TestIntentItem(Intent intent) { in TestIntentItem() 77 public TestIntentItem(Intent intent, TestIntentItem[] subitems) { in TestIntentItem() 85 public TestIntentItem(Intent intent, Uri[] requireUrisGranted, in TestIntentItem() 114 intent = Intent.CREATOR.createFromParcel(parcel); in TestIntentItem() 147 static void finishServiceExecution(ArrayList<Intent> work, String errorMsg) { in finishServiceExecution() 185 final ArrayList<Intent> mReceivedWork = new ArrayList<>(); 205 protected void onHandleWork(@Nullable Intent intent) { in onHandleWork() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | TestUtil.java | 21 import android.content.Intent; 37 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION); in sendNetworkStateChanged() 49 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); in sendScanResultsAvailable() 58 Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE); in sendWifiScanAvailable() 68 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION); in sendWifiStateChanged() 79 Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in sendWifiApStateChanged() 97 Intent intent = new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED); in sendTetherStateChanged()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContext.java | 26 import android.content.Intent; 306 public void startActivity(Intent intent) { in startActivity() 311 public void startActivity(Intent intent, Bundle options) { in startActivity() 316 public void startActivities(Intent[] intents) { in startActivities() 321 public void startActivities(Intent[] intents, Bundle options) { in startActivities() 327 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) in startIntentSender() 334 Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, in startIntentSender() 340 public void sendBroadcast(Intent intent) { in sendBroadcast() 345 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() 351 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { in sendBroadcastMultiplePermissions() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | DumpHeapActivity.java | 25 import android.content.Intent; 65 Intent intent = new Intent(ActivityManager.ACTION_REPORT_HEAP_LIMIT); in onCreate() 69 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in onCreate() 71 intent.putExtra(Intent.EXTRA_STREAM, JAVA_URI); in onCreate() 93 sendBroadcast(new Intent(ACTION_DELETE_DUMPHEAP)); in onCreate() 102 Intent intent = new Intent(Intent.ACTION_SEND); in onCreate() 105 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in onCreate() 107 intent.putExtra(Intent.EXTRA_STREAM, JAVA_URI); in onCreate() 108 startActivity(Intent.createChooser(intent, in onCreate() 117 Intent broadcast = new Intent(ACTION_DELETE_DUMPHEAP); in scheduleDelete() [all …]
|
D | UnlaunchableAppActivity.java | 19 import static android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS; 20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK; 28 import android.content.Intent; 66 Intent intent = getIntent(); in onCreate() 68 mUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); in onCreate() 69 mTarget = intent.getParcelableExtra(Intent.EXTRA_INTENT); in onCreate() 125 private static final Intent createBaseIntent() { in createBaseIntent() 126 Intent intent = new Intent(); in createBaseIntent() 132 public static Intent createInQuietModeDialogIntent(int userId) { in createInQuietModeDialogIntent() 133 Intent intent = createBaseIntent(); in createInQuietModeDialogIntent() [all …]
|
D | IntentForwarderActivity.java | 27 import android.content.Intent; 57 Intent intentReceived = getIntent(); in onCreate() 79 Intent newIntent = new Intent(intentReceived); in onCreate() 83 newIntent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT in onCreate() 84 |Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP); in onCreate() 88 if (Intent.ACTION_CHOOSER.equals(newIntent.getAction())) { in onCreate() 89 Intent innerIntent = (Intent) newIntent.getParcelableExtra(Intent.EXTRA_INTENT); in onCreate() 135 boolean canForward(Intent intent, int targetUserId) { in canForward() 137 if (Intent.ACTION_CHOOSER.equals(intent.getAction())) { in canForward() 139 if (intent.hasExtra(Intent.EXTRA_INITIAL_INTENTS)) { in canForward() [all …]
|
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 22 import android.content.Intent; 46 public abstract class FutureIntent extends FutureTask<Intent> { 71 public boolean dispatchBroadcast(Intent intent) { in dispatchBroadcast() 87 public Intent get() throws InterruptedException, ExecutionException { in get() 104 final Intent intent = get(timeout, unit); in assertNotReceived() 128 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver() 136 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver() 155 public void sendBroadcast(Intent intent) { in sendBroadcast() 168 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() 173 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { in sendBroadcastMultiplePermissions() [all …]
|
/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/ |
D | BrowseActivity.java | 20 import android.content.Intent; 45 Intent intent = getIntent(); in onCreate() 61 Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); in getData() 62 mainIntent.addCategory(Intent.CATEGORY_SAMPLE_CODE); in getData() 123 protected Intent activityIntent(String pkg, String componentName) { in activityIntent() 124 Intent result = new Intent(); in activityIntent() 129 protected Intent browseIntent(String path) { in browseIntent() 130 Intent result = new Intent(); in browseIntent() 136 protected void addItem(List<Map<String, Object>> data, String name, Intent intent) { in addItem() 148 Intent intent = new Intent((Intent) map.get("intent")); in onListItemClick() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockUtils.java | 24 import android.content.Intent; 54 public static Intent checkIntentComponent(final ComponentName component) { in checkIntentComponent() 55 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntentComponent() 59 return Objects.equal(((Intent) item).getComponent(), component); in checkIntentComponent() 70 public static Intent checkIntentAction(final String action) { in checkIntentAction() 71 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntentAction() 75 return Objects.equal(((Intent) item).getAction(), action); in checkIntentAction() 86 public static Intent checkIntent(final Intent intent) { in checkIntent() 87 final Matcher<Intent> m = new BaseMatcher<Intent>() { in checkIntent() 91 return intent.filterEquals((Intent) item); in checkIntent()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | InstantAppResolver.java | 33 import android.content.Intent; 101 final Intent intent = requestObj.origIntent; in doInstantAppResolutionPhaseOne() 151 final Intent intent = requestObj.origIntent; in doInstantAppResolutionPhaseTwo() 163 final Intent failureIntent; in doInstantAppResolutionPhaseTwo() 187 final Intent installerIntent = buildEphemeralInstallerIntent( in doInstantAppResolutionPhaseTwo() 188 Intent.ACTION_RESOLVE_INSTANT_APP_PACKAGE, in doInstantAppResolutionPhaseTwo() 232 public static Intent buildEphemeralInstallerIntent( in buildEphemeralInstallerIntent() 234 @NonNull Intent origIntent, in buildEphemeralInstallerIntent() 235 @NonNull Intent failureIntent, in buildEphemeralInstallerIntent() 247 final Intent intent = new Intent(action); in buildEphemeralInstallerIntent() [all …]
|