/frameworks/base/core/jni/ |
H A D | android_os_UEventObserver.cpp | 44 static bool isMatch(const char* buffer, size_t length) { argument 52 const char* end = buffer + length + 1; 68 int length = uevent_next_event(buffer, sizeof(buffer) - 1); local 69 if (length <= 0) { 72 buffer[length] = '\0'; 76 if (isMatch(buffer, length)) { 78 jchar message[length]; 79 for (int i = 0; i < length; i++) { 82 return env->NewString(message, length);
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_vertex_frame.cpp | 42 const int length = env->GetArrayLength(ints); local 45 length * sizeof(jint)); 59 const int length = env->GetArrayLength(floats); local 62 length * sizeof(jfloat)); 74 jint length) { 80 length); 70 Java_android_filterfw_core_VertexFrame_setNativeData(JNIEnv* env, jobject thiz, jbyteArray data, jint offset, jint length) argument
|
/frameworks/base/obex/javax/obex/ |
H A D | PrivateInputStream.java | 76 return mData.length - mIndex; 92 while (mData.length == mIndex) { 102 return read(b, 0, b.length); 106 public synchronized int read(byte[] b, int offset, int length) throws IOException { argument 111 if ((offset | length) < 0 || length > b.length - offset) { 116 int currentDataLength = mData.length - mIndex; 117 int remainReadLength = length; 131 currentDataLength = mData.length [all...] |
/frameworks/base/packages/Osu/src/com/android/anqp/eap/ |
H A D | ExpandedEAPMethod.java | 20 public ExpandedEAPMethod(EAP.AuthInfoID authInfoID, int length, ByteBuffer payload) argument 22 if (length != 7) { 23 throw new ProtocolException("Bad length: " + payload.remaining());
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/ |
H A D | Asn1Constructed.java | 10 public Asn1Constructed(int tag, Asn1Class asn1Class, int length, argument 12 super(tag, asn1Class, true, length, payload);
|
H A D | Asn1Integer.java | 13 public Asn1Integer(int tag, Asn1Class asn1Class, int length, ByteBuffer data) { argument 14 super(tag, asn1Class, false, length); 16 if (length <= 8) { 18 for (int n = 0; n < length; n++) { 24 byte[] payload = new byte[length];
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/ |
H A D | OMAParser.java | 66 public void characters(char[] ch, int start, int length) throws SAXException { argument 67 mCurrent.addText(ch, start, length);
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
H A D | GsmSmsAddress.java | 36 * @param length the length in bytes rounded up, e.g. "2 + 41 public GsmSmsAddress(byte[] data, int offset, int length) throws ParseException { argument 42 origBytes = new byte[length]; 43 System.arraycopy(data, offset, origBytes, 0, length); 68 byte lastByte = origBytes[length - 1]; 72 origBytes[length - 1] |= 0xf0; 75 OFFSET_TOA, length - OFFSET_TOA); 78 origBytes[length - 1] = lastByte;
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | TextUtils.java | 27 private static String randomWord(Random random, int length) { argument 29 for (int j = 0; j < length; j++) { 44 for (int i = 0; i < strings.length; i++) { 73 for (int i = 0; i < strings.length; i++) { 81 result += CACHE_HIT_STRINGS[random.nextInt(CACHE_HIT_STRINGS.length)]; 84 int length = PARAGRAPH_MISS_MIN_LENGTH; 85 length += random.nextInt(PARAGRAPH_MISS_MAX_LENGTH - PARAGRAPH_MISS_MIN_LENGTH); 87 result += randomWord(random, length);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 116 int length, Options opts) { 115 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
H A D | Charsets.java | 52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) { argument 53 CharBuffer cb = CharBuffer.allocate(length); 54 cb.put(chars, offset, length); 62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) { argument 63 CharBuffer cb = CharBuffer.allocate(length); 64 cb.put(chars, offset, length); 72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) { argument 73 CharBuffer cb = CharBuffer.allocate(length); 74 cb.put(chars, offset, length); 82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { argument 102 asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) argument 121 isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars) argument [all...] |
H A D | UnsafeByteSequence.java | 50 public void write(byte[] buffer, int offset, int length) { argument 51 if (count + length >= bytes.length) { 52 byte[] newBytes = new byte[(count + length) * 2]; 56 System.arraycopy(buffer, offset, bytes, count, length); 57 count += length; 61 if (count == bytes.length) { 70 if (count == bytes.length) {
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/ |
H A D | XMLParser.java | 105 public void characters(char[] ch, int start, int length) throws SAXException { argument 106 mCurrent.addText(new String(ch, start, length));
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | Exif.java | 35 * @param byteSize Recommended parameter declaring the length of the input stream. If you 62 has(jpeg, byteSize, offset + length - 1) 64 where length is a variable int (around 30KB above) read from the EXIF headers. 74 int length = 0; 106 // Get the length and check if it is reasonable. 107 length = pack(jpeg, offset, 2, false); 108 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { 109 Log.e(TAG, "Invalid length"); 114 if (marker == 0xE1 && length > 187 pack(final InputStreamBuffer bytes, int offset, int length, final boolean littleEndian) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/eap/ |
H A D | InnerAuthEAP.java | 48 * @param length The length of the data 53 public static InnerAuthEAP parse(ByteBuffer payload, int length) throws ProtocolException { argument 54 if (length != EXPECTED_LENGTH_VALUE) { 55 throw new ProtocolException("Invalid length: " + length);
|
H A D | VendorSpecificAuth.java | 45 * @param length The length of the data 49 public static VendorSpecificAuth parse(ByteBuffer payload, int length) { argument 50 byte[] data = new byte[length];
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
H A D | Exif.java | 30 * @param byteSize Recommended parameter declaring the length of the input stream. If you 57 has(jpeg, byteSize, offset + length - 1) 59 where length is a variable int (around 30KB above) read from the EXIF headers. 69 int length = 0; 101 // Get the length and check if it is reasonable. 102 length = pack(jpeg, offset, 2, false); 103 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { 104 Log.e(TAG, "Invalid length"); 109 if (marker == 0xE1 && length > 182 pack(final InputStreamBuffer bytes, int offset, int length, final boolean littleEndian) argument [all...] |
/frameworks/av/include/ndk/ |
H A D | NdkMediaDrm.h | 47 size_t length; member in struct:__anon147 287 * responseSize is the length of the provisioning response in bytes. 408 * Encrypt the data referenced by input of length dataSize using algorithm specified 419 * Decrypt the data referenced by input of length dataSize using algorithm specified
|
/frameworks/av/media/libmedia/ |
H A D | IMediaExtractorService.cpp | 57 virtual sp<IDataSource> makeIDataSource(int fd, int64_t offset, int64_t length) argument 63 data.writeInt64(length); 65 ALOGV("fd:%d offset:%lld length:%lld ret:%d", 66 fd, (long long)offset, (long long)length, ret); 105 const int64_t length = data.readInt64(); local 106 ALOGV("fd %d offset%lld length:%lld", fd, (long long)offset, (long long)length); 107 sp<IDataSource> source = makeIDataSource(fd, offset, length);
|
/frameworks/av/media/libstagefright/ |
H A D | FileSource.cpp | 57 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument 60 mLength(length), 67 ALOGV("fd=%d (%s), offset=%lld, length=%lld", 68 fd, nameForFd(fd).c_str(), (long long) offset, (long long) length); 89 if (mOffset != offset || mLength != length) { 90 ALOGW("offset/length adjusted from %lld/%lld to %lld/%lld", 91 (long long) offset, (long long) length, 234 bool FileSource::requiresDrm(int fd, int64_t offset, int64_t length, const char *mime) { argument 237 drmClient->openDecryptSession(fd, offset, length, mime);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_util.c | 70 length number of bits in the code word 80 u32 h264bsdCountLeadingZeros(u32 value, u32 length) argument 86 u32 mask = 1 << (length - 1); 90 ASSERT(length <= 32);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | MediaBuffer.cpp | 155 void MediaBuffer::set_range(size_t offset, size_t length) { argument 156 if ((mGraphicBuffer == NULL) && (offset + length > mSize)) { 157 ALOGE("offset = %zu, length = %zu, mSize = %zu", offset, length, mSize); 159 CHECK((mGraphicBuffer != NULL) || (offset + length <= mSize)); 162 mRangeLength = length;
|
/frameworks/av/media/mtp/tests/ |
H A D | MtpFfsHandle_test.cpp | 113 mfr.length = size; 133 mfr.length = size; 156 mfr.length = size; 169 EXPECT_EQ(header->length, static_cast<unsigned int>(size + sizeof(mtp_data_header))); 185 mfr.length = size; 198 EXPECT_EQ(header->length, static_cast<unsigned int>(size + sizeof(mtp_data_header))); 225 int length = std::min(size - offset, dis(gen)); local 226 mfr.length = length; 227 char temp_buf[length [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | SerialPort.java | 103 * @param length number of bytes to write 105 public void write(ByteBuffer buffer, int length) throws IOException { argument 107 native_write_direct(buffer, length); 109 native_write_array(buffer.array(), length); 124 private native int native_read_array(byte[] buffer, int length) throws IOException; argument 125 private native int native_read_direct(ByteBuffer buffer, int length) throws IOException; argument 126 private native void native_write_array(byte[] buffer, int length) throws IOException; argument 127 private native void native_write_direct(ByteBuffer buffer, int length) throws IOException; argument
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisCallback.java | 86 * @param length The number of bytes of audio data in {@code buffer}. This must be less than or 91 int audioAvailable(byte[] buffer, int offset, int length); argument
|