Home
last modified time | relevance | path

Searched refs:hasAction (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/
DBatteryChargingTrackerTest.java120 assertThat(intentFilter.hasAction(Intent.ACTION_POWER_CONNECTED), is(true)); in testGetIntentFilter_beforeApi23()
121 assertThat(intentFilter.hasAction(Intent.ACTION_POWER_DISCONNECTED), is(true)); in testGetIntentFilter_beforeApi23()
130 assertThat(intentFilter.hasAction(BatteryManager.ACTION_CHARGING), is(true)); in testGetIntentFilter_afterApi23()
131 assertThat(intentFilter.hasAction(BatteryManager.ACTION_DISCHARGING), is(true)); in testGetIntentFilter_afterApi23()
DStorageNotLowTrackerTest.java88 assertThat(intentFilter.hasAction(Intent.ACTION_DEVICE_STORAGE_OK), is(true)); in testGetIntentFilter()
89 assertThat(intentFilter.hasAction(Intent.ACTION_DEVICE_STORAGE_LOW), is(true)); in testGetIntentFilter()
DBatteryNotLowTrackerTest.java150 assertThat(intentFilter.hasAction(Intent.ACTION_BATTERY_OKAY), is(true)); in testGetIntentFilter()
151 assertThat(intentFilter.hasAction(Intent.ACTION_BATTERY_LOW), is(true)); in testGetIntentFilter()
DNetworkStateTrackerTest.java95 assertThat(intentFilter.hasAction(ConnectivityManager.CONNECTIVITY_ACTION), is(true)); in testStartTracking_beforeApi24()
/frameworks/base/services/core/java/com/android/server/hdmi/
DSystemAudioAutoInitiationAction.java123 return !(tv().hasAction(SystemAudioActionFromTv.class) in canChangeSystemAudio()
124 || tv().hasAction(SystemAudioActionFromAvr.class)); in canChangeSystemAudio()
DHdmiCecLocalDeviceTv.java573 if (hasAction(DeviceDiscoveryAction.class)) { in handleReportPhysicalAddress()
803 && !hasAction(SetArcTransmissionStateAction.class)) { in onNewAvrAdded()
823 if (!mService.isControlEnabled() || hasAction(DeviceDiscoveryAction.class)) { in changeSystemAudioMode()
990 if (!hasAction(RequestArcInitiationAction.class)) { in startArcAction()
995 if (!hasAction(RequestArcTerminationAction.class)) { in startArcAction()
1665 if (!hasAction(RequestArcTerminationAction.class) && isArcEstablished()) { in disableArcIfExist()
DHdmiCecLocalDevice.java674 <T extends HdmiCecFeatureAction> boolean hasAction(final Class<T> clazz) { in hasAction() method in HdmiCecLocalDevice
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DUserManagerHelperTest.java306 assertThat(filterCaptor.getValue().hasAction(Intent.ACTION_USER_REMOVED)).isTrue(); in registerUserChangeReceiver()
307 assertThat(filterCaptor.getValue().hasAction(Intent.ACTION_USER_ADDED)).isTrue(); in registerUserChangeReceiver()
308 assertThat(filterCaptor.getValue().hasAction(Intent.ACTION_USER_INFO_CHANGED)).isTrue(); in registerUserChangeReceiver()
309 assertThat(filterCaptor.getValue().hasAction(Intent.ACTION_USER_SWITCHED)).isTrue(); in registerUserChangeReceiver()
310 assertThat(filterCaptor.getValue().hasAction(Intent.ACTION_USER_STOPPED)).isTrue(); in registerUserChangeReceiver()
311 assertThat(filterCaptor.getValue().hasAction(Intent.ACTION_USER_UNLOCKED)).isTrue(); in registerUserChangeReceiver()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiTrafficPollerTest.java90 intentFilter -> intentFilter.hasAction(WifiManager.NETWORK_STATE_CHANGED_ACTION) && in setUp()
91 intentFilter.hasAction(Intent.ACTION_SCREEN_ON) && in setUp()
92 intentFilter.hasAction(Intent.ACTION_SCREEN_OFF))); in setUp()
DWifiServiceImplTest.java1632 return filter.hasAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION); in matches()
2656 filter.hasAction(Intent.ACTION_PACKAGE_FULLY_REMOVED))); in testPackageRemovedBroadcastHandling()
2677 filter.hasAction(Intent.ACTION_PACKAGE_FULLY_REMOVED))); in testPackageRemovedBroadcastHandlingWithNoUid()
2696 filter.hasAction(Intent.ACTION_PACKAGE_FULLY_REMOVED))); in testPackageRemovedBroadcastHandlingWithNoPackageName()
2715 filter.hasAction(Intent.ACTION_USER_REMOVED))); in testUserRemovedBroadcastHandling()
2731 filter.hasAction(Intent.ACTION_USER_REMOVED))); in testUserRemovedBroadcastHandlingWithWrongIntentAction()
2796 return filter.hasAction(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED); in matches()
2832 filter.hasAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED))); in testSimStateChangeDoesNotResetCountryCode()
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/
DEmojiExtractTextLayout.java169 final boolean hasAction = ei.actionLabel != null in onUpdateExtractingViews()
174 if (hasAction) { in onUpdateExtractingViews()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DSystemUIDialogTest.java60 assertTrue(intentFilterCaptor.getValue().hasAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); in testRegisterReceiver()
/frameworks/base/core/java/android/content/
DIntentFilter.java595 if (!hasAction(Intent.ACTION_VIEW) in handlesWebUris()
730 public final boolean hasAction(String action) { in hasAction() method in IntentFilter
743 return hasAction(action); in matchAction()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridWidgetTest.java4675 assertFalse(hasAction(info,
4677 assertTrue(hasAction(info,
4680 assertFalse(hasAction(info, AccessibilityNodeInfoCompat.ACTION_SCROLL_BACKWARD));
4681 assertTrue(hasAction(info, AccessibilityNodeInfoCompat.ACTION_SCROLL_FORWARD));
4693 assertTrue(hasAction(info2,
4695 assertFalse(hasAction(info2,
4698 assertTrue(hasAction(info2, AccessibilityNodeInfoCompat.ACTION_SCROLL_BACKWARD));
4699 assertFalse(hasAction(info2, AccessibilityNodeInfoCompat.ACTION_SCROLL_FORWARD));
4737 private boolean hasAction(AccessibilityNodeInfoCompat info, Object action) {
4823 assertTrue("test sanity", hasAction(info, itemZeroDirection));
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java130 any(), argThat(f -> f.hasAction(ACTION_CONFIGURATION_CHANGED)), any(), any())) in setUp()
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
DRemotePlaybackClient.java803 if (filter.hasAction(MediaControlIntent.ACTION_SEND_MESSAGE)) { in doesRouteSupportMessaging()
DMediaRouter.java1185 if (filter.hasCategory(category) && filter.hasAction(action)) { in supportsControlAction()
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
DRemotePlaybackClient.java804 if (filter.hasAction(MediaControlIntent.ACTION_SEND_MESSAGE)) { in doesRouteSupportMessaging()
DMediaRouter.java1186 if (filter.hasCategory(category) && filter.hasAction(action)) { in supportsControlAction()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppResolver.java483 && filter.hasAction(Intent.ACTION_VIEW) in computeResolveFilters()
DPackageManagerService.java7482 if (rij.filter != null && rij.filter.hasAction(action)) {
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java2700 final boolean hasAction = ei.actionLabel != null || ( in onUpdateExtractingViews()
2704 if (hasAction) { in onUpdateExtractingViews()
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java82 if (!f2.hasAction(f1.getAction(i))) { in filterEquals()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java3850 if (!aii.hasAction(Intent.ACTION_VIEW)) continue; in hasDomainURLs()
3851 if (!aii.hasAction(Intent.ACTION_DEFAULT)) continue; in hasDomainURLs()
5269 || intent.hasAction(Intent.ACTION_SEND) in isImplicitlyExposedIntent()
5270 || intent.hasAction(Intent.ACTION_SENDTO) in isImplicitlyExposedIntent()
5271 || intent.hasAction(Intent.ACTION_SEND_MULTIPLE); in isImplicitlyExposedIntent()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt7880 method public final boolean hasAction(java.lang.String);

12