/frameworks/av/media/mtp/ |
H A D | MtpProperty.cpp | 518 MtpPropertyValue* MtpProperty::readArrayValues(MtpDataPacket& packet, int& length) { argument 519 length = packet.getUInt32(); 520 if (length == 0) 522 MtpPropertyValue* result = new MtpPropertyValue[length]; 523 for (int i = 0; i < length; i++) 528 void MtpProperty::writeArrayValues(MtpDataPacket& packet, MtpPropertyValue* values, int length) { argument 529 packet.putUInt32(length); 530 for (int i = 0; i < length; i++)
|
/frameworks/base/core/java/android/content/ |
H A D | DefaultDataHandler.java | 167 if (key != null && key.length() > 0 && value != null && value.length() > 0) { 213 public void characters(char[] ch, int start, int length) argument 229 public void ignorableWhitespace(char[] ch, int start, int length) argument
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureStroke.java | 38 public final float length; field in class:GestureStroke 82 length = len; 90 length = len; 97 return new GestureStroke(boundingBox, length, points, timestamps); 123 final int count = localPoints.length; 177 final int count = pts.length; 204 final int count = points.length;
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbRequest.java | 132 * @param length number of bytes to read or write 135 public boolean queue(ByteBuffer buffer, int length) { argument 139 result = native_queue_direct(buffer, length, out); 141 result = native_queue_array(buffer.array(), length, out); 148 mLength = length; 180 private native boolean native_queue_array(byte[] buffer, int length, boolean out); argument 181 private native int native_dequeue_array(byte[] buffer, int length, boolean out); argument 182 private native boolean native_queue_direct(ByteBuffer buffer, int length, boolean out); argument
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | FileSynthesisCallback.java | 161 public int audioAvailable(byte[] buffer, int offset, int length) { argument 164 + "," + length + ")"); 176 mFile.write(buffer, offset, length); 207 int dataLength = (int) (mFile.length() - WAV_HEADER_LENGTH);
|
H A D | PlaybackSynthesisCallback.java | 166 public int audioAvailable(byte[] buffer, int offset, int length) { argument 168 Log.d(TAG, "audioAvailable(byte[" + buffer.length + "]," 169 + offset + "," + length + ")"); 171 if (length > getMaxBufferSize() || length <= 0) { 172 throw new IllegalArgumentException("buffer is too large or of zero length (" + 173 + length + " bytes)"); 185 final byte[] bufferCopy = new byte[length]; 186 System.arraycopy(buffer, offset, bufferCopy, 0, length);
|
/frameworks/base/core/java/android/text/ |
H A D | AlteredCharSequence.java | 96 public int length() { method in class:AlteredCharSequence 97 return mSource.length(); 116 int len = length();
|
/frameworks/base/core/java/android/text/method/ |
H A D | ReplacementTransformationMethod.java | 65 int n = original.length; 119 public int length() { method in class:ReplacementTransformationMethod.ReplacementCharSequence 120 return mSource.length(); 126 int n = mOriginal.length; 144 char[] c = new char[length()]; 146 getChars(0, length(), c, 0); 153 int n = mOriginal.length;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ArrayUtils.java | 78 * @param length the number of bytes to check 81 public static boolean equals(byte[] array1, byte[] array2, int length) { argument 85 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { 88 for (int i = 0; i < length; i++) { 165 end = array.length; 189 final int length = array.length; [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | GraphicsJNI.h | 179 int length() const { return fLen; } function in class:AutoJavaFloatArray 195 int length() const { return fLen; } function in class:AutoJavaIntArray 211 int length() const { return fLen; } function in class:AutoJavaShortArray 227 int length() const { return fLen; } function in class:AutoJavaByteArray
|
H A D | Movie.cpp | 100 int offset, int length) { 105 if ((offset | length) < 0 || offset + length > totalLength) { 111 SkMovie* moov = SkMovie::DecodeMemory(ar.ptr() + offset, length); 98 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, int offset, int length) argument
|
H A D | PathEffect.cpp | 31 int count = autoInterval.length() & ~1; // even number 54 float length, float deviation) { 55 return new SkDiscretePathEffect(SkFloatToScalar(length), 53 Discrete_constructor(JNIEnv* env, jobject, float length, float deviation) argument
|
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbDeviceConnection.cpp | 93 int length = read(fd, buffer, sizeof(buffer)); local 94 if (length < 0) return NULL; 96 jbyteArray ret = env->NewByteArray(length); 100 memcpy(bytes, buffer, length); 145 jbyteArray buffer, jint length, jint timeout) 155 if (env->GetArrayLength(buffer) < length) { 163 value, index, bufferBytes, length, timeout); 173 jint endpoint, jbyteArray buffer, jint length, jint timeout) 183 if (env->GetArrayLength(buffer) < length) { 190 jint result = usb_device_bulk_transfer(device, endpoint, bufferBytes, length, timeou 143 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint length, jint timeout) argument 172 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint length, jint timeout) argument [all...] |
H A D | android_os_MemoryFile.cpp | 29 static jobject android_os_MemoryFile_open(JNIEnv* env, jobject clazz, jstring name, jint length) argument 33 int result = ashmem_create_region(namestr, length); 47 jint length, jint prot) 50 jint result = (jint)mmap(NULL, length, prot, MAP_SHARED, fd, 0); 56 static void android_os_MemoryFile_munmap(JNIEnv* env, jobject clazz, jint addr, jint length) argument 58 int result = munmap((void *)addr, length); 46 android_os_MemoryFile_mmap(JNIEnv* env, jobject clazz, jobject fileDescriptor, jint length, jint prot) argument
|
H A D | com_android_internal_os_ZygoteInit.cpp | 223 jsize length = env->GetArrayLength(fds); local 233 for (jsize i = 0; i < length; i++) { 263 for (jsize i = 0; i < length; i++) {
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | LimitedLengthInputStreamTest.java | 42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); 53 fail("Should throw IOException on negative length"); 74 fail("Should fail when offset + length is > Long.MAX_VALUE"); 80 private void checkReadBytesWithOffsetAndLength_WithString1(int offset, int length) argument 82 byte[] temp = new byte[TEST_STRING1.length]; 83 byte[] expected = new byte[length]; 84 byte[] actual = new byte[length]; 86 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 89 assertEquals(length, i 131 checkReadBytes_WithString1(int offset, int length) argument 167 checkSingleByteRead_WithString1(int offset, int length) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 50 * @param length the number of bytes, beginning at offset, to parse 62 int offset, int length, boolean isShareable) throws IOException { 63 if ((offset | length) < 0 || data.length < offset + length) { 66 return nativeNewInstance(data, offset, length, isShareable); 267 byte[] data, int offset, int length, boolean isShareable); 61 newInstance(byte[] data, int offset, int length, boolean isShareable) argument 266 nativeNewInstance( byte[] data, int offset, int length, boolean isShareable) argument
|
/frameworks/base/include/androidfw/ |
H A D | ObbFile.h | 74 const unsigned char* getSalt(size_t* length) const { 76 *length = 0; 80 *length = sizeof(mSalt); 84 bool setSalt(const unsigned char* salt, size_t length) { argument 85 if (length != sizeof(mSalt)) {
|
/frameworks/base/services/common_time/ |
H A D | common_time_server_packets.cpp | 42 if ((offset + sizeof(field_name)) > length) \ 53 if ((offset + sizeof(field_name)) > length) \ 79 uint32_t length) { 91 uint32_t length) { 104 uint32_t length) { 107 ret = serializeHeader(data, length); 112 length -= ret; 117 length); 121 length); 124 tmp =((SyncRequestPacket*)(this))->serializePacket(data, length); 78 serializeHeader(uint8_t* data, uint32_t length) argument 90 deserializeHeader(const uint8_t* data, uint32_t length) argument 103 serializePacket(uint8_t* data, uint32_t length) argument 143 deserializePacket( const uint8_t* data, uint32_t length, uint64_t expectedSyncGroupID) argument 184 serializePacket(uint8_t* data, uint32_t length) argument 194 deserializePacket(const uint8_t* data, uint32_t length) argument 206 serializePacket(uint8_t* data, uint32_t length) argument 216 deserializePacket(const uint8_t* data, uint32_t length) argument 228 serializePacket(uint8_t* data, uint32_t length) argument 237 deserializePacket(const uint8_t* data, uint32_t length) argument 246 serializePacket(uint8_t* data, uint32_t length) argument 258 deserializePacket(const uint8_t* data, uint32_t length) argument 270 serializePacket(uint8_t* data, uint32_t length) argument 280 deserializePacket(const uint8_t* data, uint32_t length) argument [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_UsbDeviceManager.cpp | 56 int length = ioctl(fd, cmd, buffer); local
|
/frameworks/base/tests/BrowserTestPlugin/jni/event/ |
H A D | EventPlugin.cpp | 106 void EventPlugin::printToDiv(const char* text, int length) { argument 119 int totalLength = strlen(jsBegin) + length + strlen(jsEnd); 122 char* endMem = middleMem + length; 126 memcpy(middleMem, text, length);
|
/frameworks/base/voip/jni/rtp/ |
H A D | AmrCodec.cpp | 55 int decode(int16_t *samples, int count, void *payload, int length); 105 int length = AMREncode(mEncoder, mSidSync, (Mode)mMode, local 108 if (type != mMode || length != (8 + gFrameBits[mMode] + 7) >> 3) { 115 ++length; 121 // Shift left 6 bits and update the length. 122 bytes[length + 1] = 0; 123 for (int i = 0; i <= length; ++i) { 126 length = (10 + gFrameBits[mMode] + 7) >> 3; 128 return length; 131 int AmrCodec::decode(int16_t *samples, int count, void *payload, int length) argument 229 int length = AMREncode(mEncoder, mSidSync, MR122, local 242 decode(int16_t *samples, int count, void *payload, int length) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
H A D | WifiP2pServiceRequest.java | 46 * The length of the service request TLV. 79 mLength = query.length()/2 + 2; 89 * @param length the length of service discovery packet. 93 private WifiP2pServiceRequest(int serviceType, int length, argument 96 mLength = length; 136 // length is retained as little endian format. 160 if (query.length()%2 == 1) { 164 if (query.length()/2 > UNSIGNED_SHORT_MAX) { 166 "query size is too large. len=" + query.length()); [all...] |
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/ |
H A D | VariableSpeedNative.java | 66 /*package*/ static native void playFileDescriptor(int fd, long offset, long length); argument
|
/frameworks/native/include/utils/ |
H A D | String8.h | 59 inline size_t length() const; 72 size_t length); 251 inline size_t String8::length() const function in class:android::String8 258 return length(); 263 return length() == 0;
|