Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/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()
/packages/apps/Settings/src/com/android/settings/core/
DPreferenceXmlParserUtils.java192 final boolean hasPrefScreenFlag = hasFlag(flags, MetadataFlag.FLAG_INCLUDE_PREF_SCREEN); in extractMetadata()
215 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_TYPE)) { in extractMetadata()
218 if (hasFlag(flags, MetadataFlag.FLAG_NEED_KEY)) { in extractMetadata()
221 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_CONTROLLER)) { in extractMetadata()
225 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_TITLE)) { in extractMetadata()
228 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_SUMMARY)) { in extractMetadata()
231 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_ICON)) { in extractMetadata()
234 if (hasFlag(flags, MetadataFlag.FLAG_NEED_KEYWORDS)) { in extractMetadata()
237 if (hasFlag(flags, MetadataFlag.FLAG_NEED_SEARCHABLE)) { in extractMetadata()
241 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_APPEND) && hasPrefScreenFlag) { in extractMetadata()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/
DRecentsState.java73 public final boolean hasFlag(int mask) { in hasFlag() method in RecentsState
92 return hasFlag(FLAG_MODAL) ? 1 : 0; in getOverviewModalness()
96 return hasFlag(FLAG_FULL_SCREEN); in isFullScreen()
103 return hasFlag(FLAG_CLEAR_ALL_BUTTON); in hasClearAllButton()
110 return hasFlag(FLAG_OVERVIEW_ACTIONS); in hasOverviewActions()
117 return hasFlag(FLAG_LIVE_TILE); in hasLiveTile()
124 return hasFlag(FLAG_SCRIM) ? Themes.getAttrColor(activity, R.attr.overviewScrimColor) in getScrimColor()
136 return hasFlag(FLAG_SHOW_AS_GRID) && showAsGrid(deviceProfile); in displayOverviewTasksAsGrid()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceXmlParser.java115 if (hasFlag(flags, MetadataFlag.FLAG_NEED_KEY)) { in extractMetadata()
118 if (hasFlag(flags, MetadataFlag.FLAG_NEED_PREF_CONTROLLER)) { in extractMetadata()
122 if (hasFlag(flags, MetadataFlag.FLAG_NEED_SEARCHABLE)) { in extractMetadata()
136 private static boolean hasFlag(int flags, @MetadataFlag int flag) { in hasFlag() method in PreferenceXmlParser
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DTypeFilterPreferenceController.java98 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/Launcher3/src/com/android/launcher3/statemanager/
DBaseState.java50 return hasFlag(FLAG_DISABLE_RESTORE); in shouldDisableRestore()
56 boolean hasFlag(int flagMask); in hasFlag() method
DStatefulActivity.java154 if (hasBeenResumed() && !getStateManager().getState().hasFlag(FLAG_NON_INTERACTIVE)) { in handleDeferredResume()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/service/
DRoleControllerServiceImpl.java234 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onAddRoleHolder()
265 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onRemoveRoleHolder()
299 boolean dontKillApp = hasFlag(flags, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP); in onClearRoleHolders()
460 private static boolean hasFlag(int flags, int flag) { in hasFlag() method in RoleControllerServiceImpl
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java157 public final boolean hasFlag(int mask) { in hasFlag() method in LauncherState
DLauncher.java993 || mStateManager.getState().hasFlag(FLAG_NON_INTERACTIVE))) { in checkIfOverlayStillDeferred()
1028 if (state.hasFlag(FLAG_CLOSE_POPUPS)) { in onStateSetStart()
1029 AbstractFloatingView.closeAllOpenViews(this, !state.hasFlag(FLAG_NON_INTERACTIVE)); in onStateSetStart()
1042 mWorkspace.getPageIndicator().setShouldAutoHide(!state.hasFlag(FLAG_MULTI_PAGE)); in onStateSetStart()
1062 getWorkspace().setClipChildren(!state.hasFlag(FLAG_MULTI_PAGE)); in onStateSetEnd()
DWorkspaceStateTransitionAnimation.java168 state.hasFlag(FLAG_HAS_SYS_UI_SCRIM) ? 1 : 0, LINEAR); in setScrim()
DWorkspace.java1260 return mLauncher.getStateManager().getState().hasFlag(FLAG_WORKSPACE_ICONS_CAN_BE_DRAGGED); in workspaceIconsCanBeDragged()
1366 if (toState.hasFlag(FLAG_MULTI_PAGE)) { in setStateWithAnimation()
1384 mLauncher.getStateManager().getState().hasFlag(FLAG_WORKSPACE_INACCESSIBLE) in updateAccessibilityFlags()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DBaseQuickstepLauncher.java402 && toState.hasFlag(FLAG_HIDE_BACK_BUTTON) in shouldBackButtonBeHidden()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java1559 private boolean hasFlag(LinkAddress addr, int flag) {
1564 return addr.isGlobalPreferred() && hasFlag(addr, IFA_F_TEMPORARY);
1570 return addr.isGlobalPreferred() && hasFlag(addr, flag);