Searched refs:bytes (Results 76 - 100 of 191) sorted by relevance

12345678

/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/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.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/base/wifi/java/android/net/wifi/
H A DWifiEnterpriseConfig.java236 byte[] bytes = new byte[len];
237 in.readByteArray(bytes);
240 userKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(bytes));
270 byte[] bytes = new byte[len];
271 in.readByteArray(bytes);
274 .generateCertificate(new ByteArrayInputStream(bytes));
552 byte[] bytes = alias.getBytes(StandardCharsets.UTF_8);
553 StringBuilder sb = new StringBuilder(bytes.length * 2);
554 for (byte o : bytes) {
/frameworks/base/packages/MtpDocumentsProvider/jni/
H A Dcom_android_mtp_AppFuse.cpp38 // Maximum number of bytes to write/read in one request/one reply.
380 ScopedByteArrayRO bytes(env_, array.get());
381 if (bytes.get() == nullptr) {
384 memcpy(buf, bytes.get(), read_size);
396 ScopedByteArrayRW bytes(env_, array.get());
397 if (bytes.get() == nullptr) {
400 memcpy(bytes.get(), buffer, size);
464 ALOGE("Failed to read bytes from FD: errno=%d\n", errno);
/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/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)) {
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/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
H A DStubMethodAdapterTest.java118 private MyClassLoader(String name, byte[] bytes) { argument
120 mBytes = bytes;
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DLearning_StochasticLinearRanker.java114 byte[] bytes = byteStream.toByteArray();
115 return bytes;
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DImageCompare.java40 int bytes = bitmap.getByteCount();
41 ByteBuffer buffer = ByteBuffer.allocate(bytes);
/frameworks/av/include/media/stagefright/
H A DAudioSource.h103 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/base/telecomm/java/android/telecom/
H A DLog.java205 private static String encodeHex(byte[] bytes) { argument
206 StringBuffer hex = new StringBuffer(bytes.length * 2);
208 for (int i = 0; i < bytes.length; i++) {
209 int byteIntValue = bytes[i] & 0xff;
/frameworks/base/tools/aapt2/
H A DFormat.proto24 optional bytes data = 1;
29 optional bytes data = 1;
/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.
/frameworks/base/core/java/android/util/
H A DEventLog.java173 byte[] bytes = mBuffer.array();
174 return Arrays.copyOf(bytes, bytes.length);
184 * @return The number of bytes written
192 * @return The number of bytes written
200 * @return The number of bytes written
208 * @return The number of bytes written
216 * @return The number of bytes written

Completed in 2335 milliseconds

12345678