Home
last modified time | relevance | path

Searched refs:hasFlag (Results 1 – 21 of 21) sorted by relevance

/frameworks/libs/net/client-libs/tests/unit/src/com/android/net/module/util/
DNetdUtilsTest.java237 assertTrue(NetdUtils.hasFlag(p, "up")); in testNetdUtilsHasFlag()
238 assertTrue(NetdUtils.hasFlag(p, "running")); in testNetdUtilsHasFlag()
239 assertTrue(NetdUtils.hasFlag(p, "broadcast")); in testNetdUtilsHasFlag()
240 assertTrue(NetdUtils.hasFlag(p, "multicast")); in testNetdUtilsHasFlag()
241 assertFalse(NetdUtils.hasFlag(p, "down")); in testNetdUtilsHasFlag()
256 assertThrows(IllegalArgumentException.class, () -> NetdUtils.hasFlag(p, "up ")); in testNetdUtilsHasFlag_flagContainsSpace()
271 assertFalse(NetdUtils.hasFlag(p, "UP")); in testNetdUtilsHasFlag_UppercaseString()
272 assertFalse(NetdUtils.hasFlag(p, "BROADCAST")); in testNetdUtilsHasFlag_UppercaseString()
273 assertFalse(NetdUtils.hasFlag(p, "RUNNING")); in testNetdUtilsHasFlag_UppercaseString()
274 assertFalse(NetdUtils.hasFlag(p, "MULTICAST")); in testNetdUtilsHasFlag_UppercaseString()
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceState.java118 + ", app_accessible=" + !hasFlag(FLAG_APP_INACCESSIBLE) + "}"; in toString()
138 public boolean hasFlag(int flagToCheckFor) { in hasFlag() method in DeviceState
DDeviceStateManagerService.java350 if (state.hasFlag(FLAG_CANCEL_OVERRIDE_REQUESTS)) { in updateSupportedStates()
431 if (baseState.hasFlag(FLAG_CANCEL_OVERRIDE_REQUESTS)) { in setBaseState()
/frameworks/base/core/java/android/net/
DInterfaceConfiguration.java59 public boolean hasFlag(String flag) { in hasFlag() method in InterfaceConfiguration
140 return hasFlag(FLAG_UP); in isUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java392 if (hasFlag(application.flags, ApplicationInfo.FLAG_INSTALLED)) { in anyAppIsRemoved()
399 if (!hasFlag(prevApplication.flags, ApplicationInfo.FLAG_INSTALLED)) { in anyAppIsRemoved()
526 if (entry != null && hasFlag(entry.info.flags, ApplicationInfo.FLAG_INSTALLED)) { in requestSize()
1170 if (entry != null && !hasFlag(entry.info.flags, in handleMessage()
1190 if (hasFlag(flags, FLAG_SESSION_REQUEST_HOME_APP)) { in handleMessage()
1215 hasFlag(flags, FLAG_SESSION_REQUEST_LAUNCHER)) in handleMessage()
1217 hasFlag(flags, FLAG_SESSION_REQUEST_LEANBACK_LAUNCHER))) { in handleMessage()
1269 if (hasFlag(flags, FLAG_SESSION_REQUEST_ICONS)) { in handleMessage()
1304 if (hasFlag(flags, FLAG_SESSION_REQUEST_SIZES)) { in handleMessage()
1318 if (hasFlag(entry.info.flags, ApplicationInfo.FLAG_INSTALLED) in handleMessage()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/toast/
DSystemUIToast.java275 if (hasFlag(appInfo.flags, FLAG_UPDATED_SYSTEM_APP)) { in showApplicationIcon()
278 return !hasFlag(appInfo.flags, FLAG_SYSTEM); in showApplicationIcon()
281 private static boolean hasFlag(int flags, int flag) { in hasFlag() method in SystemUIToast
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifCollection.java841 && !hasFlag(entry, Notification.FLAG_ONGOING_EVENT)
842 && !hasFlag(entry, Notification.FLAG_BUBBLE)
843 && !hasFlag(entry, Notification.FLAG_NO_CLEAR)
860 && !hasFlag(entry, Notification.FLAG_BUBBLE)
864 private static boolean hasFlag(NotificationEntry entry, int flag) {
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp218 auto hasFlag = [](auto flags, auto flag) { return (flags & flag) == flag; }; in mixMatch() local
219 if (hasFlag(attributes.flags, AUDIO_FLAG_NO_SYSTEM_CAPTURE)) { in mixMatch()
228 hasFlag(attributes.flags, AUDIO_FLAG_NO_MEDIA_PROJECTION)) { in mixMatch()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DShortcutHelperTest.java351 assertThat(hasFlag(shortcutQuery.getQueryFlags(), ShortcutQuery.FLAG_GET_PERSONS_DATA)) in testGetValidShortcutInfo_hasGetPersonsDataFlag()
358 private static boolean hasFlag(int queryFlags, int flag) { in hasFlag() method in ShortcutHelperTest
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DScanTests.java464 assertThat(appInfoFlags, hasFlag(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)); in updateSystemApp_applicationInfoFlagSet()
481 assertThat(appInfoFlags, hasFlag(ApplicationInfo.FLAG_FACTORY_TEST)); in factoryTestFlagSet()
499 private static Matcher<Integer> hasFlag(final int flag) { in hasFlag() method in ScanTests
/frameworks/libs/net/client-libs/netd/com/android/net/module/util/
DNetdUtils.java82 public static boolean hasFlag(@NonNull final InterfaceConfigurationParcel config, in hasFlag() method in NetdUtils
/frameworks/base/services/core/java/com/android/server/am/
DConnectionRecord.java128 public boolean hasFlag(final int flag) { in hasFlag() method in ConnectionRecord
DOomAdjuster.java2000 if (cr.hasFlag(Context.BIND_INCLUDE_CAPABILITIES)) { in computeOomAdjLSP()
2105 } else if (cr.hasFlag(BIND_TREAT_LIKE_VISIBLE_FOREGROUND_SERVICE) in computeOomAdjLSP()
2145 if (cr.hasFlag(BIND_TREAT_LIKE_VISIBLE_FOREGROUND_SERVICE)) { in computeOomAdjLSP()
2147 } else if (cr.hasFlag(Context.BIND_FOREGROUND_SERVICE)) { in computeOomAdjLSP()
2165 if (cr.hasFlag(Context.BIND_INCLUDE_CAPABILITIES)) { in computeOomAdjLSP()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java474 private static int flag(boolean hasFlag, int flag) { in flag() argument
475 return hasFlag ? flag : 0; in flag()
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java233 if (deviceStates.get(i).hasFlag(DeviceState.FLAG_EMULATED_ONLY)) { in setStateConditions()
/frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/
DPackageInfoWithoutStateUtils.java818 private static int flag(boolean hasFlag, int flag) { in flag() argument
819 if (hasFlag) { in flag()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java824 assertThat(hasFlag(queryFlags, ShortcutQuery.FLAG_GET_PERSONS_DATA)).isTrue(); in testGetConversationGetsPersonsData()
1364 assertThat(hasFlag(queryFlags, ShortcutQuery.FLAG_GET_PERSONS_DATA)).isTrue(); in testGetRecentConversationsGetsPersonsData()
1722 private static boolean hasFlag(int queryFlags, int flag) { in hasFlag() method in DataManagerTest
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java6921 public boolean hasFlag(final int flags, final int flag) {
6986 && hasFlag(mAmi.getPendingIntentFlags(
6996 && hasFlag(mAmi.getPendingIntentFlags(action.actionIntent.getTarget()),
7008 && hasFlag(mAmi.getPendingIntentFlags(action.actionIntent.getTarget()),
/frameworks/base/services/
Dart-profile-boot619 Lcom/android/server/am/ConnectionRecord;->hasFlag(I)Z
Dart-profile8497 HSPLcom/android/server/am/ConnectionRecord;->hasFlag(I)Z
20293 HSPLcom/android/server/devicestate/DeviceState;->hasFlag(I)Z
31101 PLcom/android/server/notification/NotificationManagerService;->hasFlag(II)Z
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt32875 Landroid/net/InterfaceConfiguration;->hasFlag(Ljava/lang/String;)Z