/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | vlc_encode.cpp | 184 Int length; local 189 length = DCtab_lum[size].len; 190 if (length) 191 BitstreamPutBits(bitstream, length, DCtab_lum[size].code); 193 return length; 199 Int length; local 203 length = DCtab_chrom[size].len; 204 if (length) 205 BitstreamPutBits(bitstream, length, DCtab_chrom[size].code); 207 return length; 215 Int length; local 242 Int length; local 257 Int length; local 272 Int length; local 293 Int length = 0; local 313 Int length = 0; local 335 Int length = 0; local 367 Int length = 0; local 395 Int length = 0; local 451 Int length = 0; local 485 Int length = 0; local 547 Int length = 0; local 582 Int length = 0; local 611 Int length = 0; local 640 Int length = 0; local 690 Int length = 0; local 731 Int length = 0; local 758 Int length = 0; local 785 Int length = 0; local 831 Int length = 0; local 1434 int length = 0; local 1506 int length = 0; local 1575 int length = 0; local [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | ObexSession.java | 69 * optional tag length value triplets. The tag 0x00 is required to be in 82 byte[] realmString = new byte[description.length - 1]; 83 System.arraycopy(description, 1, realmString, 0, realmString.length); 147 * 2 option tag length value triples. The required triple has a tag of 154 header.mAuthResp = new byte[38 + userName.length]; 156 header.mAuthResp[37] = (byte)userName.length; 157 System.arraycopy(userName, 0, header.mAuthResp, 38, userName.length); 163 byte[] digest = new byte[challenge.length + password.length + 1]; 164 System.arraycopy(challenge, 0, digest, 0, challenge.length); [all...] |
H A D | ObexHelper.java | 51 * Defines the basic packet length used by OBEX. Every OBEX packet has the 141 * <TD>Byte Sequence, length prefixed with 2 byte unsigned integer</TD> 167 int length = 0; 173 while (index < headerArray.length) { 179 * two bytes after the header identifier being the length 185 * two bytes after the header identifier being the length 190 length = 0xFF & headerArray[index]; 191 length = length << 8; 193 length [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | SerialPort.java | 104 * @param length number of bytes to write 106 public void write(ByteBuffer buffer, int length) throws IOException { argument 108 native_write_direct(buffer, length); 110 native_write_array(buffer.array(), length); 125 private native int native_read_array(byte[] buffer, int length) throws IOException; argument 126 private native int native_read_direct(ByteBuffer buffer, int length) throws IOException; argument 127 private native void native_write_array(byte[] buffer, int length) throws IOException; argument 128 private native void native_write_direct(ByteBuffer buffer, int length) throws IOException; argument
|
/frameworks/base/libs/hwui/ |
H A D | Vertex.h | 76 float length; member in struct:android::uirenderer::AAVertex 78 static inline void set(AAVertex* vertex, float x, float y, float width, float length) { argument 81 vertex[0].length = length; 84 static inline void setColor(AAVertex* vertex, float width, float length) { argument 86 vertex[0].length = length;
|
/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/volley/src/com/android/volley/toolbox/ |
H A D | ByteArrayPool.java | 72 return lhs.length - rhs.length; 94 if (buf.length >= len) { 95 mCurrentSize -= buf.length; 111 if (buf == null || buf.length > mSizeLimit) { 120 mCurrentSize += buf.length; 131 mCurrentSize -= buf.length;
|
/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/av/drm/common/ |
H A D | ReadWriteUtils.cpp | 45 off64_t length = sb.st_size; local 46 char* bytes = new char[length]; 47 if (length == read(fd, (void*) bytes, length)) { 48 string.append(bytes, length); 60 off64_t length = 0; local 67 length = sb.st_size; 68 *buffer = new char[length]; 69 if (length != read(fd, (void*) *buffer, length)) { [all...] |
/frameworks/av/libvideoeditor/vss/common/inc/ |
H A D | M4_BitStreamParser.h | 52 * @brief Read the next <length> bits in the bitstream. 55 * @param length (IN) The number of bits to extract from the bitstream 59 M4OSA_UInt32 M4_BitStreamParser_ShowBits(void* pContext, M4OSA_Int32 length); 63 * @brief Increment the bitstream pointer of <length> bits. 65 * @param length (IN) The number of bit to shift the bitstream 68 void M4_BitStreamParser_FlushBits(void* pContext, M4OSA_Int32 length); 76 * @param length : The number of bit to extract from the bitstream 80 M4OSA_UInt32 M4_BitStreamParser_GetBits(void* pContext,M4OSA_Int32 bitPos, M4OSA_Int32 length);
|
/frameworks/base/cmds/bugreport/ |
H A D | bugreport.c | 48 int length = read(s, buffer, sizeof(buffer)); local 49 if (length <= 0) 51 fwrite(buffer, 1, length, stdout);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | WithFramework.java | 31 if (args.length == 0) { 43 String[] newArgs = new String[args.length - 1]; 44 System.arraycopy(args, 1, newArgs, 0, newArgs.length);
|
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/voip/jni/rtp/ |
H A D | G711Codec.cpp | 42 int decode(int16_t *samples, int count, void *payload, int length); 67 int UlawCodec::decode(int16_t *samples, int count, void *payload, int length) argument 70 if (length > count) { 71 length = count; 73 for (int i = 0; i < length; ++i) { 80 return length; 93 int decode(int16_t *samples, int count, void *payload, int length); 117 int AlawCodec::decode(int16_t *samples, int count, void *payload, int length) argument 120 if (length > count) { 121 length [all...] |
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/telephony/src/java/com/android/internal/telephony/ |
H A D | IccUtils.java | 45 bcdToString(byte[] data, int offset, int length) { argument 46 StringBuilder ret = new StringBuilder(length*2); 48 for (int i = offset ; i < offset + length ; i++) { 70 cdmaBcdToString(byte[] data, int offset, int length) { argument 71 StringBuilder ret = new StringBuilder(length); 74 for (int i = offset; count < length; i++) { 80 if (++count == length) break; 178 adnStringFieldToString(byte[] data, int offset, int length) { argument 179 if (length == 0) { 182 if (length > 341 networkNameToString(byte[] data, int offset, int length) argument 391 parseToBnW(byte[] data, int length) argument 433 parseToRGB(byte[] data, int length, boolean transparency) argument 461 mapTo2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument 499 mapToNon2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | PhoneNumberWatcherTest.java | 32 textWatcher.beforeTextChanged(number, 0, 0, multiChars.length()); 34 Selection.setSelection(number, number.length()); 35 textWatcher.onTextChanged(number, 0, 0, number.length()); 38 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); 42 int len = number.length(); 43 textWatcher.beforeTextChanged(number, number.length(), 0, 1); 45 Selection.setSelection(number, number.length()); 49 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); 58 int len = number.length(); 61 Selection.setSelection(number, number.length()); [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | MemoryFileTest.java | 32 private void compareBuffers(byte[] buffer1, byte[] buffer2, int length) throws Exception { argument 33 for (int i = 0; i < length; i++) { 53 newFile.writeBytes(testString, 0, 0, testString.length); 57 file.readBytes(testString, 0, 0, testString.length); 75 byte[] buffer = new byte[testString.length]; 78 file.writeBytes(testString, 0, 2000, testString.length); 79 file.readBytes(buffer, 2000, 0, testString.length); 80 compareBuffers(testString, buffer, testString.length); 83 buffer = new byte[testString.length]; 89 is.mark(testString.length); [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisCallback.java | 62 * @param length The number of bytes of audio data in {@code buffer}. This must be 66 public int audioAvailable(byte[] buffer, int offset, int length); argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatchPeeker.cpp | 23 bool NinePatchPeeker::peek(const char tag[], const void* data, size_t length) { argument 24 if (strcmp("npTc", tag) == 0 && length >= sizeof(Res_png_9patch)) { 27 assert(length == patchSize); 52 } else if (strcmp("npLb", tag) == 0 && length == sizeof(int) * 4) {
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | DashPathEffect.java | 26 * controls the length of the dashes. The paint's strokeWidth controls the 35 if (intervals.length < 2) {
|
H A D | TemporaryBuffer.java | 33 if (buf == null || buf.length < len) { 41 if (temp.length > 1000) return;
|
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardParserImpl_V40.java | 63 final int length = text.length(); 64 for (int i = 0; i < length; i++) { 66 if (ch == '\\' && i < length - 1) {
|
/frameworks/base/core/java/android/nfc/ |
H A D | NdefMessage.java | 68 * be correct, and the total length of the message must match 69 * the length of the input data.<p> 121 mRecords = new NdefRecord[1 + records.length]; 123 System.arraycopy(records, 0, mRecords, 1, records.length); 133 if (records.length < 1) { 149 * (no need to check for null or array length >= 1): 161 * Return the length of this NDEF Message if it is written to a byte array 164 * depending on chunking, SR, and ID flags, so the length returned 165 * by this method may not be equal to the length of the original 167 * always be equal to the length o [all...] |
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/ |
H A D | BasicNfcEeTest.java | 38 (byte)0x08, // data length 61 assertTrue(out.length >= SELECT_CARD_MANAGER_RESPONSE.length); 63 out.length - SELECT_CARD_MANAGER_RESPONSE.length, 64 out.length); 81 out.length - SELECT_CARD_MANAGER_RESPONSE.length, 82 out.length); 112 assertEquals(b1.length, b [all...] |