/frameworks/av/drm/common/ |
H A D | DrmConstraints.cpp | 33 int length = strlen(value); local 34 char* charValue = new char[length + 1]; 36 strncpy(charValue, value, length); 37 charValue[length] = '\0';
|
H A D | DrmMetadata.cpp | 28 int length = strlen(value); local 29 char* charValue = new char[length + 1]; 31 memcpy(charValue, value, length); 32 charValue[length] = '\0';
|
/frameworks/av/media/libeffects/loudness/common/core/ |
H A D | basic_types.h | 56 int length; member in struct:le_fx::FloatArray 61 length = 0; 66 int length; member in struct:le_fx::Int16Array 71 length = 0; 76 int length; member in struct:le_fx::Int32Array 81 length = 0; 86 int length; member in struct:le_fx::Int8Array 91 length = 0;
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MidiMetadataRetriever.cpp | 54 status_t MidiMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument 56 ALOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length); 62 return mMidiPlayer->setDataSource(fd, offset, length);;
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | UDPPusher.cpp | 72 uint32_t length; local 73 if (fread(&length, 1, sizeof(length), mFile) < sizeof(length)) { 78 length = fromlel(length); 80 CHECK_GT(length, 0u); 82 sp<ABuffer> buffer = new ABuffer(length); 83 if (fread(buffer->data(), 1, length, mFile) < length) { [all...] |
/frameworks/base/core/java/android/bluetooth/le/ |
H A D | ResultStorageDescriptor.java | 51 * @param length Byte length of the data 53 public ResultStorageDescriptor(int type, int offset, int length) { argument 56 mLength = length;
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisCallback.java | 66 * @param length The number of bytes of audio data in {@code buffer}. This must be 71 public int audioAvailable(byte[] buffer, int offset, int length); argument
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | CharSequences.java | 36 public int length() { 37 return bytes.length; 59 * is greater than length(), or if start is greater than end 63 validate(start, end, bytes.length); 69 public int length() { 76 validate(newStart, newEnd, length()); 81 return new String(bytes, start, length()); 86 static void validate(int start, int end, int length) { argument 89 if (end > length) throw new IndexOutOfBoundsException(); 97 if (a.length() ! [all...] |
H A D | HexDump.java | 25 return dumpHexString(array, 0, array.length); 28 public static String dumpHexString(byte[] array, int offset, int length) argument 38 for (int i = offset ; i < offset + length ; i++) 101 return toHexString(array, 0, array.length); 104 public static String toHexString(byte[] array, int offset, int length) argument 106 char[] buf = new char[length * 2]; 109 for (int i = offset ; i < offset + length; i++) 154 int length = hexString.length(); 155 byte[] buffer = new byte[length / [all...] |
/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 | 41 const int length = env->GetArrayLength(ints); local 44 length * sizeof(jint)); 58 const int length = env->GetArrayLength(floats); local 61 length * sizeof(jfloat)); 73 jint length) { 79 length); 69 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/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 115 int length, Options opts) { 114 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/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/voip/src/jni/rtp/ |
H A D | GsmCodec.cpp | 47 int decode(int16_t *samples, int count, void *payload, int length); 60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) argument 64 while (n + 160 <= count && length >= 33 && 67 length -= 33;
|
/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/opt/telephony/src/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/support/v4/donut/android/support/v4/app/ |
H A D | RemoteInputCompatBase.java | 33 public RemoteInput[] newArray(int length); argument
|
/frameworks/av/include/ndk/ |
H A D | NdkMediaDrm.h | 44 size_t length; member in struct:__anon79 285 * responseSize is the length of the provisioning response in bytes. 406 * Encrypt the data referenced by input of length dataSize using algorithm specified 417 * Decrypt the data referenced by input of length dataSize using algorithm specified
|
/frameworks/av/media/libstagefright/ |
H A D | FileSource.cpp | 46 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument 49 mLength(length), 56 CHECK(length >= 0);
|
H A D | MediaBuffer.cpp | 135 void MediaBuffer::set_range(size_t offset, size_t length) { argument 136 if ((mGraphicBuffer == NULL) && (offset + length > mSize)) { 137 ALOGE("offset = %zu, length = %zu, mSize = %zu", offset, length, mSize); 139 CHECK((mGraphicBuffer != NULL) || (offset + length <= mSize)); 142 mRangeLength = length;
|
/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/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
|