/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | BasicNetwork.java | 228 PoolingByteArrayOutputStream bytes = 239 bytes.write(buffer, 0, count); 241 return bytes.toByteArray(); 252 bytes.close();
|
/frameworks/base/core/java/android/net/ |
H A D | VpnService.java | 497 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 D | LinkAddress.java | 105 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 D | BTtraffic.java | 303 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 D | android_media_MediaScanner.cpp | 62 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 D | FLACExtractor.cpp | 156 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 D | WifiEnterpriseConfig.java | 236 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 D | com_android_mtp_AppFuse.cpp | 38 // 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 D | FrameSequence_webp.cpp | 90 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 D | ContextHubInfo.java | 50 * 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 D | hwui.proto | 77 optional bytes path = 6;
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Frame.java | 111 public void setData(byte[] bytes, int offset, int length) { argument 112 setData(ByteBuffer.wrap(bytes, offset, length));
|
H A D | NativeFrame.java | 147 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 D | GLFrame.java | 84 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 D | StubMethodAdapterTest.java | 118 private MyClassLoader(String name, byte[] bytes) { argument 120 mBytes = bytes;
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | Learning_StochasticLinearRanker.java | 114 byte[] bytes = byteStream.toByteArray(); 115 return bytes;
|
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/ |
H A D | ImageCompare.java | 40 int bytes = bitmap.getByteCount(); 41 ByteBuffer buffer = ByteBuffer.allocate(bytes);
|
/frameworks/av/include/media/stagefright/ |
H A D | AudioSource.h | 103 uint8_t *data, size_t bytes);
|
/frameworks/base/include/android_runtime/ |
H A D | AndroidRuntime.h | 117 static jstring NewStringLatin1(JNIEnv* env, const char* bytes);
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_frame.cpp | 60 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 D | Log.java | 205 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 D | Format.proto | 24 optional bytes data = 1; 29 optional bytes data = 1;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | ModelInterpreter.java | 395 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 D | Signature.java | 161 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 D | EventLog.java | 173 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
|