/frameworks/av/media/libstagefright/rtsp/ |
D | AMPEG4AudioAssembler.cpp | 99 ABitReader *bits, unsigned *audioObjectType) { in parseAudioObjectType() argument 100 *audioObjectType = bits->getBits(5); in parseAudioObjectType() 102 *audioObjectType = 32 + bits->getBits(6); in parseAudioObjectType() 109 ABitReader *bits, in parseGASpecificConfig() argument 111 unsigned frameLengthFlag __unused = bits->getBits(1); in parseGASpecificConfig() 112 unsigned dependsOnCoreCoder = bits->getBits(1); in parseGASpecificConfig() 114 /* unsigned coreCoderDelay = */bits->getBits(1); in parseGASpecificConfig() 116 unsigned extensionFlag = bits->getBits(1); in parseGASpecificConfig() 124 /* unsigned layerNr = */bits->getBits(3); in parseGASpecificConfig() 129 /* unsigned numOfSubFrame = */bits->getBits(5); in parseGASpecificConfig() [all …]
|
D | AMPEG4ElementaryAssembler.cpp | 264 ABitReader bits(buffer->data() + 2, buffer->size() - 2); in addPacket() local 271 unsigned AU_size = bits.getBits(mSizeLength); in addPacket() 277 unsigned AU_index = bits.getBits(n); in addPacket() 291 if (bits.getBits(1)) { in addPacket() 295 bits.skipBits(mCTSDeltaLength); in addPacket() 305 if (bits.getBits(1)) { in addPacket() 309 bits.skipBits(mDTSDeltaLength); in addPacket() 318 bits.skipBits(1); in addPacket() 326 bits.skipBits(mStreamStateIndication); in addPacket() 338 ABitReader bits(buffer->data() + offset, buffer->size() - offset); in addPacket() local [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | BitwiseInputStream.java | 79 public int read(int bits) throws AccessException { in read() argument 81 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in read() 82 if ((bits < 0) || (bits > 8) || ((mPos + bits) > mEnd)) { in read() 84 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in read() 89 data &= (-1 >>> (32 - bits)); in read() 90 mPos += bits; in read() 101 public byte[] readByteArray(int bits) throws AccessException { in readByteArray() argument 102 int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8 in readByteArray() 105 int increment = Math.min(8, bits - (i << 3)); in readByteArray() 117 public void skip(int bits) throws AccessException { in skip() argument [all …]
|
D | BitwiseOutputStream.java | 79 private void possExpand(int bits) { in possExpand() argument 80 if ((mPos + bits) < mEnd) return; in possExpand() 81 byte[] newBuf = new byte[(mPos + bits) >>> 2]; in possExpand() 97 public void write(int bits, int data) throws AccessException { in write() argument 98 if ((bits < 0) || (bits > 8)) { in write() 99 throw new AccessException("illegal write (" + bits + " bits)"); in write() 101 possExpand(bits); in write() 102 data &= (-1 >>> (32 - bits)); in write() 104 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in write() 106 mPos += bits; in write() [all …]
|
D | CallbackRegistry.java | 174 final long bits = mRemainderRemoved[remainderIndex]; in notifyRemainderLocked() local 178 notifyCallbacksLocked(sender, arg, arg2, startIndex, endIndex, bits); in notifyRemainderLocked() 200 final int endIndex, final long bits) { in notifyCallbacksLocked() argument 203 if ((bits & bitMask) == 0) { in notifyCallbacksLocked() 243 final long bits = mRemainderRemoved[maskIndex]; in isRemovedLocked() local 245 return (bits & bitMask) != 0; in isRemovedLocked()
|
/frameworks/native/libs/math/include/math/ |
D | half.h | 59 uint16_t bits; member 60 explicit constexpr fp16() noexcept : bits(0) { } in fp16() 61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() 62 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS() 63 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE() 64 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM() 65 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS() 66 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE() 67 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM() 71 uint32_t bits; member [all …]
|
/frameworks/compile/slang/tests/F_fs_types/ |
D | stderr.txt.expect | 1 fs_types.fs:4:8: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'd' 2 fs_types.fs:13:10: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'myS' 3 fs_types.fs:15:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'd' 4 fs_types.fs:16:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'e' 5 fs_types.fs:17:15: error: Builtin types > 32 bits in size are forbidden in Filterscript 6 fs_types.fs:18:7: error: Builtin types > 32 bits in size are forbidden in Filterscript 7 fs_types.fs:21:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'l' 8 fs_types.fs:22:10: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'm' 9 fs_types.fs:23:13: error: Builtin types > 32 bits in size are forbidden in Filterscript 10 fs_types.fs:24:7: error: Builtin types > 32 bits in size are forbidden in Filterscript [all …]
|
/frameworks/native/libs/vr/libdisplay/include/private/dvr/ |
D | display_protocol.h | 72 bool IsSet(Integer bits) const { return (value_ & bits) == bits; } in IsSet() argument 73 bool IsClear(Integer bits) const { return (value_ & bits) == 0; } in IsClear() argument 75 void Set(Integer bits) { value_ |= bits; } in Set() argument 76 void Clear(Integer bits) { value_ &= ~bits; } in Clear() argument 78 Integer operator|(Integer bits) const { return value_ | bits; } 79 Integer operator&(Integer bits) const { return value_ & bits; } 81 Flags& operator|=(Integer bits) { 82 value_ |= bits; 85 Flags& operator&=(Integer bits) { 86 value_ &= bits;
|
/frameworks/native/opengl/libagl/ |
D | dxt.cpp | 164 uint32_t bits = *d32++; in DXT1HasAlpha() local 171 if (((bits & (bits >> 1)) & 0x55555555) != 0) { in DXT1HasAlpha() 216 uint32_t bits = *d32++; in decodeDXT1() local 220 bits = swap(bits); in decodeDXT1() 253 int bbits = bits >> 1; in decodeDXT1() 254 bool has2 = ((bbits & ~bits) & 0x55555555) != 0; in decodeDXT1() 255 bool has3 = ((bbits & bits) & 0x55555555) != 0; in decodeDXT1() 295 int code = bits & 0x3; in decodeDXT1() 296 bits >>= 2; in decodeDXT1() 339 uint32_t bits = *d32++; in decodeDXT3() local [all …]
|
/frameworks/rs/ |
D | spec.l | 106 currType->bits = 8; 112 currType->bits = 16; 118 currType->bits = 32; 124 currType->bits = 64; 130 currType->bits = 8; 136 currType->bits = 16; 142 currType->bits = 32; 148 currType->bits = 64; 154 currType->bits = 32; 160 currType->bits = 64; [all …]
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Painting.kt | 310 var bits = oldBits in setupBitmaps() variable 311 if (bits == null || bits.width != w || bits.height != h) { in setupBitmaps() 312 bits = Bitmap.createBitmap( in setupBitmaps() 318 if (bits == null) return in setupBitmaps() 320 val c = Canvas(bits) in setupBitmaps() 323 if (oldBits.width < oldBits.height != bits.width < bits.height) { in setupBitmaps() 326 if (bits.width > bits.height) { in setupBitmaps() 329 matrix.postTranslate(0f, bits.height.toFloat()) in setupBitmaps() 333 matrix.postTranslate(bits.width.toFloat(), 0f) in setupBitmaps() 335 if (bits.width != oldBits.height || bits.height != oldBits.width) { in setupBitmaps() [all …]
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 99 static int32_t readVariableBits(ABitReader &bits, int32_t nbits) { in readVariableBits() argument 104 value += bits.getBits(nbits); in readVariableBits() 105 more_bits = bits.getBits(1); in readVariableBits() 143 ABitReader bits(ptr, size); in parseAC3SyncFrame() local 144 if (bits.numBitsLeft() < 16) { in parseAC3SyncFrame() 147 if (bits.getBits(16) != 0x0B77) { in parseAC3SyncFrame() 151 if (bits.numBitsLeft() < 16 + 2 + 6 + 5 + 3 + 3) { in parseAC3SyncFrame() 155 bits.skipBits(16); // crc1 in parseAC3SyncFrame() 157 unsigned fscod = bits.getBits(2); in parseAC3SyncFrame() 163 unsigned frmsizecod = bits.getBits(6); in parseAC3SyncFrame() [all …]
|
/frameworks/av/cmds/stagefright/ |
D | jpeg.cpp | 25 static inline uint8_t from565to8(uint16_t p, int start, int bits) { in from565to8() argument 26 uint8_t c = (p >> start) & ((1 << bits) - 1); in from565to8() 27 return (c << (8 - bits)) | (c >> (bits - (8 - bits))); in from565to8()
|
/frameworks/base/tests/net/java/com/android/internal/util/ |
D | BitUtilsTest.java | 154 + Arrays.toString(tc.bits) in testBitsPacking() 157 Arrays.equals(tc.bits, got)); in testBitsPacking() 160 long got = packBits(tc.bits); in testBitsPacking() 163 + Arrays.toString(tc.bits) in testBitsPacking() 193 final int[] bits; field in BitUtilsTest.BitPackingTestCase 196 BitPackingTestCase(long packedBits, int[] bits) { in BitPackingTestCase() argument 197 this.bits = bits; in BitPackingTestCase()
|
/frameworks/native/libs/input/ |
D | Input.cpp | 106 if (axis < 0 || axis > 63 || !BitSet64::hasBit(bits, axis)){ in getAxisValue() 109 return values[BitSet64::getIndexOfBit(bits, axis)]; in getAxisValue() 117 uint32_t index = BitSet64::getIndexOfBit(bits, axis); in setAxisValue() 118 if (!BitSet64::hasBit(bits, axis)) { in setAxisValue() 123 uint32_t count = BitSet64::count(bits); in setAxisValue() 128 BitSet64::markBit(bits, axis); in setAxisValue() 172 bits = parcel->readInt64(); in readFromParcel() 174 uint32_t count = BitSet64::count(bits); in readFromParcel() 186 parcel->writeInt64(bits); in writeToParcel() 188 uint32_t count = BitSet64::count(bits); in writeToParcel() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_crc.cpp | 128 uint32 bits = getNbits(inputStream, neededBits); in getbits_crc() local 132 calculate_crc(bits, neededBits, crc); in getbits_crc() 134 return(bits); in getbits_crc()
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | bits2prm.cpp | 271 Word16 bits[], /* i : serial bits (size <= MAX_SERIAL_SIZE) */ in Bits2prm() argument 279 prm[i] = Bin2int(bitno[mode][i], bits); in Bits2prm() 280 bits += bitno[mode][i]; in Bits2prm()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputClassifierConverter_test.cpp | 52 uint32_t index = BitSet64::getIndexOfBit(static_cast<uint64_t>(coords.bits), in getMotionEventAxis() 66 ASSERT_EQ(3U, BitSet64::count(motionArgs.pointerCoords[0].bits)); in TEST() 76 ASSERT_EQ(BitSet64::count(motionArgs.pointerCoords[0].bits), in TEST() 77 BitSet64::count(motionEvent.pointerCoords[0].bits)); in TEST()
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | prm2bits.cpp | 292 Word16 bits[] /* o : serial bits (size <= MAX_SERIAL_SIZE) */ in Prm2bits() argument 304 Int2bin(*(p_prm++), *(p_mode), bits); in Prm2bits() 305 bits += *(p_mode++); in Prm2bits()
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 563 int bits = data[valueIndex++] & 0xFF; in parseToRGB() local 574 if (0 == (8 % bits)) { in parseToRGB() 576 (width * height), colorIndexArray, bits); in parseToRGB() 579 (width * height), colorIndexArray, bits); in parseToRGB() 587 int length, int[] colorArray, int bits) { in mapTo2OrderBitColor() argument 588 if (0 != (8 % bits)) { in mapTo2OrderBitColor() 591 bits); in mapTo2OrderBitColor() 595 switch (bits) { in mapTo2OrderBitColor() 612 int run = 8 / bits; in mapTo2OrderBitColor() 617 resultArray[resultIndex++] = colorArray[(tempByte >> (offset * bits)) in mapTo2OrderBitColor() [all …]
|
/frameworks/av/media/libstagefright/ |
D | MetaDataUtils.cpp | 89 ABitReader bits(data, size); in MakeAACCodecSpecificData() local 93 if (bits.getBits(12) != 0xfffu) { in MakeAACCodecSpecificData() 98 bits.skipBits(4); // ID, layer, protection_absent in MakeAACCodecSpecificData() 100 unsigned profile = bits.getBits(2); in MakeAACCodecSpecificData() 105 unsigned sampling_freq_index = bits.getBits(4); in MakeAACCodecSpecificData() 106 bits.getBits(1); // private_bit in MakeAACCodecSpecificData() 107 unsigned channel_configuration = bits.getBits(3); in MakeAACCodecSpecificData()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | HardwareConfig.java | 151 char[] bits = Integer.toBinaryString(ratBits).toCharArray(); in assignModem() local 155 rat = new BitSet(bits.length); in assignModem() 156 for (int i = 0 ; i < bits.length ; i++) { in assignModem() 157 rat.set(i, (bits[i] == '1' ? true : false)); in assignModem()
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 216 BitSet64 bits = in pointerCoordsToNative() local 218 if (!bits.isEmpty()) { in pointerCoordsToNative() 227 uint32_t axis = bits.clearFirstMarkedBit(); in pointerCoordsToNative() 229 } while (!bits.isEmpty()); in pointerCoordsToNative() 280 BitSet64 bits = BitSet64(rawPointerCoords->bits); in pointerCoordsFromNative() local 281 bits.clearBit(AMOTION_EVENT_AXIS_X); in pointerCoordsFromNative() 282 bits.clearBit(AMOTION_EVENT_AXIS_Y); in pointerCoordsFromNative() 283 bits.clearBit(AMOTION_EVENT_AXIS_PRESSURE); in pointerCoordsFromNative() 284 bits.clearBit(AMOTION_EVENT_AXIS_SIZE); in pointerCoordsFromNative() 285 bits.clearBit(AMOTION_EVENT_AXIS_TOUCH_MAJOR); in pointerCoordsFromNative() [all …]
|
/frameworks/av/media/extractors/ogg/ |
D | OggExtractor.cpp | 1110 oggpack_buffer bits; in verifyOpusComments() local 1111 oggpack_readinit(&bits, &ref); in verifyOpusComments() 1118 char chr = oggpack_read(&bits, 8); in verifyOpusComments() 1124 int32_t vendorLen = oggpack_read(&bits, 32); in verifyOpusComments() 1132 oggpack_read(&bits, 8); in verifyOpusComments() 1135 int32_t n = oggpack_read(&bits, 32); in verifyOpusComments() 1137 if (n < 0 || n > ((commentSize - oggpack_bytes(&bits)) >> 2)) { in verifyOpusComments() 1141 int32_t len = oggpack_read(&bits, 32); in verifyOpusComments() 1143 if (len < 0 || len > (commentSize - oggpack_bytes(&bits))) { in verifyOpusComments() 1148 oggpack_read(&bits, 8); in verifyOpusComments() [all …]
|
/frameworks/native/libs/ui/ |
D | Gralloc2.cpp | 47 uint64_t bits = 0; in getValid10UsageBits() local 49 bits = bits | bit; in getValid10UsageBits() 51 return bits; in getValid10UsageBits() 59 uint64_t bits = 0; in getValid11UsageBits() local 61 bits = bits | bit; in getValid11UsageBits() 63 return bits; in getValid11UsageBits()
|