Home
last modified time | relevance | path

Searched defs:intent (Results 1 – 25 of 1270) sorted by relevance

12345678910>>...51

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
H A DMediaOutputDialogReceiverTest.java60 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_ExtraPackageName_DialogFactoryCalled() local
71 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_WrongExtraKey_DialogFactoryNotCalled() local
80 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputDialog_NoExtra_DialogFactoryNotCalled() local
88 Intent intent = new Intent( in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled() local
91 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_ExtraPackageName_BroadcastDialogFactoryCalled() local
100 Intent intent = new Intent( in launchMediaOutputBroadcastDialog_WrongExtraKey_DialogBroadcastFactoryNotCalled() local
103 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_WrongExtraKey_DialogBroadcastFactoryNotCalled() local
111 Intent intent = new Intent( in launchMediaOutputBroadcastDialog_NoExtra_BroadcastDialogFactoryNotCalled() local
113 mMediaOutputDialogReceiver.onReceive(getContext(), intent); in launchMediaOutputBroadcastDialog_NoExtra_BroadcastDialogFactoryNotCalled() local
121 Intent intent = new Intent("UnKnown Action"); in unKnownAction_ExtraPackageName_FactoriesNotCalled() local
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DBatteryControllerTest.java119 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_true() local
134 mBatteryController.onReceive(getContext(), intent); in testIndependentAODBatterySaver_false() local
216 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in batteryStateChanged_withChargingSourceDock_isChargingSourceDockTrue() local
220 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_withChargingSourceDock_isChargingSourceDockTrue() local
227 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in batteryStateChanged_withChargingSourceNotDock_isChargingSourceDockFalse() local
231 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_withChargingSourceNotDock_isChargingSourceDockFalse() local
242 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_chargingStatusNotLongLife_outputsFalse() local
253 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_chargingStatusLongLife_outputsTrue() local
262 mBatteryController.onReceive(getContext(), intent); in batteryStateChanged_noChargingStatusGiven_outputsFalse() local
273 mBatteryController.onReceive(getContext(), intent); in complianceChanged_complianceIncompatible_outputsTrue() local
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/app/
H A DIntentForwarderActivityTest.java163 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_canForward_sendIntent() local
203 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_cannotForward_sendIntent() local
224 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in forwardToManagedProfile_noManagedProfile_sendIntent() local
242 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class); in launchInSameProfile_chooserIntent() local
282 Intent intent = Intent.makeMainSelectorActivity( in forwardToManagedProfile_canForward_selectorIntent() local
317 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class) in shouldSkipDisclosure_notWhitelisted() local
332 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class) in shouldSkipDisclosure_withResolverActivity() local
345 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class) in shouldSkipDisclosure_callIntent_call() local
357 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class) in shouldSkipDisclosure_callIntent_callPrivileged() local
369 Intent intent = new Intent(mContext, IntentForwarderWrapperActivity.class) in shouldSkipDisclosure_callIntent_callEmergency() local
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/uri/
H A DUriGrantsManagerServiceTest.java173 final Intent intent = new Intent(Intent.ACTION_VIEW, URI_FORCE) in testNeeded_force() local
188 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_top() local
194 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_top() local
204 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_top() local
224 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_top_differentUser() local
231 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_top_differentUser() local
241 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_top_differentUser() local
260 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_middle() local
267 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_middle() local
274 final Intent intent = new Intent(Intent.ACTION_VIEW, uri) in testNeeded_complex_middle() local
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
H A DAvatarPhotoControllerTest.java119 Intent intent = new Intent(); in takePhotoIsFollowedByCrop() local
133 Intent intent = new Intent(); in takePhotoIsNotFollowedByCropWhenResultCodeNotOk() local
147 Intent intent = new Intent(); in takePhotoIsFollowedByCropWhenTakePhotoUriReturned() local
160 Intent intent = new Intent(); in choosePhotoIsFollowedByCrop() local
174 Intent intent = new Intent(); in choosePhotoIsNotFollowedByCropWhenResultCodeNotOk() local
188 Intent intent = new Intent(); in choosePhotoIsFollowedByCropWhenTakePhotoUriReturned() local
199 Intent intent = new Intent(); in cropPhotoResultIsReturnedIfResultOkAndContent() local
207 Intent intent = new Intent(); in cropPhotoResultIsNotReturnedIfResultCancel() local
215 Intent intent = new Intent(); in cropPhotoResultIsNotReturnedIfResultNotContent() local
225 Intent intent = new Intent(); in cropDoesNotUseTakePhotoUri() local
[all …]
/aosp14/frameworks/base/core/java/android/app/admin/
H A DDeviceAdminReceiver.java596 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled()
614 @NonNull Intent intent) { in onDisableRequested()
630 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled()
994 public void onUserAdded(@NonNull Context context, @NonNull Intent intent, in onUserAdded()
1010 public void onUserRemoved(@NonNull Context context, @NonNull Intent intent, in onUserRemoved()
1026 public void onUserStarted(@NonNull Context context, @NonNull Intent intent, in onUserStarted()
1042 public void onUserStopped(@NonNull Context context, @NonNull Intent intent, in onUserStopped()
1058 public void onUserSwitched(@NonNull Context context, @NonNull Intent intent, in onUserSwitched()
1157 @NonNull Context context, @NonNull Intent intent) { in onComplianceAcknowledgementRequired()
1161 private boolean hasRequiredExtra(Intent intent, String extra) { in hasRequiredExtra()
[all …]
H A DPolicyUpdateReceiver.java157 public final void onReceive(Context context, Intent intent) { in onReceive()
178 static String getPolicyKey(Intent intent) { in getPolicyKey()
189 static Bundle getPolicyExtraBundle(Intent intent) { in getPolicyExtraBundle()
198 static PolicyUpdateResult getPolicyChangedReason(Intent intent) { in getPolicyChangedReason()
211 static TargetUser getTargetUser(Intent intent) { in getTargetUser()
H A DDelegatedAdminReceiver.java87 @NonNull Intent intent, int uid, @Nullable Uri uri, @Nullable String alias) { in onChoosePrivateKeyAlias()
117 public void onNetworkLogsAvailable(@NonNull Context context, @NonNull Intent intent, in onNetworkLogsAvailable()
145 public void onSecurityLogsAvailable(@NonNull Context context, @NonNull Intent intent) { in onSecurityLogsAvailable()
154 public final void onReceive(@NonNull Context context, @NonNull Intent intent) { in onReceive()
/aosp14/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DActivityStarter.java35 void startPendingIntentDismissingKeyguard(PendingIntent intent); in startPendingIntentDismissingKeyguard()
41 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard()
48 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard()
55 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard()
63 void startActivity(Intent intent, boolean dismissShade); in startActivity()
64 default void startActivity(Intent intent, boolean dismissShade, in startActivity()
70 void startActivity(Intent intent, boolean dismissShade, in startActivity()
73 void startActivity(Intent intent, boolean dismissShade, in startActivity()
92 void postStartActivityDismissingKeyguard(PendingIntent intent, in postStartActivityDismissingKeyguard()
105 void startActivityDismissingKeyguard(Intent intent, in startActivityDismissingKeyguard()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
H A DIntentCreatorTest.java45 Intent intent = IntentCreator.getTextEditorIntent(getContext()); in test_getTextEditorIntent() local
57 Intent intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent() local
78 Intent intent = IntentCreator.getImageEditIntent(fakeUri, getContext()); in test_getImageEditIntent() local
98 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_plaintext() local
111 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_html() local
125 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_image() local
138 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_spannableText() local
148 private void assertFlags(Intent intent, int flags) { in assertFlags()
/aosp14/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
H A DImeOpenCloseStressTest.java100 Intent intent = createIntent(mWindowFocusFlags, mSoftInputFlags, Collections.emptyList()); in testShowHideWithInputMethodManager_waitingVisibilityChange() local
122 Intent intent = createIntent(mWindowFocusFlags, mSoftInputFlags, Collections.emptyList()); in testShowHideWithInputMethodManager_waitingAnimationEnd() local
149 Intent intent = createIntent(mWindowFocusFlags, mSoftInputFlags, Collections.emptyList()); in testShowHideWithInputMethodManager_intervalAfterHide() local
172 Intent intent = createIntent(mWindowFocusFlags, mSoftInputFlags, Collections.emptyList()); in testShowHideWithInputMethodManager_inSameFrame() local
224 Intent intent = in testShowHideWithInputMethodManager_onCreate() local
239 Intent intent = createIntent(mWindowFocusFlags, mSoftInputFlags, Collections.emptyList()); in testShowWithInputMethodManager_notRequestFocus() local
261 Intent intent = createIntent(mWindowFocusFlags, mSoftInputFlags, Collections.emptyList()); in testShowHideWithWindowInsetsController_waitingVisibilityChange() local
370 Intent intent = in testShowWithWindowInsetsController_onCreate_requestFocus() local
385 Intent intent = in testShowWithWindowInsetsController_onCreate_notRequestFocus() local
427 Intent intent = in testHideWithWindowInsetsController_onCreate_requestFocus() local
[all …]
/aosp14/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
H A DBroadcastInterceptingContext.java75 public boolean dispatchBroadcast(Intent intent) { in dispatchBroadcast()
112 final Intent intent = get(timeout, unit); in assertNotReceived() local
203 public void sendBroadcast(Intent intent) { in sendBroadcast()
216 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast()
238 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser()
243 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser()
249 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser()
255 public void sendStickyBroadcast(Intent intent) { in sendStickyBroadcast()
260 public void sendStickyBroadcast(Intent intent, Bundle options) { in sendStickyBroadcast()
265 public void sendStickyBroadcastAsUser(Intent intent, UserHandle user) { in sendStickyBroadcastAsUser()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmMockContext.java296 public void sendBroadcast(Intent intent) { in sendBroadcast()
301 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast()
364 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser()
376 public void sendBroadcastAsUser(Intent intent, in sendBroadcastAsUser()
393 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, in sendOrderedBroadcastAsUser()
402 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, in sendOrderedBroadcastAsUser()
411 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, in sendOrderedBroadcastAsUser()
420 public void sendStickyBroadcast(Intent intent) { in sendStickyBroadcast()
432 public void removeStickyBroadcast(Intent intent) { in removeStickyBroadcast()
437 public void sendStickyBroadcastAsUser(Intent intent, UserHandle user) { in sendStickyBroadcastAsUser()
[all …]
/aosp14/frameworks/base/location/java/android/location/
H A DSettingInjectorService.java147 public final IBinder onBind(Intent intent) { in onBind()
152 public final void onStart(Intent intent, int startId) { in onStart()
157 public final int onStartCommand(Intent intent, int flags, int startId) { in onStartCommand()
163 private void onHandleIntent(Intent intent) { in onHandleIntent()
181 private void sendStatus(Intent intent, String summary, boolean enabled) { in sendStatus()
241 Intent intent = new Intent(ACTION_INJECTED_SETTING_CHANGED); in refreshSettings() local
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DActivityIntentHelper.java54 public boolean wouldLaunchResolverActivity(Intent intent, int currentUserId) { in wouldLaunchResolverActivity()
63 public boolean wouldPendingLaunchResolverActivity(PendingIntent intent, int currentUserId) { in wouldPendingLaunchResolverActivity()
79 public ActivityInfo getTargetActivityInfo(Intent intent, int currentUserId, in getTargetActivityInfo()
105 public ActivityInfo getPendingTargetActivityInfo(PendingIntent intent, int currentUserId, in getPendingTargetActivityInfo()
134 public boolean wouldShowOverLockscreen(Intent intent, int currentUserId) { in wouldShowOverLockscreen()
145 public boolean wouldPendingShowOverLockscreen(PendingIntent intent, int currentUserId) { in wouldPendingShowOverLockscreen()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
H A DMetricsFeatureProviderTest.java89 final Intent intent = new Intent(Intent.ACTION_ASSIST); in logClickedPreference_preferenceHasIntent_shouldLog() local
123 final Intent intent = new Intent(Intent.ACTION_ASSIST); in logStartedIntent_intentHasNoComponent_shouldLog() local
133 final Intent intent = new Intent().setComponent(new ComponentName("pkg", "cls")); in logStartedIntent_intentIsExternal_shouldLog() local
143 final Intent intent = new Intent().setComponent(new ComponentName("pkg", "cls")); in logStartedIntentWithProfile_isPersonalProfile_shouldTagPersonal() local
154 final Intent intent = new Intent().setComponent(new ComponentName("pkg", "cls")); in logStartedIntentWithProfile_isWorkProfile_shouldTagWork() local
179 final Intent intent = new Intent() in getAttribution_set_shouldReturnAttribution() local
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
H A DBroadcastSenderTest.kt60 val intent = Intent(Intent.ACTION_VIEW) regex
70 val intent = Intent(Intent.ACTION_VIEW) regex
81 val intent = Intent(Intent.ACTION_VIEW) regex
91 val intent = Intent(Intent.ACTION_VIEW) regex
102 val intent = Intent(Intent.ACTION_VIEW) regex
116 val intent = Intent(Intent.ACTION_VIEW) regex
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DSliceBroadcastRelayHandlerTest.java74 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testRegister() local
94 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testUnregister() local
119 Intent intent = new Intent(SliceBroadcastRelay.ACTION_UNREGISTER); in testUnregisterWithoutRegister() local
133 Intent intent = new Intent(SliceBroadcastRelay.ACTION_REGISTER); in testRelay() local
162 public void onReceive(Context context, Intent intent) { in onReceive()
/aosp14/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
H A DSlicePurchaseBroadcastReceiver.java110 public static void sendSlicePurchaseAppResponse(@NonNull Intent intent, @NonNull String extra) { in sendSlicePurchaseAppResponse()
133 @NonNull Intent intent, @NonNull String extra, @NonNull Intent data) { in sendSlicePurchaseAppResponseWithData()
153 public static boolean isIntentValid(@NonNull Intent intent) { in isIntentValid()
252 private static boolean isPendingIntentValid(@NonNull Intent intent, @NonNull String extra) { in isPendingIntentValid()
294 public void onReceive(@NonNull Context context, @NonNull Intent intent) { in onReceive()
328 @NonNull Intent intent, boolean localeChanged) { in onDisplayPerformanceBoostNotification()
448 @NonNull Intent intent, int requestCode) { in createContentIntent()
472 @NonNull Intent intent) { in createCanceledIntent()
481 private void onTimeout(@NonNull Context context, @NonNull Intent intent) { in onTimeout()
496 private void onUserCanceled(@NonNull Context context, @NonNull Intent intent) { in onUserCanceled()
H A DCarrierActionUtils.java60 public static void applyCarrierAction(int actionIdx, Intent intent, Context context) { in applyCarrierAction()
103 private static void onDisableAllMeteredApns(Intent intent, Context context) { in onDisableAllMeteredApns()
111 private static void onEnableAllMeteredApns(Intent intent, Context context) { in onEnableAllMeteredApns()
135 private static void onRegisterDefaultNetworkAvail(Intent intent, Context context) { in onRegisterDefaultNetworkAvail()
143 private static void onDeregisterDefaultNetworkAvail(Intent intent, Context context) { in onDeregisterDefaultNetworkAvail()
151 private static void onDisableRadio(Intent intent, Context context) { in onDisableRadio()
159 private static void onEnableRadio(Intent intent, Context context) { in onEnableRadio()
167 private static void onShowCaptivePortalNotification(Intent intent, Context context) { in onShowCaptivePortalNotification()
202 private static void onResetAllCarrierActions(Intent intent, Context context) { in onResetAllCarrierActions()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/statusbar/
H A DTileRequestTrackerTest.java137 Intent intent = new Intent(Intent.ACTION_PACKAGE_REMOVED); in testPackageUninstallRemovesDenials_allComponents() local
153 Intent intent = new Intent(Intent.ACTION_PACKAGE_REMOVED); in testPackageUninstallRemoveDenials_differentUsers() local
171 Intent intent = new Intent(Intent.ACTION_PACKAGE_REMOVED); in testPackageUninstallRemoveDenials_differentPackages() local
188 Intent intent = new Intent(Intent.ACTION_PACKAGE_REMOVED); in testPackageUpdateDoesntRemoveDenials() local
203 Intent intent = new Intent(Intent.ACTION_PACKAGE_DATA_CLEARED); in testClearPackageDataRemovesDenials() local
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
H A DKeyguardQuickAffordanceConfigTest.kt39 val intent = KeyguardQuickAffordanceConfig.appStoreIntent(context, packageName) regex
53 val intent = KeyguardQuickAffordanceConfig.appStoreIntent(context, packageName) regex
76 val intent = KeyguardQuickAffordanceConfig.appStoreIntent(context, packageName) regex
86 val intent = KeyguardQuickAffordanceConfig.appStoreIntent(context, null) regex
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothEventManager.java69 void onReceive(Context context, Intent intent, BluetoothDevice device); in onReceive()
274 public void onReceive(Context context, Intent intent) { in onReceive()
287 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive()
308 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive()
317 public void onReceive(Context context, Intent intent, in onReceive()
344 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive()
353 public void onReceive(Context context, Intent intent, in onReceive()
360 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive()
443 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive()
452 public void onReceive(Context context, Intent intent, BluetoothDevice device) { in onReceive()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
H A DMasterClearReceiverTest.java126 Intent intent = new Intent(Intent.ACTION_FACTORY_RESET); in testNoExtras() local
138 Intent intent = new Intent(Intent.ACTION_FACTORY_RESET); in testWipeExternalDirectory() local
151 Intent intent = new Intent(Intent.ACTION_FACTORY_RESET); in testAllExtras() local
168 Intent intent = new Intent(Intent.ACTION_FACTORY_RESET); in testNonSystemUser() local
183 Intent intent = new Intent(Intent.ACTION_FACTORY_RESET); in testHeadlessSystemUser() local
/aosp14/frameworks/base/errorprone/tests/res/android/app/
H A DPendingIntent.java31 Intent intent, int flags) { in getActivity()
36 Intent intent, int flags, Bundle options, UserHandle user) { in getActivityAsUser()
51 Intent intent, int flags) { in getBroadcast()
56 Intent intent, int flags, UserHandle userHandle) { in getBroadcastAsUser()
61 Intent intent, int flags) { in getService()
66 Intent intent, int flags) { in getForegroundService()

12345678910>>...51