/frameworks/native/libs/sensor/ |
D | Sensor.cpp | 41 mMaxDelay(0), mFlags(0) { in Sensor() 60 mFlags = 0; in Sensor() 96 mFlags |= SENSOR_FLAG_CONTINUOUS_MODE; in Sensor() 100 mFlags |= SENSOR_FLAG_ON_CHANGE_MODE; in Sensor() 104 mFlags |= SENSOR_FLAG_CONTINUOUS_MODE; in Sensor() 108 mFlags |= SENSOR_FLAG_CONTINUOUS_MODE; in Sensor() 112 mFlags |= SENSOR_FLAG_CONTINUOUS_MODE; in Sensor() 116 mFlags |= SENSOR_FLAG_CONTINUOUS_MODE; in Sensor() 120 mFlags |= SENSOR_FLAG_CONTINUOUS_MODE; in Sensor() 127 mFlags |= SENSOR_FLAG_ON_CHANGE_MODE; in Sensor() [all …]
|
/frameworks/native/include/ftl/ |
D | flags.h | 42 constexpr Flags(F f) : mFlags(static_cast<U>(f)) {} in Flags() 43 constexpr Flags() : mFlags(0) {} in Flags() 44 constexpr Flags(const Flags<F>& f) : mFlags(f.mFlags) {} in Flags() 51 constexpr Flags(T t, std::enable_if_t<!is_scoped_enum_v<F>, T>* = nullptr) : mFlags(t) {} in mFlags() function 55 : mFlags(t) {} in mFlags() function 63 Iterator(Flags<F> flags) : mRemainingFlags(flags.mFlags) { (*this)++; } in Iterator() 119 return (f & mFlags) == f; in test() 123 bool any(Flags<F> f = ~Flags<F>()) const { return (mFlags & f.mFlags) != 0; } 126 bool all(Flags<F> f) const { return (mFlags & f.mFlags) == f.mFlags; } in all() 128 constexpr Flags<F> operator|(Flags<F> rhs) const { return static_cast<F>(mFlags | rhs.mFlags); } [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | DexoptOptions.java | 84 private final int mFlags; field in DexoptOptions 122 mFlags = flags; in DexoptOptions() 132 return (mFlags & DEXOPT_CHECK_FOR_PROFILES_UPDATES) != 0; in isCheckForProfileUpdates() 140 return (mFlags & DEXOPT_FORCE) != 0; in isForce() 144 return (mFlags & DEXOPT_BOOT_COMPLETE) != 0; in isBootComplete() 148 return (mFlags & DEXOPT_ONLY_SECONDARY_DEX) != 0; in isDexoptOnlySecondaryDex() 152 return (mFlags & DEXOPT_DOWNGRADE) != 0; in isDowngrade() 156 return (mFlags & DEXOPT_AS_SHARED_LIBRARY) != 0; in isDexoptAsSharedLibrary() 160 return (mFlags & DEXOPT_IDLE_BACKGROUND_JOB) != 0; in isDexoptIdleBackgroundJob() 164 return (mFlags & DEXOPT_INSTALL_WITH_DEX_METADATA_FILE) != 0; in isDexoptInstallWithDexMetadata() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | TrustGrantFlags.java | 28 final int mFlags; field in TrustGrantFlags 31 this.mFlags = flags; in TrustGrantFlags() 36 return (mFlags & TrustAgentService.FLAG_GRANT_TRUST_INITIATED_BY_USER) != 0; in isInitiatedByUser() 49 return (mFlags & TrustAgentService.FLAG_GRANT_TRUST_DISMISS_KEYGUARD) != 0; in dismissKeyguardRequested() 54 return (mFlags & TrustAgentService.FLAG_GRANT_TRUST_TEMPORARY_AND_RENEWABLE) != 0; in temporaryAndRenewable() 59 return (mFlags & TrustAgentService.FLAG_GRANT_TRUST_DISPLAY_MESSAGE) != 0; in displayMessage() 68 return ((TrustGrantFlags) o).mFlags == this.mFlags; in equals() 73 return Objects.hash(mFlags); in hashCode() 80 sb.append(mFlags); in toString()
|
/frameworks/base/location/java/android/location/ |
D | GnssExcessPathInfo.java | 50 private final int mFlags; field in GnssExcessPathInfo 63 mFlags = flags; in GnssExcessPathInfo() 78 return mFlags; in getFlags() 83 return (mFlags & HAS_EXCESS_PATH_LENGTH_MASK) != 0; in hasExcessPathLength() 105 return (mFlags & HAS_EXCESS_PATH_LENGTH_UNC_MASK) != 0; in hasExcessPathLengthUncertainty() 131 return (mFlags & HAS_REFLECTING_PLANE_MASK) != 0; in hasReflectingPlane() 151 return (mFlags & HAS_ATTENUATION_MASK) != 0; in hasAttenuation() 176 parcel.writeInt(mFlags); in writeToParcel() 223 return this.mFlags == that.mFlags in equals() 239 return Objects.hash(mFlags, in hashCode() [all …]
|
D | SatellitePvt.java | 137 private final int mFlags; field in SatellitePvt 465 mFlags = flags; in SatellitePvt() 587 return (mFlags & HAS_POSITION_VELOCITY_CLOCK_INFO) != 0; in hasPositionVelocityClockInfo() 592 return (mFlags & HAS_IONO) != 0; in hasIono() 597 return (mFlags & HAS_TROPO) != 0; in hasTropo() 602 return (mFlags & HAS_ISSUE_OF_DATA_CLOCK) != 0; in hasIssueOfDataClock() 607 return (mFlags & HAS_ISSUE_OF_DATA_EPHEMERIS) != 0; in hasIssueOfDataEphemeris() 612 return (mFlags & HAS_TIME_OF_CLOCK) != 0; in hasTimeOfClockSeconds() 617 return (mFlags & HAS_TIME_OF_EPHEMERIS) != 0; in hasTimeOfEphemerisSeconds() 668 parcel.writeInt(mFlags); in writeToParcel() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Bundle.java | 128 mFlags = FLAG_HAS_FDS_KNOWN | FLAG_HAS_BINDERS_KNOWN | FLAG_ALLOW_FDS; in Bundle() 142 mFlags = FLAG_ALLOW_FDS; in Bundle() 155 mFlags = FLAG_ALLOW_FDS; in Bundle() 179 mFlags |= FLAG_HAS_FDS | FLAG_HAS_FDS_KNOWN; in maybePrefillHasFds() 181 mFlags |= FLAG_HAS_FDS_KNOWN; in maybePrefillHasFds() 195 mFlags = FLAG_HAS_FDS_KNOWN | FLAG_HAS_BINDERS_KNOWN | FLAG_ALLOW_FDS; in Bundle() 206 mFlags = FLAG_HAS_FDS_KNOWN | FLAG_HAS_BINDERS_KNOWN | FLAG_ALLOW_FDS; in Bundle() 220 mFlags = b.mFlags; in Bundle() 232 mFlags = FLAG_HAS_FDS_KNOWN | FLAG_HAS_BINDERS_KNOWN | FLAG_ALLOW_FDS; in Bundle() 268 final boolean orig = (mFlags & FLAG_ALLOW_FDS) != 0; in setAllowFds() [all …]
|
D | BatteryUsageStatsQuery.java | 78 private final int mFlags; field in BatteryUsageStatsQuery 88 mFlags = builder.mFlags; in BatteryUsageStatsQuery() 100 return mFlags; in getFlags() 119 return (mFlags & FLAG_BATTERY_USAGE_STATS_POWER_PROFILE_MODEL) != 0; in shouldForceUsePowerProfileModel() 123 return (mFlags & FLAG_BATTERY_USAGE_STATS_INCLUDE_PROCESS_STATE_DATA) != 0; in isProcessStateDataNeeded() 168 mFlags = in.readInt(); in BatteryUsageStatsQuery() 180 dest.writeInt(mFlags); in writeToParcel() 213 private int mFlags; field in BatteryUsageStatsQuery.Builder 244 mFlags |= BatteryUsageStatsQuery.FLAG_BATTERY_USAGE_STATS_INCLUDE_HISTORY; in includeBatteryHistory() 254 mFlags |= BatteryUsageStatsQuery.FLAG_BATTERY_USAGE_STATS_INCLUDE_PROCESS_STATE_DATA; in includeProcessStateData() [all …]
|
D | VibrationAttributes.java | 263 private final int mFlags; field in VibrationAttributes 271 mFlags = flags & FLAG_ALL_SUPPORTED; in VibrationAttributes() 306 return mFlags; in getFlags() 328 return (mFlags & flag) > 0; in isFlagSet() 373 dest.writeInt(mFlags); in writeToParcel() 380 mFlags = src.readInt(); in VibrationAttributes() 404 && mFlags == rhs.mFlags && mCategory == rhs.mCategory; in equals() 409 return Objects.hash(mUsage, mOriginalAudioUsage, mFlags, mCategory); in hashCode() 418 + ", mFlags=" + mFlags in toString() 480 private int mFlags = 0x0; field in VibrationAttributes.Builder [all …]
|
/frameworks/base/core/java/android/net/ |
D | InterfaceConfiguration.java | 33 private HashSet<String> mFlags = new HashSet<>(); field in InterfaceConfiguration 56 return mFlags; in getFlags() 61 return mFlags.contains(flag); in hasFlag() 67 mFlags.remove(flag); in clearFlag() 73 mFlags.add(flag); in setFlag() 81 mFlags.remove(FLAG_DOWN); in setInterfaceUp() 82 mFlags.add(FLAG_UP); in setInterfaceUp() 90 mFlags.remove(FLAG_UP); in setInterfaceDown() 91 mFlags.add(FLAG_DOWN); in setInterfaceDown() 98 mFlags.remove(FLAG_UP); in ignoreInterfaceUpDownStatus() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionState.java | 38 private int mFlags; field in PermissionState 48 mFlags = other.mFlags; in PermissionState() 96 return mFlags; in getFlags() 107 final int oldFlags = mFlags; in updateFlags() 108 mFlags = (mFlags & ~flagMask) | newFlags; in updateFlags() 109 return mFlags != oldFlags; in updateFlags() 115 return !mGranted && mFlags == 0; in isDefault()
|
/frameworks/base/core/java/android/app/admin/ |
D | LockTaskPolicy.java | 47 private int mFlags = DEFAULT_LOCK_TASK_FLAG; field in LockTaskPolicy 61 return mFlags; in getFlags() 88 mFlags = flags; in LockTaskPolicy() 99 mFlags = flags; in LockTaskPolicy() 109 mFlags = source.readInt(); in LockTaskPolicy() 118 mFlags = policy.mFlags; in LockTaskPolicy() 134 mFlags = flags; in setFlags() 152 && mFlags == other.mFlags; in equals() 157 return Objects.hash(mPackages, mFlags); in hashCode() 163 + mFlags + " }"; in toString() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/model/ |
D | SysUiState.java | 46 private @SystemUiStateFlags long mFlags; field in SysUiState 62 callback.onSystemUiStateChanged(mFlags); in addCallback() 73 return mFlags; in getFlags() 77 return (mFlags & flag) != 0; in isFlagEnabled() 114 long newState = mFlags; in updateFlags() 117 notifyAndSetSystemUiStateChanged(newState, mFlags); in updateFlags() 127 mFlags = newFlags; in notifyAndSetSystemUiStateChanged() 135 pw.print(" mSysUiStateFlags="); pw.println(mFlags); in dump() 136 pw.println(" " + QuickStepContract.getSystemUiStateString(mFlags)); in dump() 138 pw.println(QuickStepContract.isBackGestureDisabled(mFlags, false /* forTrackpad */)); in dump() [all …]
|
/frameworks/base/core/java/android/view/animation/ |
D | AnimationSet.java | 62 private int mFlags = 0; field in AnimationSet 93 mFlags |= PROPERTY_DURATION_MASK; in AnimationSet() 96 mFlags |= PROPERTY_FILL_BEFORE_MASK; in AnimationSet() 99 mFlags |= PROPERTY_FILL_AFTER_MASK; in AnimationSet() 102 mFlags |= PROPERTY_REPEAT_MODE_MASK; in AnimationSet() 105 mFlags |= PROPERTY_START_OFFSET_MASK; in AnimationSet() 143 mFlags |= mask; in setFlag() 145 mFlags &= ~mask; in setFlag() 155 mFlags |= PROPERTY_FILL_AFTER_MASK; in setFillAfter() 161 mFlags |= PROPERTY_FILL_BEFORE_MASK; in setFillBefore() [all …]
|
/frameworks/base/core/java/android/companion/virtual/sensor/ |
D | VirtualSensorConfig.java | 63 private final int mFlags; field in VirtualSensorConfig 76 mFlags = flags; in VirtualSensorConfig() 88 mFlags = parcel.readInt(); in VirtualSensorConfig() 106 parcel.writeInt(mFlags); in writeToParcel() 195 int rateLevel = ((mFlags & DIRECT_REPORT_MASK) >> DIRECT_REPORT_SHIFT); in getHighestDirectReportRateLevel() 208 if ((mFlags & (1 << DIRECT_CHANNEL_SHIFT)) > 0) { in getDirectChannelTypesSupported() 211 if ((mFlags & (1 << (DIRECT_CHANNEL_SHIFT + 1))) > 0) { in getDirectChannelTypesSupported() 225 return mFlags; in getFlags() 245 private int mFlags; field in VirtualSensorConfig.Builder 270 if ((mFlags & FLAG_MEMORY_FILE_DIRECT_CHANNEL_SUPPORTED) == 0) { in build() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ObbFile.h | 63 return mFlags; in getFlags() 67 mFlags = flags; in setFlags() 71 if ((mFlags & OBB_SALTED) == 0) { in getSalt() 86 mFlags |= OBB_SALTED; in setSalt() 91 return (mFlags & OBB_OVERLAY) == OBB_OVERLAY; in isOverlay() 96 mFlags |= OBB_OVERLAY; in setOverlay() 98 mFlags &= ~OBB_OVERLAY; in setOverlay() 121 int32_t mFlags; variable
|
/frameworks/base/core/java/android/view/contentcapture/ |
D | ContentCaptureCondition.java | 51 private final @Flags int mFlags; field in ContentCaptureCondition 64 this.mFlags = flags; in ContentCaptureCondition() 81 return mFlags; in getFlags() 88 result = prime * result + mFlags; in hashCode() 99 if (mFlags != other.mFlags) return false; in equals() 111 if (mFlags != 0) { in toString() 114 .append(DebugUtils.flagsToString(ContentCaptureCondition.class, "FLAG_", mFlags)) in toString() 128 parcel.writeInt(mFlags); in writeToParcel()
|
D | ViewNode.java | 87 private long mFlags; field in ViewNode 124 mFlags = nodeFlags; in ViewNode() 291 return (mFlags & FLAGS_ASSIST_BLOCKED) != 0; in isAssistBlocked() 296 return (mFlags & FLAGS_DISABLED) == 0; in isEnabled() 301 return (mFlags & FLAGS_CLICKABLE) != 0; in isClickable() 306 return (mFlags & FLAGS_LONG_CLICKABLE) != 0; in isLongClickable() 311 return (mFlags & FLAGS_CONTEXT_CLICKABLE) != 0; in isContextClickable() 316 return (mFlags & FLAGS_FOCUSABLE) != 0; in isFocusable() 321 return (mFlags & FLAGS_FOCUSED) != 0; in isFocused() 326 return (mFlags & FLAGS_ACCESSIBILITY_FOCUSED) != 0; in isAccessibilityFocused() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItem.java | 67 private int mFlags = ENABLED; field in ActionMenuItem 142 return (mFlags & CHECKABLE) != 0; in isCheckable() 146 return (mFlags & CHECKED) != 0; in isChecked() 150 return (mFlags & ENABLED) != 0; in isEnabled() 154 return (mFlags & HIDDEN) == 0; in isVisible() 169 mFlags = (mFlags & ~CHECKABLE) | (checkable ? CHECKABLE : 0); in setCheckable() 174 mFlags = (mFlags & ~EXCLUSIVE) | (exclusive ? EXCLUSIVE : 0); in setExclusiveCheckable() 179 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0); in setChecked() 184 mFlags = (mFlags & ~ENABLED) | (enabled ? ENABLED : 0); in setEnabled() 302 mFlags = (mFlags & HIDDEN) | (visible ? 0 : HIDDEN); in setVisible()
|
D | MenuItemImpl.java | 89 private int mFlags = ENABLED; field in MenuItemImpl 178 return (mFlags & ENABLED) != 0; in isEnabled() 183 mFlags |= ENABLED; in setEnabled() 185 mFlags &= ~ENABLED; in setEnabled() 559 return (mFlags & CHECKABLE) == CHECKABLE; in isCheckable() 563 final int oldFlags = mFlags; in setCheckable() 564 mFlags = (mFlags & ~CHECKABLE) | (checkable ? CHECKABLE : 0); in setCheckable() 565 if (oldFlags != mFlags) { in setCheckable() 574 mFlags = (mFlags & ~EXCLUSIVE) | (exclusive ? EXCLUSIVE : 0); in setExclusiveCheckable() 578 return (mFlags & EXCLUSIVE) != 0; in isExclusiveCheckable() [all …]
|
/frameworks/base/core/java/android/content/pm/permission/ |
D | RuntimePermissionPresentationInfo.java | 43 private final int mFlags; field in RuntimePermissionPresentationInfo 62 mFlags = flags; in RuntimePermissionPresentationInfo() 67 mFlags = parcel.readInt(); in RuntimePermissionPresentationInfo() 74 return (mFlags & FLAG_GRANTED) != 0; in isGranted() 81 return (mFlags & FLAG_STANDARD) != 0; in isStandard() 101 parcel.writeInt(mFlags); in writeToParcel()
|
/frameworks/base/core/java/android/hardware/devicestate/ |
D | DeviceStateRequest.java | 85 private int mFlags; field in DeviceStateRequest.Builder 97 mFlags |= flags; in setFlags() 107 return new DeviceStateRequest(mRequestedState, mFlags); in build() 147 private final int mFlags; field in DeviceStateRequest 151 mFlags = flags; in DeviceStateRequest() 160 return mFlags; in getFlags()
|
/frameworks/native/libs/binder/ |
D | MemoryHeapBase.cpp | 65 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase() 71 if (mFlags & FORCE_MEMFD) { in MemoryHeapBase() 76 const int SEAL_FLAGS = ((mFlags & READ_ONLY) ? F_SEAL_FUTURE_WRITE : 0) | F_SEAL_GROW | in MemoryHeapBase() 77 F_SEAL_SHRINK | ((mFlags & MEMFD_ALLOW_SEALING_FLAG) ? 0 : F_SEAL_SEAL); in MemoryHeapBase() 88 mFlags &= ~(FORCE_MEMFD | MEMFD_ALLOW_SEALING_FLAG); in MemoryHeapBase() 94 if (mFlags & READ_ONLY) { in MemoryHeapBase() 100 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase() 122 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase() 141 mFlags = flags; in init() 163 if ((mFlags & DONT_MAP_LOCALLY) == 0) { in mapfd() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | BubbleInfo.java | 34 private int mFlags; // Flags from BubbleMetadata field in BubbleInfo 56 mFlags = flags; in BubbleInfo() 68 mFlags = source.readInt(); in BubbleInfo() 93 return mFlags; in getFlags() 122 return (mFlags & Notification.BubbleMetadata.FLAG_SUPPRESS_BUBBLE) != 0; in isBubbleSuppressed() 131 return (mFlags & Notification.BubbleMetadata.FLAG_SUPPRESSABLE_BUBBLE) != 0; in isBubbleSuppressable() 138 return (mFlags & Notification.BubbleMetadata.FLAG_SUPPRESS_NOTIFICATION) != 0; in isNotificationSuppressed() 143 mFlags = flags; in setFlags() 167 parcel.writeInt(mFlags); in writeToParcel()
|
/frameworks/base/core/java/android/app/search/ |
D | SearchTargetEvent.java | 76 private int mFlags; field in SearchTargetEvent 136 mFlags = flags; in SearchTargetEvent() 144 mFlags = parcel.readInt(); in SearchTargetEvent() 180 return mFlags; in getFlags() 195 && mFlags == other.mFlags in equals() 209 dest.writeInt(mFlags); in writeToParcel() 236 private int mFlags; field in SearchTargetEvent.Builder 271 mFlags = flags; in setFlags() 280 return new SearchTargetEvent(mTargetIds, mLocation, mAction, mFlags); in build()
|