/packages/modules/Connectivity/tests/common/java/android/net/metrics/ |
D | ApfProgramEventTest.kt | 31 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()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | PreferenceXmlParserUtils.java | 132 final boolean hasPrefScreenFlag = hasFlag(flags, MetadataFlag.FLAG_INCLUDE_PREF_SCREEN); in extractMetadata() 155 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_TYPE)) { in extractMetadata() 158 if (hasFlag(flags, MetadataFlag.FLAG_NEED_KEY)) { in extractMetadata() 161 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_CONTROLLER)) { in extractMetadata() 165 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_TITLE)) { in extractMetadata() 168 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_SUMMARY)) { in extractMetadata() 171 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_ICON)) { in extractMetadata() 174 if (hasFlag(flags, MetadataFlag.FLAG_NEED_KEYWORDS)) { in extractMetadata() 177 if (hasFlag(flags, MetadataFlag.FLAG_NEED_SEARCHABLE)) { in extractMetadata() 181 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_APPEND) && hasPrefScreenFlag) { in extractMetadata() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/ |
D | RecentsState.java | 80 public final boolean hasFlag(int mask) { in hasFlag() method in RecentsState 99 return hasFlag(FLAG_MODAL) ? 1 : 0; in getOverviewModalness() 103 return hasFlag(FLAG_FULL_SCREEN); in isFullScreen() 110 return hasFlag(FLAG_CLEAR_ALL_BUTTON); in hasClearAllButton() 117 return hasFlag(FLAG_OVERVIEW_ACTIONS); in hasOverviewActions() 124 return hasFlag(FLAG_LIVE_TILE); in hasLiveTile() 131 return hasFlag(FLAG_SCRIM) in getScrimColor() 144 return hasFlag(FLAG_SHOW_AS_GRID) && deviceProfile.isTablet; in displayOverviewTasksAsGrid() 149 return hasFlag(FLAG_TASK_THUMBNAIL_SPLASH); in showTaskThumbnailSplash() 156 return hasFlag(FLAG_RECENTS_VIEW_VISIBLE); in isRecentsViewVisible()
|
/packages/modules/Connectivity/staticlibs/client-libs/tests/unit/src/com/android/net/module/util/ |
D | NetdUtilsTest.java | 237 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()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | PreferenceXmlParser.java | 130 if (hasFlag(flags, MetadataFlag.FLAG_NEED_KEY)) { in extractMetadata() 133 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_CONTROLLER)) { in extractMetadata() 137 if (hasFlag(flags, MetadataFlag.FLAG_NEED_SEARCHABLE)) { in extractMetadata() 141 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_DRIVER)) { in extractMetadata() 144 } else if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_FRONT_PASSENGER)) { in extractMetadata() 147 } else if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_REAR_PASSENGER)) { in extractMetadata() 179 private static boolean hasFlag(int flags, @MetadataFlag int flag) { in hasFlag() method in PreferenceXmlParser
|
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/ |
D | AppStoragePreference.kt | 29 import com.android.settingslib.spaprivileged.model.app.hasFlag 34 if (!app.hasFlag(ApplicationInfo.FLAG_INSTALLED)) return in AppStoragePreference() 55 when (app.hasFlag(ApplicationInfo.FLAG_EXTERNAL_STORAGE)) { in getSummary()
|
D | AppTimeSpentPreference.kt | 35 import com.android.settingslib.spaprivileged.model.app.hasFlag in <lambda>() 72 fun isEnabled() = app.hasFlag(ApplicationInfo.FLAG_INSTALLED) in isEnabled()
|
D | AppForceStopRepository.kt | 28 import com.android.settingslib.spaprivileged.model.app.hasFlag in <lambda>() 69 !app.hasFlag(ApplicationInfo.FLAG_STOPPED) -> true in <lambda>()
|
D | AppOpenByDefaultPreference.kt | 36 import com.android.settingslib.spaprivileged.model.app.hasFlag 69 fun isEnabled() = app.hasFlag(ApplicationInfo.FLAG_INSTALLED) && app.enabled in isAvailable()
|
D | AppButtonRepository.kt | 32 import com.android.settingslib.spaprivileged.model.app.hasFlag in <lambda>() 91 !app.hasFlag(ApplicationInfo.FLAG_INSTALLED) && !app.isArchived -> return false in <lambda>()
|
D | AppDataUsagePreference.kt | 40 import com.android.settingslib.spaprivileged.model.app.hasFlag in <lambda>() 98 fun isEnabled() = app.hasFlag(ApplicationInfo.FLAG_INSTALLED) in isEnabled()
|
/packages/apps/Launcher3/src/com/android/launcher3/statemanager/ |
D | BaseState.java | 52 return hasFlag(FLAG_DISABLE_RESTORE); in shouldDisableRestore() 58 boolean hasFlag(int flagMask); in hasFlag() method
|
D | StatefulContainer.java | 67 if (state.hasFlag(FLAG_CLOSE_POPUPS)) { in onStateSetStart() 68 AbstractFloatingView.closeAllOpenViews(this, !state.hasFlag(FLAG_NON_INTERACTIVE)); in onStateSetStart()
|
D | StatefulActivity.java | 146 if (hasBeenResumed() && !getStateManager().getState().hasFlag(FLAG_NON_INTERACTIVE)) { in handleDeferredResume()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/ |
D | TypeFilterPreferenceController.java | 98 private boolean hasFlag(int value, int flag) { in hasFlag() method in TypeFilterPreferenceController 125 check.setChecked(hasFlag(mNlf.getTypes(), getType())); in updateState() 157 if (hasFlag(types, getType())) { in updateState()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | ApplicationsState.java | 398 if (hasFlag(application.flags, ApplicationInfo.FLAG_INSTALLED)) { in anyAppIsRemoved() 405 if (!hasFlag(prevApplication.flags, ApplicationInfo.FLAG_INSTALLED)) { in anyAppIsRemoved() 530 if (entry != null && hasFlag(entry.info.flags, ApplicationInfo.FLAG_INSTALLED)) { in requestSize() 1162 if (entry != null && !hasFlag(entry.info.flags, in handleMessage() 1185 if (hasFlag(flags, FLAG_SESSION_REQUEST_HOME_APP)) { in handleMessage() 1213 hasFlag(flags, FLAG_SESSION_REQUEST_LAUNCHER)) in handleMessage() 1215 hasFlag(flags, FLAG_SESSION_REQUEST_LEANBACK_LAUNCHER))) { in handleMessage() 1272 if (hasFlag(flags, FLAG_SESSION_REQUEST_ICONS)) { in handleMessage() 1313 if (hasFlag(flags, FLAG_SESSION_REQUEST_SIZES)) { in handleMessage() 1328 if (hasFlag(entry.info.flags, ApplicationInfo.FLAG_INSTALLED) in handleMessage() [all …]
|
/packages/apps/Settings/src/com/android/settings/spa/development/compat/ |
D | PlatformCompatAppListModel.kt | 31 import com.android.settingslib.spaprivileged.model.app.hasFlag in <lambda>() 51 Build.IS_DEBUGGABLE || record.app.hasFlag(ApplicationInfo.FLAG_DEBUGGABLE) in <lambda>()
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/service/ |
D | RoleControllerServiceImpl.java | 255 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onAddRoleHolder() 286 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onRemoveRoleHolder() 320 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onClearRoleHolders() 490 private static boolean hasFlag(int flags, int flag) { in hasFlag() method in RoleControllerServiceImpl
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WorkspaceStateTransitionAnimation.java | 165 state.hasFlag(FLAG_HOTSEAT_INACCESSIBLE) in setWorkspaceProperty() 168 hotseat.setDescendantFocusability(state.hasFlag(FLAG_HOTSEAT_INACCESSIBLE) in setWorkspaceProperty() 208 state.hasFlag(FLAG_HAS_SYS_UI_SCRIM) ? 1 : 0, LINEAR); in setScrim()
|
D | LauncherState.java | 178 public final boolean hasFlag(int mask) { in hasFlag() method in LauncherState
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/ |
D | EapResult.java | 152 public static boolean hasFlag(int flagMask, @EapResponseFlag int flagToCheck) { in hasFlag() method in EapResult.EapResponse
|
/packages/modules/Connectivity/staticlibs/client-libs/netd/com/android/net/module/util/ |
D | NetdUtils.java | 83 public static boolean hasFlag(@NonNull final InterfaceConfigurationParcel config, in hasFlag() method in NetdUtils
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | LauncherTaskbarUIController.java | 209 && mLauncher.getStateManager().getState().hasFlag(FLAG_NON_INTERACTIVE) in onLauncherVisibilityChanged()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/ |
D | EthernetTracker.java | 602 if (NetdUtils.hasFlag(config, INetd.IF_STATE_DOWN)) { in addInterface() 643 if (NetdUtils.hasFlag(config, INetd.IF_FLAG_RUNNING)) { in addInterface()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClient.java | 2142 private static boolean hasFlag(@NonNull final LinkAddress la, final int flags) { in hasFlag() method in IpClient 2157 && hasFlag(la, DHCPV6_PREFIX_DELEGATION_ADDRESS_FLAGS); in isIpv6StableDelegatedAddress() 3214 if (hasFlag(la, IFA_F_MANAGETEMPADDR) && prefix.contains(la.getAddress())) { in deleteIpv6PrefixDelegationAddresses() 3220 if (!hasFlag(la, IFA_F_MANAGETEMPADDR) && prefix.contains(la.getAddress())) { in deleteIpv6PrefixDelegationAddresses()
|