Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/am/
DConnectionRecord.java141 return hasFlag(Context.BIND_INCLUDE_CAPABILITIES in canAffectCapabilities()
150 public boolean hasFlag(final int flag) { in hasFlag() method in ConnectionRecord
154 public boolean hasFlag(final long flag) { in hasFlag() method in ConnectionRecord
159 return !hasFlag(flag); in notHasFlag()
163 return !hasFlag(flag); in notHasFlag()
219 if (hasFlag(Context.BIND_AUTO_CREATE)) { in toString()
222 if (hasFlag(Context.BIND_DEBUG_UNBIND)) { in toString()
225 if (hasFlag(Context.BIND_NOT_FOREGROUND)) { in toString()
228 if (hasFlag(Context.BIND_IMPORTANT_BACKGROUND)) { in toString()
231 if (hasFlag(Context.BIND_ABOVE_CLIENT)) { in toString()
[all …]
DOomAdjuster.java727 ProcessRecord service = cr.hasFlag(ServiceInfo.FLAG_ISOLATED_PROCESS) in collectReachableProcessesLocked()
738 if (cr.hasFlag(Context.BIND_WAIVE_PRIORITY) in collectReachableProcessesLocked()
2689 if (cr.hasFlag(Context.BIND_INCLUDE_CAPABILITIES)) { in computeServiceHostOomAdjLSP()
2702 if (cr.hasFlag(Context.BIND_BYPASS_POWER_NETWORK_RESTRICTIONS)) { in computeServiceHostOomAdjLSP()
2713 if (cr.hasFlag(Context.BIND_BYPASS_USER_NETWORK_RESTRICTIONS)) { in computeServiceHostOomAdjLSP()
2739 if (cr.hasFlag(Context.BIND_ALLOW_OOM_MANAGEMENT)) { in computeServiceHostOomAdjLSP()
2796 if (cr.hasFlag(Context.BIND_ABOVE_CLIENT in computeServiceHostOomAdjLSP()
2810 } else if (cr.hasFlag(Context.BIND_NOT_PERCEPTIBLE) in computeServiceHostOomAdjLSP()
2814 } else if (cr.hasFlag(Context.BIND_ALMOST_PERCEPTIBLE) in computeServiceHostOomAdjLSP()
2821 } else if (cr.hasFlag(Context.BIND_ALMOST_PERCEPTIBLE) in computeServiceHostOomAdjLSP()
[all …]
DProcessServiceRecord.java314 if (cr.hasFlag(Context.BIND_ALMOST_PERCEPTIBLE)) { in isAlmostPerceptible()
360 if (!isSameProcess && cr.hasFlag(Context.BIND_ABOVE_CLIENT)) { in updateHasAboveClientLocked()
DActiveServices.java4260 if (b.client != s.app && c.hasFlag(Context.BIND_ABOVE_CLIENT)) { in bindServiceLocked()
4263 if (c.hasFlag(BIND_ALLOW_WHITELIST_MANAGEMENT)) { in bindServiceLocked()
4266 if (c.hasFlag(Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS)) { in bindServiceLocked()
4270 if (c.hasFlag(Context.BIND_NOT_APP_COMPONENT_USAGE)) { in bindServiceLocked()
4276 && c.hasFlag(Context.BIND_ALMOST_PERCEPTIBLE)) { in bindServiceLocked()
4315 if (c.hasFlag(Context.BIND_AUTO_CREATE)) { in bindServiceLocked()
4331 if (c.hasFlag(Context.BIND_TREAT_LIKE_ACTIVITY)) { in bindServiceLocked()
4341 && c.hasFlag(Context.BIND_TREAT_LIKE_ACTIVITY)), in bindServiceLocked()
4578 if (r.hasFlag(Context.BIND_TREAT_LIKE_ACTIVITY)) { in unbindServiceLocked()
6584 if (c.hasFlag(Context.BIND_ABOVE_CLIENT)) { in removeConnectionLocked()
[all …]
DServiceRecord.java1329 if (cr.get(i).hasFlag(Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS)) { in updateIsAllowedBgActivityStartsByBinding()
1509 if (cr.get(i).hasFlag(Context.BIND_AUTO_CREATE)) { in hasAutoCreateConnections()
1522 if (cr.get(i).hasFlag(Context.BIND_ALLOW_WHITELIST_MANAGEMENT)) { in updateAllowlistManager()
DOomAdjusterModernImpl.java1183 ProcessRecord service = cr.hasFlag(ServiceInfo.FLAG_ISOLATED_PROCESS) in forEachConnectionLSP()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DApplicationInfosTest.kt82 fun hasFlag() { in hasFlag() method in com.android.settingslib.spaprivileged.model.app.ApplicationInfosTest
87 val hasFlag = app.hasFlag(ApplicationInfo.FLAG_INSTALLED) in hasFlag() constant
89 assertThat(hasFlag).isTrue() in hasFlag()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DApplicationInfos.kt36 fun ApplicationInfo.hasFlag(flag: Int): Boolean = (flags and flag) > 0 method
39 val ApplicationInfo.installed: Boolean get() = hasFlag(ApplicationInfo.FLAG_INSTALLED)
DPackageManagers.kt71 getApplicationInfoAsUser(packageName, userId)?.hasFlag(ApplicationInfo.FLAG_INSTALLED) in getPackageInfoAsUserCached()
88 .hasFlag(REQUESTED_PERMISSION_GRANTED) in getPackageInfoAsUserCached()
99 private fun Int.hasFlag(flag: Int) = (this and flag) > 0 in getPackageInfoAsUserCached() method in com.android.settingslib.spaprivileged.model.app.PackageManagersImpl
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java419 if (hasFlag(application.flags, ApplicationInfo.FLAG_INSTALLED)) { in anyAppIsRemoved()
426 if (!hasFlag(prevApplication.flags, ApplicationInfo.FLAG_INSTALLED)) { in anyAppIsRemoved()
562 if (entry != null && hasFlag(entry.info.flags, ApplicationInfo.FLAG_INSTALLED)) { in requestSize()
1216 if (entry != null && !hasFlag(entry.info.flags, in handleMessage()
1236 if (hasFlag(flags, FLAG_SESSION_REQUEST_HOME_APP)) { in handleMessage()
1261 hasFlag(flags, FLAG_SESSION_REQUEST_LAUNCHER)) in handleMessage()
1263 hasFlag(flags, FLAG_SESSION_REQUEST_LEANBACK_LAUNCHER))) { in handleMessage()
1315 if (hasFlag(flags, FLAG_SESSION_REQUEST_ICONS)) { in handleMessage()
1350 if (hasFlag(flags, FLAG_SESSION_REQUEST_SIZES)) { in handleMessage()
1364 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/av/media/libaudioclient/tests/
Daudiorouting_tests.cpp38 bool hasFlag = false; in TEST() local
40 hasFlag = false; in TEST()
44 hasFlag = true; in TEST()
49 if (!hasFlag) continue; in TEST()
/frameworks/base/core/java/com/android/internal/pm/parsing/
DAppInfoUtils.java121 private static int flag(boolean hasFlag, int flag) { in flag() argument
122 return hasFlag ? flag : 0; in flag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/toast/
DSystemUIToast.java275 if (hasFlag(appInfo.flags, FLAG_UPDATED_SYSTEM_APP | 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.java877 && !hasFlag(entry, Notification.FLAG_ONGOING_EVENT)
878 && !hasFlag(entry, Notification.FLAG_BUBBLE)
879 && !hasFlag(entry, Notification.FLAG_NO_CLEAR)
897 && !hasFlag(entry, Notification.FLAG_BUBBLE)
901 private static boolean hasFlag(NotificationEntry entry, int flag) {
/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/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp438 auto hasFlag = [](auto flags, auto flag) { return (flags & flag) == flag; }; in mixMatch() local
439 if (hasFlag(attributes.flags, AUDIO_FLAG_NO_SYSTEM_CAPTURE)) { in mixMatch()
448 hasFlag(attributes.flags, AUDIO_FLAG_NO_MEDIA_PROJECTION)) { in mixMatch()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DScanTests.java505 assertThat(appInfoFlags, hasFlag(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)); in updateSystemApp_applicationInfoFlagSet()
522 assertThat(appInfoFlags, hasFlag(ApplicationInfo.FLAG_FACTORY_TEST)); in factoryTestFlagSet()
540 private static Matcher<Integer> hasFlag(final int flag) { in hasFlag() method in ScanTests
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java927 private static int flag(boolean hasFlag, int flag) { in flag() argument
928 return hasFlag ? flag : 0; 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.java7972 public boolean hasFlag(final int flags, final int flag) {
8038 && hasFlag(mAmi.getPendingIntentFlags(
8048 && hasFlag(mAmi.getPendingIntentFlags(action.actionIntent.getTarget()),
8060 && hasFlag(mAmi.getPendingIntentFlags(action.actionIntent.getTarget()),
/frameworks/base/services/
Dart-profile-boot619 Lcom/android/server/am/ConnectionRecord;->hasFlag(I)Z
Dart-wear-profile6163 HPLcom/android/server/am/ConnectionRecord;->hasFlag(I)Z
6164 HPLcom/android/server/am/ConnectionRecord;->hasFlag(J)Z
9944 PLcom/android/server/devicestate/DeviceState;->hasFlag(I)Z
Dart-profile779 HSPLcom/android/server/am/ConnectionRecord;->hasFlag(I)Z
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt32875 Landroid/net/InterfaceConfiguration;->hasFlag(Ljava/lang/String;)Z