Home
last modified time | relevance | path

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

12

/aosp14/system/core/init/
H A Dkeychords.cpp50 Keychords::Mask::Mask(size_t bit) : bits_((bit + sizeof(mask_t) - 1) / sizeof(mask_t), 0) {} in Mask() argument
52 void Keychords::Mask::SetBit(size_t bit, bool value) { in SetBit() argument
53 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in SetBit()
56 bits_[idx] |= mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t))); in SetBit()
58 bits_[idx] &= ~(mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in SetBit()
62 bool Keychords::Mask::GetBit(size_t bit) const { in GetBit()
63 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in GetBit()
64 return bits_[idx] & (mask_t(1) << (bit % (kBitsPerByte * sizeof(mask_t)))); in GetBit()
79 void Keychords::Mask::resize(size_t bit) { in resize() argument
80 auto idx = bit / (kBitsPerByte * sizeof(mask_t)); in resize()
H A Dkeychords.h46 explicit Mask(size_t bit = 0);
48 void SetBit(size_t bit, bool value = true);
49 bool GetBit(size_t bit) const;
54 void resize(size_t bit);
/aosp14/system/core/libutils/
H A DBitSet_fuzz.cpp51 void runOperationFor32Bit(android::BitSet32 bs, uint32_t bit, uint8_t operation) { in runOperationFor32Bit() argument
52 thirtyTwoBitOps[operation](bs, bit); in runOperationFor32Bit()
64 uint32_t bit = dataProvider.ConsumeIntegral<uint32_t>(); in LLVMFuzzerTestOneInput() local
66 thirtyTwoBitOps[op % thirtyTwoBitOps.size()](b1, bit); in LLVMFuzzerTestOneInput()
67 sixtyFourBitOps[op % sixtyFourBitOps.size()](b2, bit); in LLVMFuzzerTestOneInput()
/aosp14/frameworks/base/core/java/android/net/metrics/
H A DApfProgramEvent.java241 for (int bit = set.nextSetBit(0); bit >= 0; bit = set.nextSetBit(bit+1)) { in namesOf()
242 names.add(Decoder.constants.get(bit)); in namesOf()
/aosp14/system/core/libstats/pull_lazy/
H A DAndroid.bp38 // 32bit and 64bit architectures.
/aosp14/system/core/libstats/socket_lazy/
H A DAndroid.bp34 // 32bit and 64bit architectures.
/aosp14/system/core/code_coverage/seccomp_policy/
H A Dcode_coverage.policy.def5 // size specific: __LP64__ for 64 bit, else 32 bit
/aosp14/frameworks/base/tools/bit/
H A DAndroid.bp18 // Build the host executable: bit
30 name: "bit",
/aosp14/frameworks/base/media/java/android/media/audio/common/
H A DAidlConversion.java240 for (int bit = 1 << 31; bit != 0; bit >>>= 1) { in aidl2api_AudioChannelLayoutBitMask_AudioFormatChannelMask()
241 if ((aidlBitMask & bit) == bit) { in aidl2api_AudioChannelLayoutBitMask_AudioFormatChannelMask()
242 int apiBit = aidl2api_AudioChannelLayoutBit_AudioFormatChannel(bit, isInput); in aidl2api_AudioChannelLayoutBitMask_AudioFormatChannelMask()
245 aidlBitMask &= ~bit; in aidl2api_AudioChannelLayoutBitMask_AudioFormatChannelMask()
/aosp14/frameworks/base/tools/aapt2/
H A Dformats.md20 This is followed by `entry_count` of the following data structure. It must be aligned on a 32-bit
40 … bytes of zeros, if padding is necessary to align the `data` field on a 32-bit boundary. …
/aosp14/frameworks/base/core/proto/android/view/inputmethod/
H A Dinputmethodeditortrace.proto41 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
91 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
128 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/docs/
H A Ddagger.md19 components in the shell are provided is as a result a bit more verbose, but it makes it easy for
23 The module dependency tree looks a bit like:
/aosp14/frameworks/base/core/java/android/hardware/hdmi/
H A DDeviceFeatures.java144 private static int bitToFeatureSupportStatus(boolean bit) { in bitToFeatureSupportStatus() argument
145 return bit ? FEATURE_SUPPORTED : FEATURE_NOT_SUPPORTED; in bitToFeatureSupportStatus()
/aosp14/frameworks/base/core/proto/android/server/
H A Dpeopleservice.proto53 // Integer representation of shortcut bit flags.
56 // Integer representation of conversation bit flags.
H A Dwindowmanagertrace.proto31 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
H A Dwindowmanagertransitiontrace.proto31 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
H A Daccessibilitytrace.proto32 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
/aosp14/frameworks/base/packages/SystemUI/docs/
H A Dkotlin-in-sysui.md5 Kotlin is probably going to be a bit of a wild west for a while, but please
/aosp14/system/core/debuggerd/
H A DAndroid.bp501 // This installs the "other" architecture (so 32-bit on 64-bit device).
/aosp14/frameworks/base/libs/WindowManager/Shell/proto/
H A Dwm_shell_transition_trace.proto28 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
/aosp14/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DWapPushTest.java842 int bit = 1; in encodeUint32() local
849 if ((bit & uint32Val) > 0) topbit = i; in encodeUint32()
850 bit = (bit << 1); in encodeUint32()
1001 int bit = 1; in createRandomWspHeader() local
1005 if ((mAppIdValue & bit) > 0) topBit = i; in createRandomWspHeader()
1006 bit = (bit << 1); in createRandomWspHeader()
/aosp14/frameworks/base/core/proto/android/internal/
H A Dprotolog.proto50 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit
/aosp14/frameworks/base/cmds/uinput/
H A DREADME.md39 | vid | 16-bit integer| Vendor id |
40 | pid | 16-bit integer| Product id |
/aosp14/frameworks/base/cmds/hid/
H A DREADME.md45 | vid | 16-bit integer| Vendor id |
46 | pid | 16-bit integer| Product id |
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/
H A DIpConnectivityEventBuilder.java339 private static boolean isBitSet(int flags, int bit) { in isBitSet() argument
340 return (flags & (1 << bit)) != 0; in isBitSet()

12