Searched refs:bytes (Results 101 - 125 of 268) sorted by relevance

1234567891011

/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java56 * A "short utterance" is one that uses less bytes than the audio
191 private static int writeToAudioTrack(AudioTrack audioTrack, byte[] bytes) { argument
198 while (count < bytes.length) {
201 int written = audioTrack.write(bytes, count, bytes.length);
H A DSynthesisPlaybackQueueItem.java302 ListEntry(byte[] bytes) { argument
303 mBytes = bytes;
/frameworks/base/tools/streaming_proto/test/
H A Dtest.proto112 optional bytes bytes_field = 150;
113 repeated bytes bytes_field_repeated = 151;
/frameworks/base/wifi/java/android/net/wifi/aware/
H A DTlvBufferUtils.java73 * @param typeSize Number of bytes used for the Type (T) field. Values
74 * of 0, 1, or 2 bytes are allowed. A specification of 0
75 * bytes implies that the field being constructed has the LV
77 * @param lengthSize Number of bytes used for the Length (L) field.
78 * Values of 1 or 2 bytes are allowed.
165 * @param length Copy the specified number (length) of bytes from the
254 * @param data The string whose bytes are to be inserted into the
260 byte[] bytes = null;
263 bytes = data.getBytes();
264 length = bytes
[all...]
H A DWifiAwareAgentNetworkSpecifier.java168 byte[] bytes = parcel.marshall();
171 mDigester.update(bytes);
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DMusicPlayerFragment.java247 byte[] bytes = new byte[inputStream.available()];
248 inputStream.read(bytes, 0, bytes.length);
249 String json = new String(bytes);
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DMusicPlayerFragment.java247 byte[] bytes = new byte[inputStream.available()];
248 inputStream.read(bytes, 0, bytes.length);
249 String json = new String(bytes);
/frameworks/base/core/java/android/net/
H A DVpnService.java534 byte[] bytes = address.getAddress();
535 if (offset < bytes.length) {
536 for (bytes[offset] <<= prefixLength % 8; offset < bytes.length; ++offset) {
537 if (bytes[offset] != 0) {
H A DLinkAddress.java105 byte[] bytes = address.getAddress();
106 return ((bytes[0] & (byte)0xfe) == (byte)0xfc);
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/
H A DBTtraffic.java303 byte[] bytes = new byte[pkgsize];
304 random.nextBytes(bytes);
306 writeBytes(outputStream, bytes.length);
307 outputStream.write(bytes, 0, bytes.length);
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp62 static bool isValidUtf8(const char* bytes) { argument
63 while (*bytes != '\0') {
64 unsigned char utf8 = *(bytes++);
75 // Bit pattern 0xxx. No need for any extra bytes.
83 * Bit pattern 10xx or 1111, which are illegal start bytes.
89 // Bit pattern 1110, so there are two additional bytes.
90 utf8 = *(bytes++);
98 utf8 = *(bytes++);
/frameworks/av/media/libstagefright/
H A DFLACExtractor.cpp160 FLAC__byte buffer[], size_t *bytes);
176 FLAC__byte buffer[], size_t *bytes,
216 size_t *bytes, void *client_data)
218 return ((FLACParser *) client_data)->readCallback(buffer, bytes);
272 FLAC__byte buffer[], size_t *bytes)
274 size_t requested = *bytes;
277 *bytes = 0;
280 *bytes = 0;
285 *bytes = actual;
214 read_callback( const FLAC__StreamDecoder * , FLAC__byte buffer[], size_t *bytes, void *client_data) argument
271 readCallback( FLAC__byte buffer[], size_t *bytes) argument
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
H A DIccUtils.java191 * shall be left justified. Unused bytes shall be set to 'FF'; or
349 * @param bytes an array of bytes
351 * @return hex string representation of bytes array
354 bytesToHexString(byte[] bytes) { argument
355 if (bytes == null) return null;
357 StringBuilder ret = new StringBuilder(2*bytes.length);
359 for (int i = 0 ; i < bytes.length ; i++) {
362 b = 0x0f & (bytes[i] >> 4);
366 b = 0x0f & bytes[
[all...]
/frameworks/ex/framesequence/jni/
H A DFrameSequence_webp.cpp93 mData.bytes = stream->getRawBufferAddr();
112 mData.bytes = new uint8_t[mData.size];
113 memcpy((void*)mData.bytes, riff_header, RIFF_HEADER_SIZE);
115 // Read rest of the bytes.
116 void* remaining_bytes = (void*)(mData.bytes + RIFF_HEADER_SIZE);
143 delete[] mData.bytes;
242 if (WebPDecode(currFrame.bytes, currFrame.size, &mDecoderConfig) != VP8_STATUS_OK) {
/frameworks/minikin/libs/minikin/
H A DHyphenator.cpp93 const uint8_t* bytes() const { return reinterpret_cast<const uint8_t*>(this); } function in struct:minikin::Header
95 return *reinterpret_cast<const uint32_t*>(bytes() + alphabet_offset);
98 return reinterpret_cast<const AlphabetTable0*>(bytes() + alphabet_offset);
101 return reinterpret_cast<const AlphabetTable1*>(bytes() + alphabet_offset);
104 return reinterpret_cast<const Trie*>(bytes() + trie_offset);
107 return reinterpret_cast<const Pattern*>(bytes() + pattern_offset);
/frameworks/av/include/media/audiohal/
H A DStreamHalInterface.h34 // Return size of input/output buffer in bytes for this stream - eg. 4800.
53 // Return the frame size (number of bytes per sample) of a stream.
110 virtual status_t write(const void *buffer, size_t bytes, size_t *written) = 0;
155 virtual status_t read(void *buffer, size_t bytes, size_t *read) = 0;
/frameworks/av/media/libaudiohal/
H A DStreamHalLocal.h33 // Return size of input/output buffer in bytes for this stream - eg. 4800.
96 // Return the frame size (number of bytes per sample) of a stream.
106 virtual status_t write(const void *buffer, size_t bytes, size_t *written);
168 // Return the frame size (number of bytes per sample) of a stream.
175 virtual status_t read(void *buffer, size_t bytes, size_t *read);
/frameworks/av/media/libaudiohal/include/media/audiohal/
H A DStreamHalInterface.h34 // Return size of input/output buffer in bytes for this stream - eg. 4800.
53 // Return the frame size (number of bytes per sample) of a stream.
110 virtual status_t write(const void *buffer, size_t bytes, size_t *written) = 0;
155 virtual status_t read(void *buffer, size_t bytes, size_t *read) = 0;
/frameworks/base/core/java/android/hardware/location/
H A DContextHubInfo.java50 * returns the maximum number of bytes that can be sent per message to the hub
52 * @return int - maximum bytes that can be transmitted in a
62 * @param bytes - Maximum number of bytes per message
66 public void setMaxPacketLenBytes(int bytes) { argument
67 mMaxPacketLengthBytes = bytes;
/frameworks/base/libs/hwui/protos/
H A Dhwui.proto77 optional bytes path = 6;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFrame.java111 public void setData(byte[] bytes, int offset, int length) { argument
112 setData(ByteBuffer.wrap(bytes, offset, length));
H A DNativeFrame.java147 byte[] bytes = buffer.array();
150 (length + offset) + " bytes given, but only " + buffer.limit() +
151 " bytes available!");
154 "Frame size is " + getFormat().getSize() + " bytes, but " +
155 length + " bytes given!");
156 } else if (!setNativeData(bytes, offset, length)) {
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserManagerServiceUserInfoTest.java80 byte[] bytes = baos.toByteArray();
83 data.info.id, new ByteArrayInputStream(bytes));
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/
H A DStubMethodAdapterTest.java118 private MyClassLoader(String name, byte[] bytes) { argument
120 mBytes = bytes;
/frameworks/av/include/media/stagefright/
H A DAudioSource.h108 uint8_t *data, size_t bytes);

Completed in 789 milliseconds

1234567891011