Searched refs:bytes (Results 51 - 75 of 159) sorted by relevance

1234567

/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java242 ListEntry(byte[] bytes) { argument
243 mBytes = bytes;
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);
/frameworks/base/wifi/java/android/net/wifi/
H A DScanResult.java304 * storing the raw bytes of full result IEs
306 public byte[] bytes; field in class:ScanResult
313 public byte[] bytes; field in class:ScanResult.InformationElement
320 this.bytes = rhs.bytes.clone();
506 dest.writeInt(informationElements[i].bytes.length);
507 dest.writeByteArray(informationElements[i].bytes);
555 sr.informationElements[i].bytes = new byte[len];
556 in.readByteArray(sr.informationElements[i].bytes);
H A DWifiEnterpriseConfig.java185 byte[] bytes = new byte[len];
186 in.readByteArray(bytes);
189 userKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(bytes));
207 byte[] bytes = new byte[len];
208 in.readByteArray(bytes);
211 .generateCertificate(new ByteArrayInputStream(bytes));
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DExif.java45 Looking at this algorithm, we never look ahead more than 8 bytes. As long as we call
48 Also, the most we ever read backwards is 4 bytes. pack() reads backwards if the encoding
49 is in little endian format. These following two lines potentially reads 4 bytes backwards:
187 private static int pack(final InputStreamBuffer bytes, int offset, int length, argument
197 value = (value << 8) | (bytes.get(offset) & 0xFF);
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DExif.java40 Looking at this algorithm, we never look ahead more than 8 bytes. As long as we call
43 Also, the most we ever read backwards is 4 bytes. pack() reads backwards if the encoding
44 is in little endian format. These following two lines potentially reads 4 bytes backwards:
182 private static int pack(final InputStreamBuffer bytes, int offset, int length, argument
192 value = (value << 8) | (bytes.get(offset) & 0xFF);
/frameworks/av/services/audioflinger/
H A DAudioStreamOut.h64 * Write audio buffer to driver. Returns number of bytes written, or a
71 * bytes that currently fit in the driver/hardware buffer and then return
76 virtual ssize_t write(const void *buffer, size_t bytes);
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp98 jbyte* bytes = (jbyte*)env->GetPrimitiveArrayCritical(ret, 0); local
99 if (bytes) {
100 memcpy(bytes, buffer, length);
101 env->ReleasePrimitiveArrayCritical(ret, bytes, 0);
H A Dandroid_emoji_EmojiFactory.cpp163 const char *bytes = factory->GetImageBinaryFromAndroidPua(pua, &size); local
164 if (bytes == NULL) {
168 return decodeBitmap(env, (void*)bytes, size);
/frameworks/base/telecomm/java/android/telecom/
H A DLog.java151 private static String encodeHex(byte[] bytes) { argument
152 StringBuffer hex = new StringBuffer(bytes.length * 2);
154 for (int i = 0; i < bytes.length; i++) {
155 int byteIntValue = bytes[i] & 0xff;
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DBasicNetwork.java228 PoolingByteArrayOutputStream bytes =
239 bytes.write(buffer, 0, count);
241 return bytes.toByteArray();
252 bytes.close();
/frameworks/base/core/java/android/net/
H A DVpnService.java497 byte[] bytes = address.getAddress();
498 if (offset < bytes.length) {
499 for (bytes[offset] <<= prefixLength % 8; offset < bytes.length; ++offset) {
500 if (bytes[offset] != 0) {
H A DLinkAddress.java105 byte[] bytes = address.getAddress();
106 return ((bytes[0] & (byte)0xfc) == (byte)0xfc);
/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.cpp156 FLAC__byte buffer[], size_t *bytes);
172 FLAC__byte buffer[], size_t *bytes,
212 size_t *bytes, void *client_data)
214 return ((FLACParser *) client_data)->readCallback(buffer, bytes);
268 FLAC__byte buffer[], size_t *bytes)
270 size_t requested = *bytes;
273 *bytes = 0;
276 *bytes = 0;
281 *bytes = actual;
210 read_callback( const FLAC__StreamDecoder * , FLAC__byte buffer[], size_t *bytes, void *client_data) argument
267 readCallback( FLAC__byte buffer[], size_t *bytes) argument
/frameworks/ex/framesequence/jni/
H A DFrameSequence_webp.cpp90 mData.bytes = stream->getRawBufferAddr();
100 mData.bytes = new uint8_t[mData.size];
101 memcpy((void*)mData.bytes, riff_header, RIFF_HEADER_SIZE);
103 // Read rest of the bytes.
104 void* remaining_bytes = (void*)(mData.bytes + RIFF_HEADER_SIZE);
131 delete[] mData.bytes;
230 if (WebPDecode(currFrame.bytes, currFrame.size, &mDecoderConfig) != VP8_STATUS_OK) {
/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)) {
H A DGLFrame.java84 throw new IllegalArgumentException("GL frames must have 4 bytes per sample!");
210 byte[] bytes = buffer.array();
211 if (getFormat().getSize() != bytes.length) {
213 } else if (!setNativeData(bytes, offset, length)) {
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DLearning_StochasticLinearRanker.java114 byte[] bytes = byteStream.toByteArray();
115 return bytes;
/frameworks/av/include/media/stagefright/
H A DAudioSource.h101 uint8_t *data, size_t bytes);
/frameworks/base/include/android_runtime/
H A DAndroidRuntime.h117 static jstring NewStringLatin1(JNIEnv* env, const char* bytes);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_frame.cpp60 jbyte* bytes = env->GetByteArrayElements(data, NULL); local
61 if (bytes) {
62 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset),
65 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
207 ALOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample);
259 ALOGE("Unsupported bytes-per-pixel %d in getBitmap!", bytes_per_sample);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DModelInterpreter.java395 pdu.append ("00"); //SMSC address - 0 bytes
608 byte[] bytes = s.getBytes("US-ASCII");
612 mOut.write(bytes);
625 byte[] bytes = s.getBytes("US-ASCII");
629 mOut.write(bytes);
/frameworks/base/core/java/android/content/pm/
H A DSignature.java161 byte[] bytes = new byte[mSignature.length];
162 System.arraycopy(mSignature, 0, bytes, 0, mSignature.length);
163 return bytes;
265 * surface area, we only allow a byte size delta of a few bytes.

Completed in 2456 milliseconds

1234567