/frameworks/base/services/core/java/com/android/server/pm/ |
D | DefaultCrossProfileIntentFiltersUtils.java | 26 import android.content.Intent; 52 .addAction(Intent.ACTION_CALL_EMERGENCY) 53 .addAction(Intent.ACTION_CALL_PRIVILEGED) 54 .addCategory(Intent.CATEGORY_DEFAULT) 55 .addCategory(Intent.CATEGORY_BROWSABLE) 70 .addAction(Intent.ACTION_CALL_EMERGENCY) 71 .addAction(Intent.ACTION_CALL_PRIVILEGED) 72 .addCategory(Intent.CATEGORY_DEFAULT) 73 .addCategory(Intent.CATEGORY_BROWSABLE) 85 .addAction(Intent.ACTION_DIAL) [all …]
|
D | PackageMonitorCallbackHelper.java | 25 import android.content.Intent; 105 extras.putInt(Intent.EXTRA_UID, uid); in notifyPackageAddedForNewUsers() 107 extras.putBoolean(Intent.EXTRA_ARCHIVAL, true); in notifyPackageAddedForNewUsers() 110 notifyPackageMonitor(Intent.ACTION_PACKAGE_ADDED, packageName, extras, in notifyPackageAddedForNewUsers() 118 extras.putStringArray(Intent.EXTRA_CHANGED_PACKAGE_LIST, pkgNames); in notifyResourcesChanged() 119 extras.putIntArray(Intent.EXTRA_CHANGED_UID_LIST, uids); in notifyResourcesChanged() 121 extras.putBoolean(Intent.EXTRA_REPLACING, replacing); in notifyResourcesChanged() 123 String action = mediaStatus ? Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE in notifyResourcesChanged() 124 : Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE; in notifyResourcesChanged() 134 extras.putString(Intent.EXTRA_CHANGED_COMPONENT_NAME, componentNames.get(0)); in notifyPackageChanged() [all …]
|
D | BroadcastHelper.java | 44 import android.content.Intent; 108 void sendPackageBroadcastWithIntent(Intent intent, int userId, boolean isInstantApp, in sendPackageBroadcastWithIntent() 109 @Intent.Flags int flags, in sendPackageBroadcastWithIntent() 114 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT | flags); in sendPackageBroadcastWithIntent() 171 final Intent intent = new Intent(action, in doSendBroadcast() 180 int uid = intent.getIntExtra(Intent.EXTRA_UID, -1); in doSendBroadcast() 183 intent.putExtra(Intent.EXTRA_UID, uid); in doSendBroadcast() 186 intent.putExtra(Intent.EXTRA_VISIBILITY_ALLOW_LIST, in doSendBroadcast() 189 intent.putExtra(Intent.EXTRA_USER_HANDLE, userId); in doSendBroadcast() 190 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT | flags); in doSendBroadcast() [all …]
|
D | InstantAppResolver.java | 19 import static android.content.Intent.FLAG_ACTIVITY_MATCH_EXTERNAL; 36 import android.content.Intent; 106 public static Intent sanitizeIntent(Intent origIntent) { in sanitizeIntent() 107 final Intent sanitizedIntent; in sanitizeIntent() 108 sanitizedIntent = new Intent(origIntent.getAction()); in sanitizeIntent() 130 public static InstantAppDigest parseDigest(@NonNull Intent origIntent) { in parseDigest() 150 Intent origIntent = requestObj.origIntent; in doInstantAppResolutionPhaseOne() 202 final Intent origIntent = requestObj.origIntent; in doInstantAppResolutionPhaseTwo() 203 final Intent sanitizedIntent = sanitizeIntent(origIntent); in doInstantAppResolutionPhaseTwo() 209 final Intent failureIntent; in doInstantAppResolutionPhaseTwo() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
D | IntentCreator.java | 23 import android.content.Intent; 34 static Intent getTextEditorIntent(Context context) { in getTextEditorIntent() 35 Intent intent = new Intent(context, EditTextActivity.class); in getTextEditorIntent() 36 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); in getTextEditorIntent() 40 static Intent getShareIntent(ClipData clipData, Context context) { in getShareIntent() 41 Intent shareIntent = new Intent(Intent.ACTION_SEND); in getShareIntent() 55 shareIntent.putExtra(Intent.EXTRA_STREAM, uri); in getShareIntent() 56 shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); in getShareIntent() 59 Intent.EXTRA_TEXT, clipData.getItemAt(0).coerceToText(context).toString()); in getShareIntent() 62 Intent chooserIntent = Intent.createChooser(shareIntent, null) in getShareIntent() [all …]
|
/frameworks/base/core/tests/packagemonitortests/src/com/android/internal/content/ |
D | PackageMonitorTest.java | 30 import android.content.Intent; 122 Intent intent = new Intent(Intent.ACTION_UID_REMOVED); in testPackageMonitorDoHandlePackageEventUidRemoved() 123 intent.putExtra(Intent.EXTRA_USER_HANDLE, FAKE_USER_ID); in testPackageMonitorDoHandlePackageEventUidRemoved() 124 intent.putExtra(Intent.EXTRA_UID, FAKE_PACKAGE_UID); in testPackageMonitorDoHandlePackageEventUidRemoved() 136 Intent intent = new Intent(Intent.ACTION_PACKAGES_SUSPENDED); in testPackageMonitorDoHandlePackageEventPackageSuspended() 137 intent.putExtra(Intent.EXTRA_USER_HANDLE, FAKE_USER_ID); in testPackageMonitorDoHandlePackageEventPackageSuspended() 139 intent.putExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST, packageList); in testPackageMonitorDoHandlePackageEventPackageSuspended() 152 Intent intent = new Intent(Intent.ACTION_PACKAGES_UNSUSPENDED); in testPackageMonitorDoHandlePackageEventPackageUnSuspended() 153 intent.putExtra(Intent.EXTRA_USER_HANDLE, FAKE_USER_ID); in testPackageMonitorDoHandlePackageEventPackageUnSuspended() 155 intent.putExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST, packageList); in testPackageMonitorDoHandlePackageEventPackageUnSuspended() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ActionIntentCreator.kt | 24 import android.content.Intent 32 fun createShare(uri: Uri): Intent = createShare(uri, subject = null, text = null) in createShare() 35 fun createShareWithSubject(uri: Uri, subject: String): Intent = in createShare() 39 fun createShareWithText(uri: Uri, extraText: String): Intent = in createShare() 42 private fun createShare(rawUri: Uri, subject: String? = null, text: String? = null): Intent { in createShare() 48 Intent(Intent.ACTION_SEND).apply { in createShare() 50 putExtra(Intent.EXTRA_STREAM, uri) in createShare() 60 subject?.let { putExtra(Intent.EXTRA_SUBJECT, subject) } in createShare() 61 text?.let { putExtra(Intent.EXTRA_TEXT, text) } in createShare() 62 addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) in createShare() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ActionIntentCreatorTest.kt | 21 import android.content.Intent 43 assertThatIntent(output).hasAction(Intent.ACTION_CHOOSER) in testCreateShare() 46 Intent.FLAG_ACTIVITY_NEW_TASK or in testCreateShare() 47 Intent.FLAG_ACTIVITY_CLEAR_TASK or in testCreateShare() 48 Intent.FLAG_GRANT_READ_URI_PERMISSION in testCreateShare() 51 assertThatIntent(output).extras().parcelable<Intent>(Intent.EXTRA_INTENT).isNotNull() in testCreateShare() 52 val wrappedIntent = output.getParcelableExtra(Intent.EXTRA_INTENT, Intent::class.java) in testCreateShare() 54 assertThatIntent(wrappedIntent).hasAction(Intent.ACTION_SEND) in testCreateShare() 57 assertThatIntent(wrappedIntent).extras().doesNotContainKey(Intent.EXTRA_SUBJECT) in testCreateShare() 58 assertThatIntent(wrappedIntent).extras().doesNotContainKey(Intent.EXTRA_TEXT) in testCreateShare() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/ |
D | IntentCreatorTest.java | 24 import android.content.Intent; 40 private static final int EXTERNAL_INTENT_FLAGS = Intent.FLAG_ACTIVITY_NEW_TASK 41 | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_GRANT_READ_URI_PERMISSION; 45 Intent intent = IntentCreator.getTextEditorIntent(getContext()); in test_getTextEditorIntent() 48 assertFlags(intent, Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); in test_getTextEditorIntent() 57 Intent intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent() 78 Intent intent = IntentCreator.getImageEditIntent(fakeUri, getContext()); in test_getImageEditIntent() 80 assertEquals(Intent.ACTION_EDIT, intent.getAction()); in test_getImageEditIntent() 98 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_plaintext() 100 assertEquals(Intent.ACTION_CHOOSER, intent.getAction()); in test_getShareIntent_plaintext() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | IntentForwarderActivityTest.java | 43 import android.content.Intent; 160 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_canForward_sendIntent() 168 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_canForward_sendIntent() 169 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_canForward_sendIntent() 173 ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class); in forwardToManagedProfile_canForward_sendIntent() 175 assertEquals(Intent.ACTION_SEND, intentCaptor.getValue().getAction()); in forwardToManagedProfile_canForward_sendIntent() 185 assertEquals(Intent.ACTION_SEND, activity.mStartActivityIntent.getAction()); in forwardToManagedProfile_canForward_sendIntent() 199 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(false); in forwardToManagedProfile_cannotForward_sendIntent() 208 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_cannotForward_sendIntent() 209 intent.setAction(Intent.ACTION_SEND); in forwardToManagedProfile_cannotForward_sendIntent() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | IccCardConstants.java | 19 import android.content.Intent; 28 public static final String INTENT_KEY_ICC_STATE = Intent.EXTRA_SIM_STATE; 30 public static final String INTENT_VALUE_ICC_UNKNOWN = Intent.SIM_STATE_UNKNOWN; 32 public static final String INTENT_VALUE_ICC_NOT_READY = Intent.SIM_STATE_NOT_READY; 34 public static final String INTENT_VALUE_ICC_ABSENT = Intent.SIM_STATE_ABSENT; 36 public static final String INTENT_VALUE_ICC_PRESENT = Intent.SIM_STATE_PRESENT; 38 static public final String INTENT_VALUE_ICC_CARD_IO_ERROR = Intent.SIM_STATE_CARD_IO_ERROR; 40 static public final String INTENT_VALUE_ICC_CARD_RESTRICTED = Intent.SIM_STATE_CARD_RESTRICTED; 42 public static final String INTENT_VALUE_ICC_LOCKED = Intent.SIM_STATE_LOCKED; 44 public static final String INTENT_VALUE_ICC_READY = Intent.SIM_STATE_READY; [all …]
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/ |
D | CarWizardManagerHelperTest.java | 21 import android.content.Intent; 45 Intent intent = new Intent(); in testGetNextIntentWithNullData() 47 Intent nextIntent = CarWizardManagerHelper.getNextIntent(intent, 1); in testGetNextIntentWithNullData() 58 Intent intent = new Intent(); in testGetNextIntentWithData() 59 Intent data = new Intent(); in testGetNextIntentWithData() 62 Intent nextIntent = CarWizardManagerHelper.getNextIntent(intent, 1, data); in testGetNextIntentWithData() 74 Intent srcIntent = new Intent(); in testCopyWizardManagerExtras() 81 Intent disIntent = new Intent(); in testCopyWizardManagerExtras() 99 Intent intent = new Intent(); in testIsSetupWizardIntentTrue() 110 Intent intent = new Intent(); in testIsSetupWizardIntentFalse() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BroadcastQueueModernImplTest.java | 65 import android.content.Intent; 181 private static Intent makeMockIntent() { in makeMockIntent() 182 return mock(Intent.class); in makeMockIntent() 193 private BroadcastRecord makeBroadcastRecord(Intent intent) { in makeBroadcastRecord() 198 private BroadcastRecord makeBroadcastRecord(Intent intent, List receivers) { in makeBroadcastRecord() 202 private BroadcastRecord makeBroadcastRecord(Intent intent, BroadcastOptions options) { in makeBroadcastRecord() 207 private BroadcastRecord makeBroadcastRecord(Intent intent, BroadcastOptions options, in makeBroadcastRecord() 212 private BroadcastRecord makeBroadcastRecord(Intent intent, BroadcastOptions options, in makeBroadcastRecord() 372 final Intent airplane = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); in testRunnableAt_Normal_Deferrable() 400 final Intent airplane = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); in testRunnableAt_Normal() [all …]
|
D | BroadcastQueueTest.java | 69 import android.content.Intent; 364 final Intent intent = invocation.getArgument(0); in makeActiveProcessRecord() 386 final Intent intent = invocation.getArgument(1); in makeActiveProcessRecord() 408 private Pair<Integer, String> makeScheduledBroadcast(ProcessRecord app, Intent intent) { in makeScheduledBroadcast() 412 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord() 418 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord() 424 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord() 430 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord() 436 private BroadcastRecord makeOrderedBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeOrderedBroadcastRecord() 442 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord() [all …]
|
D | BroadcastRecordTest.java | 40 import android.content.Intent; 171 new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED), List.of( in testSetDeliveryState_Single() 204 new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED), List.of( in testSetDeliveryState_Unordered() 229 new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED), List.of( in testSetDeliveryState_Ordered() 252 new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED), List.of( in testSetDeliveryState_DeferUntilActive() 320 final Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); in testGetReceiverIntent_Simple() 323 final Intent actual = r.getReceiverIntent(r.receivers.get(0)); in testGetReceiverIntent_Simple() 330 final Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); in testGetReceiverIntent_Filtered_Partial() 331 intent.putExtra(Intent.EXTRA_INDEX, 42); in testGetReceiverIntent_Filtered_Partial() 336 final Intent actual = r.getReceiverIntent(r.receivers.get(0)); in testGetReceiverIntent_Filtered_Partial() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierSignalAgentTest.java | 39 import android.content.Intent; 82 private static final Intent FAKE_PCO_INTENT; 83 private static final Intent FAKE_REDIRECTED_INTENT; 84 private static final Intent FAKE_NETWORK_FAILED_INTENT; 85 private static final Intent FAKE_RESET_INTENT; 86 private static final Intent FAKE_DEFAULT_NETWORK_INTENT; 88 FAKE_PCO_INTENT = new Intent(ACTION_CARRIER_SIGNAL_PCO_VALUE); 94 FAKE_REDIRECTED_INTENT = new Intent(TelephonyManager.ACTION_CARRIER_SIGNAL_REDIRECTED); 98 FAKE_NETWORK_FAILED_INTENT = new Intent(ACTION_CARRIER_SIGNAL_REQUEST_NETWORK_FAILED); 103 FAKE_RESET_INTENT = new Intent(TelephonyManager.ACTION_CARRIER_SIGNAL_RESET); [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarWizardManagerHelper.java | 20 import android.content.Intent; 44 public static Intent getNextIntent(Intent originalIntent, int resultCode) { in getNextIntent() 59 public static Intent getNextIntent(Intent originalIntent, int resultCode, Intent data) { in getNextIntent() 60 Intent intent = new Intent(ACTION_NEXT); in getNextIntent() 78 public static void copyWizardManagerExtras(Intent srcIntent, Intent dstIntent) { in copyWizardManagerExtras() 92 public static boolean isSetupWizardIntent(Intent intent) { in isSetupWizardIntent() 102 public static boolean isDeferredIntent(Intent intent) { in isDeferredIntent() 112 public static boolean isDealerIntent(Intent intent) { in isDealerIntent() 149 public static boolean isInitialSetupWizard(Intent intent) { in isInitialSetupWizard() 160 public static boolean isDeferredSetupWizard(Intent originalIntent) { in isDeferredSetupWizard()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/ |
D | UriGrantsManagerServiceTest.java | 57 import android.content.Intent; 126 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PHOTO_1).addFlags(FLAG_READ); in testNeeded_normal_sameUser() 144 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PHOTO_1).addFlags(FLAG_READ); in testNeeded_normal_differentUser() 161 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PUBLIC).addFlags(FLAG_READ); in testNeeded_public() 175 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PUBLIC).addFlags(FLAG_READ); in testNeeded_public_differentUser() 192 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_PRIVATE).addFlags(FLAG_READ); in testNeeded_private() 207 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_FORCE) in testNeeded_force() 222 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_top() 223 .addFlags(FLAG_READ | Intent.FLAG_ACTIVITY_CLEAR_TASK); in testNeeded_complex_top() 228 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_top() [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 …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | AvatarPhotoControllerTest.java | 35 import android.content.Intent; 119 Intent intent = new Intent(); in takePhotoIsFollowedByCrop() 133 Intent intent = new Intent(); in takePhotoIsNotFollowedByCropWhenResultCodeNotOk() 147 Intent intent = new Intent(); in takePhotoIsFollowedByCropWhenTakePhotoUriReturned() 160 Intent intent = new Intent(); in choosePhotoIsFollowedByCrop() 174 Intent intent = new Intent(); in choosePhotoIsNotFollowedByCropWhenResultCodeNotOk() 188 Intent intent = new Intent(); in choosePhotoIsFollowedByCropWhenTakePhotoUriReturned() 199 Intent intent = new Intent(); in cropPhotoResultIsReturnedIfResultOkAndContent() 207 Intent intent = new Intent(); in cropPhotoResultIsNotReturnedIfResultCancel() 215 Intent intent = new Intent(); in cropPhotoResultIsNotReturnedIfResultNotContent() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageMonitorCallbackHelperTest.java | 27 import android.content.Intent; 80 mPackageMonitorCallbackHelper.notifyPackageMonitor(Intent.ACTION_PACKAGE_ADDED, in testWithoutRegisterPackageMonitorCallback_callbackNotCalled() 94 mPackageMonitorCallbackHelper.notifyPackageMonitor(Intent.ACTION_PACKAGE_ADDED, in testUnregisterPackageMonitorCallback_callbackShouldNotCalled() 102 mPackageMonitorCallbackHelper.notifyPackageMonitor(Intent.ACTION_PACKAGE_ADDED, in testUnregisterPackageMonitorCallback_callbackShouldNotCalled() 117 mPackageMonitorCallbackHelper.notifyPackageMonitor(Intent.ACTION_PACKAGES_SUSPENDED, in testPackageMonitorCallback_SuspendNoAccessCallbackNotCalled() 127 result.putInt(Intent.EXTRA_UID, FAKE_PACKAGE_UID); in testPackageMonitorCallback_SuspendCallbackCalled() 128 result.putStringArray(Intent.EXTRA_CHANGED_PACKAGE_LIST, new String[]{FAKE_PACKAGE_NAME}); in testPackageMonitorCallback_SuspendCallbackCalled() 134 mPackageMonitorCallbackHelper.notifyPackageMonitor(Intent.ACTION_PACKAGES_SUSPENDED, in testPackageMonitorCallback_SuspendCallbackCalled() 142 Intent intent = bundle.getParcelable( in testPackageMonitorCallback_SuspendCallbackCalled() 143 PackageManager.EXTRA_PACKAGE_MONITOR_CALLBACK_RESULT, Intent.class); in testPackageMonitorCallback_SuspendCallbackCalled() [all …]
|
/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriPermission.java | 21 import android.content.Intent; 117 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in initPersistedModes() 118 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in initPersistedModes() 128 final boolean persistable = (modeFlags & Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) != 0; in grantModes() 129 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in grantModes() 130 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in grantModes() 139 if ((modeFlags & Intent.FLAG_GRANT_READ_URI_PERMISSION) != 0) { in grantModes() 142 if ((modeFlags & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) { in grantModes() 155 modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION in takePersistableModes() 156 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in takePersistableModes() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | SystemServerAdapter.java | 25 import android.content.Intent; 72 new Intent(AudioManager.ACTION_MICROPHONE_MUTE_CHANGED) in sendMicrophoneMuteChangedIntent() 73 .setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY), in sendMicrophoneMuteChangedIntent() 84 final Intent intent = new Intent(AudioManager.ACTION_AUDIO_BECOMING_NOISY); in sendDeviceBecomingNoisyIntent() 85 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); in sendDeviceBecomingNoisyIntent() 86 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in sendDeviceBecomingNoisyIntent() 99 public void broadcastStickyIntentToCurrentProfileGroup(Intent intent) { in broadcastStickyIntentToCurrentProfileGroup() 113 filter.addAction(Intent.ACTION_USER_STARTED); in registerUserStartedReceiver() 116 public void onReceive(Context context, Intent intent) { in registerUserStartedReceiver() 117 if (Intent.ACTION_USER_STARTED.equals(intent.getAction())) { in registerUserStartedReceiver() [all …]
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | AppInstallerUtil.java | 20 import android.content.Intent; 27 private static Intent resolveIntent(Context context, Intent i) { in resolveIntent() 29 return result != null ? new Intent(i.getAction()) in resolveIntent() 53 public static Intent createIntent(Context context, String installerPackageName, in createIntent() 55 Intent intent = new Intent(Intent.ACTION_SHOW_APP_INFO).setPackage(installerPackageName); in createIntent() 56 final Intent result = resolveIntent(context, intent); in createIntent() 58 result.putExtra(Intent.EXTRA_PACKAGE_NAME, packageName); in createIntent() 59 result.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in createIntent() 68 public static Intent createIntent(Context context, String packageName) { in createIntent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/camera/ |
D | CameraIntentsTest.kt | 19 import android.content.Intent 32 val VALID_SECURE_INTENT = Intent(CameraIntents.DEFAULT_SECURE_CAMERA_INTENT_ACTION) 33 val VALID_INSECURE_INTENT = Intent(CameraIntents.DEFAULT_INSECURE_CAMERA_INTENT_ACTION) 41 Intent(VALID_SECURE_INTENT).setPackage("com.example"))) in testIsSecureCameraIntent() 43 assertFalse(CameraIntents.isSecureCameraIntent(Intent())) in testIsSecureCameraIntent() 44 assertFalse(CameraIntents.isSecureCameraIntent(Intent(Intent.ACTION_MAIN))) in testIsSecureCameraIntent() 51 Intent(VALID_INSECURE_INTENT).setPackage("com.example"))) in testIsInsecureCameraIntent() 53 assertFalse(CameraIntents.isInsecureCameraIntent(Intent())) in testIsInsecureCameraIntent() 54 assertFalse(CameraIntents.isInsecureCameraIntent(Intent(Intent.ACTION_MAIN))) in testIsInsecureCameraIntent()
|