Home
last modified time | relevance | path

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

/frameworks/base/tests/net/common/java/android/net/metrics/
DApfProgramEventTest.kt31 private infix fun Int.hasFlag(flag: Int) = (this and (1 shl flag)) != 0 in hasFlag() method in android.net.metrics.ApfProgramEventTest
57 assertFalse(flags hasFlag ApfProgramEvent.FLAG_HAS_IPV4_ADDRESS) in testFlagsFor()
58 assertFalse(flags hasFlag ApfProgramEvent.FLAG_MULTICAST_FILTER_ON) in testFlagsFor()
61 assertTrue(flags hasFlag ApfProgramEvent.FLAG_HAS_IPV4_ADDRESS) in testFlagsFor()
62 assertFalse(flags hasFlag ApfProgramEvent.FLAG_MULTICAST_FILTER_ON) in testFlagsFor()
65 assertFalse(flags hasFlag ApfProgramEvent.FLAG_HAS_IPV4_ADDRESS) in testFlagsFor()
66 assertTrue(flags hasFlag ApfProgramEvent.FLAG_MULTICAST_FILTER_ON) in testFlagsFor()
69 assertTrue(flags hasFlag ApfProgramEvent.FLAG_HAS_IPV4_ADDRESS) in testFlagsFor()
70 assertTrue(flags hasFlag ApfProgramEvent.FLAG_MULTICAST_FILTER_ON) in testFlagsFor()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java391 if (hasFlag(application.flags, ApplicationInfo.FLAG_INSTALLED)) { in anyAppIsRemoved()
398 if (!hasFlag(prevApplication.flags, ApplicationInfo.FLAG_INSTALLED)) { in anyAppIsRemoved()
522 if (entry != null && hasFlag(entry.info.flags, ApplicationInfo.FLAG_INSTALLED)) { in requestSize()
1128 if (entry != null && !hasFlag(entry.info.flags, in handleMessage()
1148 if (hasFlag(flags, FLAG_SESSION_REQUEST_HOME_APP)) { in handleMessage()
1173 hasFlag(flags, FLAG_SESSION_REQUEST_LAUNCHER)) in handleMessage()
1175 hasFlag(flags, FLAG_SESSION_REQUEST_LEANBACK_LAUNCHER))) { in handleMessage()
1227 if (hasFlag(flags, FLAG_SESSION_REQUEST_ICONS)) { in handleMessage()
1262 if (hasFlag(flags, FLAG_SESSION_REQUEST_SIZES)) { in handleMessage()
1276 if (hasFlag(entry.info.flags, ApplicationInfo.FLAG_INSTALLED) in handleMessage()
[all …]
/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/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotifCollection.java693 && !hasFlag(entry, Notification.FLAG_FOREGROUND_SERVICE)
694 && !hasFlag(entry, Notification.FLAG_BUBBLE)
711 && !hasFlag(entry, Notification.FLAG_BUBBLE)
715 private static boolean hasFlag(NotificationEntry entry, int flag) {
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp211 auto hasFlag = [](auto flags, auto flag) { return (flags & flag) == flag; }; in mixMatch() local
212 if (hasFlag(attributes.flags, AUDIO_FLAG_NO_SYSTEM_CAPTURE)) { in mixMatch()
216 hasFlag(attributes.flags, AUDIO_FLAG_NO_MEDIA_PROJECTION)) { in mixMatch()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DScanTests.java417 assertThat(appInfoFlags, hasFlag(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)); in updateSystemApp_applicationInfoFlagSet()
433 assertThat(appInfoFlags, hasFlag(ApplicationInfo.FLAG_FACTORY_TEST)); in factoryTestFlagSet()
451 private static Matcher<Integer> hasFlag(final int flag) { in hasFlag() method in ScanTests
/frameworks/base/services/core/java/com/android/server/am/
DConnectionRecord.java116 public boolean hasFlag(final int flag) { in hasFlag() method in ConnectionRecord
DOomAdjuster.java1571 if (cr.hasFlag(Context.BIND_INCLUDE_CAPABILITIES)) { in computeOomAdjLocked()
1684 if (cr.hasFlag(Context.BIND_FOREGROUND_SERVICE)) { in computeOomAdjLocked()
1706 if (cr.hasFlag(Context.BIND_INCLUDE_CAPABILITIES)) { in computeOomAdjLocked()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java451 private static int flag(boolean hasFlag, int flag) { in flag() argument
452 return hasFlag ? flag : 0; in flag()
/frameworks/base/core/java/android/content/pm/parsing/
DPackageInfoWithoutStateUtils.java668 private static int flag(boolean hasFlag, int flag) { in flag() argument
669 if (hasFlag) { in flag()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java324 if (config.hasFlag("running")) { in addInterface()
/frameworks/base/services/
Dart-profile-boot619 Lcom/android/server/am/ConnectionRecord;->hasFlag(I)Z
Dart-profile7102 HSPLcom/android/server/am/ConnectionRecord;->hasFlag(I)Z