/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/base/core/java/android/util/ |
D | Half.java | 494 public static @HalfFloat short intBitsToHalf(int bits) { in intBitsToHalf() argument 495 return (short) (bits & 0xffff); in intBitsToHalf() 546 int bits = h & 0xffff; in round() local 547 int e = bits & 0x7fff; in round() 548 int result = bits; in round() 580 int bits = h & 0xffff; in ceil() local 581 int e = bits & 0x7fff; in ceil() 582 int result = bits; in ceil() 586 result |= 0x3c00 & -(~(bits >> 15) & (e != 0 ? 1 : 0)); in ceil() 590 result += mask & ((bits >> 15) - 1); in ceil() [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/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/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/base/tests/touchlag/ |
D | touchlag.cpp | 56 uint32_t* bits = buf->pixels + y * buf->s; in drawTwoPixels() local 58 bits[x] = pixel; in drawTwoPixels() 62 bits[x+W] = pixel; in drawTwoPixels() 78 uint32_t* bits = buf->pixels + y * buf->s + x; in drawHLine() local 79 android_memset32(bits, pixel, W*4); in drawHLine() 97 uint32_t* bits = buf->pixels + y * buf->s + x; in drawRect() local 99 android_memset32(bits, pixel, W*4); in drawRect() 100 bits += buf->s; in drawRect() 227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() local 232 framebuffer.addr = bits; in main()
|
/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/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/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/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 544 int bits = data[valueIndex++] & 0xFF; in parseToRGB() local 555 if (0 == (8 % bits)) { in parseToRGB() 557 (width * height), colorIndexArray, bits); in parseToRGB() 560 (width * height), colorIndexArray, bits); in parseToRGB() 568 int length, int[] colorArray, int bits) { in mapTo2OrderBitColor() argument 569 if (0 != (8 % bits)) { in mapTo2OrderBitColor() 572 bits); in mapTo2OrderBitColor() 576 switch (bits) { in mapTo2OrderBitColor() 593 int run = 8 / bits; in mapTo2OrderBitColor() 598 resultArray[resultIndex++] = colorArray[(tempByte >> (offset * bits)) in mapTo2OrderBitColor() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | HardwareConfig.java | 153 char[] bits = Integer.toBinaryString(ratBits).toCharArray(); in assignModem() local 157 rat = new BitSet(bits.length); in assignModem() 158 for (int i = 0 ; i < bits.length ; i++) { in assignModem() 159 rat.set(i, (bits[i] == '1' ? true : false)); in assignModem()
|
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/proto/ |
D | tuningfork_clearcut_log.proto | 12 // The upper order 16 bits represent the major version and 13 // the lower order 16 bits the minor version. A value of 0 52 // Tuning fork version (upper 16 bits: major, lower 16 bits minor)
|
/frameworks/opt/gamesdk/src/tuningfork/proto/ |
D | tuningfork_clearcut_log.proto | 12 // The upper order 16 bits represent the major version and 13 // the lower order 16 bits the minor version. A value of 0 52 // Tuning fork version (upper 16 bits: major, lower 16 bits minor)
|
/frameworks/opt/gamesdk/samples/tuningfork/prototest/proto/ |
D | tuningfork_clearcut_log.proto | 12 // The upper order 16 bits represent the major version and 13 // the lower order 16 bits the minor version. A value of 0 52 // Tuning fork version (upper 16 bits: major, lower 16 bits minor)
|
/frameworks/opt/gamesdk/test/tuningfork/proto/ |
D | tuningfork_clearcut_log.proto | 12 // The upper order 16 bits represent the major version and 13 // the lower order 16 bits the minor version. A value of 0 52 // Tuning fork version (upper 16 bits: major, lower 16 bits minor)
|
/frameworks/av/media/libstagefright/ |
D | MetaDataUtils.cpp | 90 ABitReader bits(data, size); in MakeAACCodecSpecificData() local 94 if (bits.getBits(12) != 0xfffu) { in MakeAACCodecSpecificData() 99 bits.skipBits(4); // ID, layer, protection_absent in MakeAACCodecSpecificData() 101 unsigned profile = bits.getBits(2); in MakeAACCodecSpecificData() 106 unsigned sampling_freq_index = bits.getBits(4); in MakeAACCodecSpecificData() 107 bits.getBits(1); // private_bit in MakeAACCodecSpecificData() 108 unsigned channel_configuration = bits.getBits(3); in MakeAACCodecSpecificData()
|
/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 …]
|