Searched defs:bits (Results 1 - 25 of 54) sorted by relevance

123

/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dbits2prm.cpp83 no_of_bits = number of bits associated with value
84 bitstream = pointer to buffer where bits are read
102 Purpose : Read "no_of_bits" bits from the array bitstream[]
119 Word16 no_of_bits, // input : number of bits associated with value
120 Word16 *bitstream // output: address where bits are written
163 Word16 no_of_bits, /* input : number of bits associated with value */
164 Word16 *bitstream /* input: address where bits are read from */
190 bits[] = pointer to serial bits of type Word16
210 the received serial bits i
269 Bits2prm( enum Mode mode, Word16 bits[], Word16 prm[] ) argument
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_crc.cpp45 int32 neededBits, number of bits to read from the bit stream
124 int32 neededBits, /* number of bits to read from the bit stream */
128 uint32 bits = getNbits(inputStream, neededBits); local
132 calculate_crc(bits, neededBits, crc);
134 return(bits);
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseInputStream.java32 // The current position offset, in bits, from the msb in byte 0.
71 * @param bits the amount of data to read (gte 0, lte 8)
74 public int read(int bits) throws AccessException { argument
76 int offset = 16 - (mPos & 0x07) - bits; // &7==%8
77 if ((bits < 0) || (bits > 8) || ((mPos + bits) > mEnd)) {
79 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")");
84 data &= (-1 >>> (32 - bits));
95 readByteArray(int bits) argument
110 skip(int bits) argument
[all...]
H A DBitwiseOutputStream.java32 // The current position offset, in bits, from the msb in byte 0.
73 * @param bits additional bits to be accommodated
75 private void possExpand(int bits) { argument
76 if ((mPos + bits) < mEnd) return;
77 byte[] newBuf = new byte[(mPos + bits) >>> 2];
89 * @param bits the amount of data to write (gte 0, lte 8)
90 * @param data to write, will be masked to expose only bits param from lsb
92 public void write(int bits, int data) throws AccessException { argument
93 if ((bits <
112 writeByteArray(int bits, byte[] arr) argument
126 skip(int bits) argument
[all...]
H A DBitUtils.java79 public static long packBits(int[] bits) { argument
81 for (int b : bits) {
H A DCallbackRegistry.java59 * array of bits are allocated for the callbacks.
129 * This part captures the callbacks beyond Long.SIZE that have no bits allocated for
159 * Notify callbacks that have mRemainderRemoved bits set for remainderIndex. If
174 final long bits = mRemainderRemoved[remainderIndex];
178 notifyCallbacksLocked(sender, arg, arg2, startIndex, endIndex, bits);
183 * Notify callbacks from startIndex to endIndex, using bits as the bit status
184 * for whether they have been removed or not. bits should be from mRemainderRemoved or
185 * mFirst64Removed. bits set to 0 indicates that all callbacks from startIndex to
196 * @param bits A bit field indicating which callbacks have been removed and shouldn't
200 final int endIndex, final long bits) {
199 notifyCallbacksLocked(T sender, int arg, A arg2, final int startIndex, final int endIndex, final long bits) argument
[all...]
/frameworks/native/libs/math/include/math/
H A Dhalf.h59 uint16_t bits; member in struct:android::half::fp16
60 explicit constexpr fp16() noexcept : bits(0) { }
61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { }
62 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); }
63 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); }
64 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); }
65 constexpr unsigned int getS() const noexcept { return bits >> 1
71 uint32_t bits; member in union:android::fp32::__anon1645
[all...]
/frameworks/rs/
H A Dspec.h16 int bits; member in struct:__anon2068
H A DrsElement.cpp200 size_t bits = 0; local
203 mFields[ct].offsetBits = bits;
205 bits += mFields[ct].e->getSizeBits() * mFields[ct].arraySize;
225 mBits = bits;
/frameworks/native/libs/nativewindow/include/android/
H A Dnative_window.h47 /** Red: 8 bits, Green: 8 bits, Blue: 8 bits, Alpha: 8 bits. **/
49 /** Red: 8 bits, Green: 8 bits, Blue: 8 bits, Unused: 8 bits. **/
51 /** Red: 5 bits, Green: 6 bits, Blu
102 void* bits; member in struct:ANativeWindow_Buffer
[all...]
/frameworks/av/cmds/stagefright/
H A Djpeg.cpp25 static inline uint8_t from565to8(uint16_t p, int start, int bits) { argument
26 uint8_t c = (p >> start) & ((1 << bits) - 1);
27 return (c << (8 - bits)) | (c >> (bits - (8 - bits)));
/frameworks/base/core/java/android/privacy/internal/longitudinalreporting/
H A DLongitudinalReportingEncoder.java143 public byte[] encodeBits(byte[] bits) { argument
/frameworks/base/core/java/android/privacy/internal/rappor/
H A DRapporEncoder.java126 public byte[] encodeBits(byte[] bits) { argument
127 return mEncoder.encodeBits(bits);
/frameworks/base/tools/bit/
H A Dadb.cpp87 uint32_t bits = 0; local
98 result |= uint64_t(byte & 0x7F) << bits;
102 bits += 7;
103 if (bits > 64) {
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
H A DCallbackRegistry.java61 * array of bits are allocated for the callbacks.
127 * This part captures the callbacks beyond Long.SIZE that have no bits allocated for
156 * Notify callbacks that have mRemainderRemoved bits set for remainderIndex. If
171 final long bits = mRemainderRemoved[remainderIndex];
175 notifyCallbacks(sender, arg, arg2, startIndex, endIndex, bits);
180 * Notify callbacks from startIndex to endIndex, using bits as the bit status
181 * for whether they have been removed or not. bits should be from mRemainderRemoved or
182 * mFirst64Removed. bits set to 0 indicates that all callbacks from startIndex to
193 * @param bits A bit field indicating which callbacks have been removed and shouldn't
197 final int endIndex, final long bits) {
196 notifyCallbacks(T sender, int arg, A arg2, final int startIndex, final int endIndex, final long bits) argument
[all...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
H A DFlagSet.java53 public FlagSet(int... bits) { argument
55 for (int i = 0 ; i < bits.length; i ++) {
56 max = Math.max(i, bits[i]);
59 for (int x = 0 ; x < bits.length; x ++) {
60 final int i = bits[x];
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp298 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) {
309 oggpack_readinit(bits, ref);
379 oggpack_buffer bits; local
381 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits);
388 int ret = _vorbis_unpack_info(mVi, &bits);
395 int ret = _vorbis_unpack_books(mVi, &bits);
296 makeBitReader( const void *data, size_t size, ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) argument
/frameworks/base/core/jni/android/graphics/
H A DGraphicBuffer.cpp185 void* bits = NULL; local
186 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits);
189 if (!bits) {
204 bitmap.setPixels(bits);
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
H A DIccUtils.java241 * 8 bit number which defines bits 15 to 8 of a 16 bit
242 * base pointer, where bit 16 is set to zero and bits 7 to 1
243 * are also set to zero. These sixteen bits constitute a
247 * If bit 8 of the octet is set to zero, the remaining 7 bits
250 * remaining seven bits are an offset value added to the
483 // reassign data and index for every byte (8 bits).
518 int bits = data[valueIndex++] & 0xFF;
529 if (0 == (8 % bits)) {
531 (width * height), colorIndexArray, bits);
534 (width * height), colorIndexArray, bits);
541 mapTo2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument
579 mapToNon2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument
[all...]
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp56 uint32_t* bits = buf->pixels + y * buf->s; local
58 bits[x] = pixel;
62 bits[x+W] = pixel;
78 uint32_t* bits = buf->pixels + y * buf->s + x; local
79 android_memset32(bits, pixel, W*4);
97 uint32_t* bits = buf->pixels + y * buf->s + x; local
99 android_memset32(bits, pixel, W*4);
100 bits += buf->s;
227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); local
232 framebuffer.addr = bits;
[all...]
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64RelocationHelpers.h21 unsigned bits) {
22 if (bits >= sizeof(int64_t) * 8)
25 int64_t max = (1 << (bits - 1)) - 1;
26 int64_t min = -(1 << (bits - 1));
20 helper_check_signed_overflow(Relocator::DWord pValue, unsigned bits) argument
/frameworks/native/services/vr/bufferhubd/
H A Dproducer_channel.cpp32 static inline uint64_t FindNextClearedBit(uint64_t bits) { argument
33 return ~bits - (~bits & (~bits - 1));
/frameworks/av/media/libstagefright/colorconversion/
H A DColorConverter.cpp89 void *bits,
94 : mBits(bits),
88 BitmapParams( void *bits, size_t width, size_t height, size_t cropLeft, size_t cropTop, size_t cropRight, size_t cropBottom, OMX_COLOR_FORMATTYPE colorFromat) argument
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4AudioAssembler.cpp99 ABitReader *bits, unsigned *audioObjectType) {
100 *audioObjectType = bits->getBits(5);
102 *audioObjectType = 32 + bits->getBits(6);
109 ABitReader *bits,
111 unsigned frameLengthFlag __unused = bits->getBits(1);
112 unsigned dependsOnCoreCoder = bits->getBits(1);
114 /* unsigned coreCoderDelay = */bits->getBits(1);
116 unsigned extensionFlag = bits->getBits(1);
124 /* unsigned layerNr = */bits->getBits(3);
129 /* unsigned numOfSubFrame = */bits
98 parseAudioObjectType( ABitReader *bits, unsigned *audioObjectType) argument
108 parseGASpecificConfig( ABitReader *bits, unsigned audioObjectType, unsigned channelConfiguration) argument
145 parseAudioSpecificConfig(ABitReader *bits, sp<ABuffer> *asc) argument
255 parseStreamMuxConfig( ABitReader *bits, unsigned *numSubFrames, unsigned *frameLengthType, ssize_t *fixedFrameLength, bool *otherDataPresent, unsigned *otherDataLenBits) argument
[all...]
/frameworks/base/core/java/android/util/
H A DHalf.java36 * <li>Exponent width: 5 bits</li>
37 * <li>Significand: 10 bits</li>
97 * The number of bits used to represent a half-precision float value.
439 * @return The bits that represent the half-precision float value
456 * @return The bits that represent the half-precision float value
472 * most significant bits of the returned value are set to 0.</p>
475 * @return The bits that represent the half-precision float value
490 * most significant bits of the argument are ignored.</p>
492 * @param bits An integer
495 public static @HalfFloat short intBitsToHalf(int bits) { argument
[all...]

Completed in 579 milliseconds

123