/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | ChipsTest.java | 112 public int length() { in length() method in ChipsTest.MockRecipientEditTextView 113 return mEditable != null ? mEditable.length() : 0; in length() 190 int firstEnd = firstStart + first.trim().length(); in testSanitizeBetween() 192 int secondEnd = secondStart + second.trim().length(); in testSanitizeBetween() 193 mEditable.setSpan(mMockRecips[mMockRecips.length - 2], firstStart, firstEnd, 0); in testSanitizeBetween() 194 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], secondStart, secondEnd, 0); in testSanitizeBetween() 199 assertEquals(editableString.indexOf(second), secondStart - extra.length()); in testSanitizeBetween() 208 firstEnd = firstStart + first.length(); in testSanitizeBetween() 209 mEditable.setSpan(mMockRecips[mMockRecips.length - 1], firstStart, firstEnd, 0); in testSanitizeBetween() 212 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), firstStart in testSanitizeBetween() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | LimitedLengthInputStreamTest.java | 42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); in testConstructor_NegativeOffset_Failure() 80 private void checkReadBytesWithOffsetAndLength_WithString1(int offset, int length) in checkReadBytesWithOffsetAndLength_WithString1() argument 82 byte[] temp = new byte[TEST_STRING1.length]; in checkReadBytesWithOffsetAndLength_WithString1() 83 byte[] expected = new byte[length]; in checkReadBytesWithOffsetAndLength_WithString1() 84 byte[] actual = new byte[length]; in checkReadBytesWithOffsetAndLength_WithString1() 86 System.arraycopy(TEST_STRING1, offset, expected, 0, length); in checkReadBytesWithOffsetAndLength_WithString1() 88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytesWithOffsetAndLength_WithString1() 89 assertEquals(length, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1() 91 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytesWithOffsetAndLength_WithString1() 94 assertEquals(-1, is.read(temp, 0, temp.length)); in checkReadBytesWithOffsetAndLength_WithString1() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | vlc_encode.cpp | 184 Int length; in PutDCsize_lum() local 189 length = DCtab_lum[size].len; in PutDCsize_lum() 190 if (length) in PutDCsize_lum() 191 BitstreamPutBits(bitstream, length, DCtab_lum[size].code); in PutDCsize_lum() 193 return length; in PutDCsize_lum() 199 Int length; in PutDCsize_chrom() local 203 length = DCtab_chrom[size].len; in PutDCsize_chrom() 204 if (length) in PutDCsize_chrom() 205 BitstreamPutBits(bitstream, length, DCtab_chrom[size].code); in PutDCsize_chrom() 207 return length; in PutDCsize_chrom() [all …]
|
/frameworks/base/obex/javax/obex/ |
D | ObexHelper.java | 185 int length = 0; in updateHeaderSet() local 191 while (index < headerArray.length) { in updateHeaderSet() 208 length = 0xFF & headerArray[index]; in updateHeaderSet() 209 length = length << 8; in updateHeaderSet() 211 length += 0xFF & headerArray[index]; in updateHeaderSet() 212 length -= 3; in updateHeaderSet() 214 value = new byte[length]; in updateHeaderSet() 215 System.arraycopy(headerArray, index, value, 0, length); in updateHeaderSet() 216 if (length == 0 || (length > 0 && (value[length - 1] != 0))) { in updateHeaderSet() 225 value.length, "ISO8859_1")); in updateHeaderSet() [all …]
|
D | PrivateInputStream.java | 76 return mData.length - mIndex; in available() 92 while (mData.length == mIndex) { in read() 102 return read(b, 0, b.length); in read() 106 public synchronized int read(byte[] b, int offset, int length) throws IOException { in read() argument 111 if ((offset | length) < 0 || length > b.length - offset) { in read() 116 int currentDataLength = mData.length - mIndex; in read() 117 int remainReadLength = length; in read() 131 currentDataLength = mData.length - mIndex; in read() 149 int length = (body.length - start) + (mData.length - mIndex); in writeBytes() local 150 byte[] temp = new byte[length]; in writeBytes() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | ReprocessFormatsMap.java | 77 int left = entry.length; in ReprocessFormatsMap() 78 for (int i = 0; i < entry.length; ) { in ReprocessFormatsMap() 89 final int length = entry[i]; in ReprocessFormatsMap() local 93 for (int j = 0; j < length; ++j) { in ReprocessFormatsMap() 98 if (length > 0) { in ReprocessFormatsMap() 99 if (left < length) { in ReprocessFormatsMap() 103 "expected: %d)", inputFormat, left, length)); in ReprocessFormatsMap() 106 i += length; in ReprocessFormatsMap() 107 left -= length; in ReprocessFormatsMap() 132 int left = mEntry.length; in getInputs() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelUidCpuFreqTimeReaderTest.java | 69 final long[][] times = new long[uids.length][freqs.length]; in testReadDelta() 70 for (int i = 0; i < uids.length; ++i) { in testReadDelta() 71 for (int j = 0; j < freqs.length; ++j) { in testReadDelta() 79 for (int i = 0; i < uids.length; ++i) { in testReadDelta() 86 final long[][] newTimes1 = new long[uids.length][freqs.length]; in testReadDelta() 87 for (int i = 0; i < uids.length; ++i) { in testReadDelta() 88 for (int j = 0; j < freqs.length; ++j) { in testReadDelta() 96 for (int i = 0; i < uids.length; ++i) { in testReadDelta() 111 final long[][] newTimes2 = new long[uids.length][freqs.length]; in testReadDelta() 112 for (int i = 0; i < uids.length; ++i) { in testReadDelta() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | TlvBufferUtils.java | 98 mArrayLength = (array == null) ? 0 : array.length; in wrap() 129 size += field.length; in allocateAndPut() 171 int length) { in putByteArray() argument 172 checkLength(length); in putByteArray() 173 addHeader(type, length); in putByteArray() 174 if (length != 0) { in putByteArray() 175 System.arraycopy(array, offset, mArray, mPosition, length); in putByteArray() 177 mPosition += length; in putByteArray() 192 return putByteArray(type, array, 0, (array == null) ? 0 : array.length); in putByteArray() 261 int length = 0; in putString() local [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | Lines2Activity.java | 89 private void drawVerticalLine(Canvas canvas, Paint p, float length, float x, float y) { in drawVerticalLine() argument 90 canvas.drawLine(x, y, x, y + length, p); in drawVerticalLine() 93 private void drawDiagonalLine(Canvas canvas, Paint p, float length, float x, float y) { in drawDiagonalLine() argument 94 canvas.drawLine(x, y, x + length, y + length, p); in drawDiagonalLine() 161 for (float length = 1; length <= 10; length +=1 ) { in onDraw() 163 drawVerticalLine(canvas, p, length, x, yOffset); in onDraw() 166 drawVerticalLine(canvas, p, length, x, yOffset); in onDraw() 170 for (float length = 1; length <= 10; length +=1 ) { in onDraw() 172 drawVerticalLine(canvas, p, length, x, yOffset); in onDraw() 175 drawVerticalLine(canvas, p, length, x, yOffset); in onDraw() [all …]
|
/frameworks/base/core/java/android/database/ |
D | MergeCursor.java | 47 for (int i = 0; i < mCursors.length; i++) { in MergeCursor() 58 int length = mCursors.length; in getCount() local 59 for (int i = 0 ; i < length ; i++) { in getCount() 73 int length = mCursors.length; in onMove() local 74 for (int i = 0 ; i < length; i++) { in onMove() 161 int length = mCursors.length; in deactivate() local 162 for (int i = 0 ; i < length ; i++) { in deactivate() 172 int length = mCursors.length; in close() local 173 for (int i = 0 ; i < length ; i++) { in close() 182 int length = mCursors.length; in registerContentObserver() local [all …]
|
/frameworks/base/libs/common_time/ |
D | common_time_server_packets.cpp | 42 if ((offset + sizeof(field_name)) > length) \ 53 if ((offset + sizeof(field_name)) > length) \ 79 uint32_t length) { in serializeHeader() argument 91 uint32_t length) { in deserializeHeader() argument 104 uint32_t length) { in serializePacket() argument 107 ret = serializeHeader(data, length); in serializePacket() 112 length -= ret; in serializePacket() 117 length); in serializePacket() 121 length); in serializePacket() 124 tmp =((SyncRequestPacket*)(this))->serializePacket(data, length); in serializePacket() [all …]
|
/frameworks/base/core/java/com/android/internal/database/ |
D | SortCursor.java | 59 int length = mCursors.length; in SortCursor() local 60 mSortColumns = new int[length]; in SortCursor() 61 for (int i = 0 ; i < length ; i++) { in SortCursor() 74 for (int j = 0 ; j < length; j++) { in SortCursor() 84 for (int i = mRowNumCache.length - 1; i >= 0; i--) { in SortCursor() 87 mCurRowNumCache = new int[ROWCACHESIZE][length]; in SortCursor() 94 int length = mCursors.length; in getCount() local 95 for (int i = 0 ; i < length ; i++) { in getCount() 132 int length = mCursors.length; in onMove() local 135 for (int i = 0; i < length; i++) { in onMove() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AmrCodec.cpp | 55 int decode(int16_t *samples, int count, void *payload, int length); 105 int length = AMREncode(mEncoder, mSidSync, (Mode)mMode, in encode() local 108 if (type != mMode || length != (8 + gFrameBits[mMode] + 7) >> 3) { in encode() 115 ++length; in encode() 122 bytes[length + 1] = 0; in encode() 123 for (int i = 0; i <= length; ++i) { in encode() 126 length = (10 + gFrameBits[mMode] + 7) >> 3; in encode() 128 return length; in encode() 131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length) in decode() argument 135 if (length < 2) { in decode() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 44 bcdToString(byte[] data, int offset, int length) { in bcdToString() argument 45 StringBuilder ret = new StringBuilder(length*2); in bcdToString() 47 for (int i = offset ; i < offset + length ; i++) { in bcdToString() 70 if (offset + 3 > data.length) { in bcdPlmnToString() 81 ret = ret.substring(0, ret.length() - 1); in bcdPlmnToString() 90 bchToString(byte[] data, int offset, int length) { in bchToString() argument 91 StringBuilder ret = new StringBuilder(length*2); in bchToString() 93 for (int i = offset ; i < offset + length ; i++) { in bchToString() 110 cdmaBcdToString(byte[] data, int offset, int length) { in cdmaBcdToString() argument 111 StringBuilder ret = new StringBuilder(length); in cdmaBcdToString() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | JapanesePhoneNumberFormatter.java | 162 int length = text.length(); in format() local 163 if (length > 3 in format() 166 } else if (length < 1 || text.charAt(0) != '0') { in format() 170 CharSequence saved = text.subSequence(0, length); in format() 174 while (i < text.length()) { in format() 182 length = text.length(); in format() 187 while (i < length) { in format() 190 text.replace(0, length, saved); in format() 196 text.replace(0, length, saved); in format() 200 if (length > dashPos2) { in format() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | MemoryFileTest.java | 32 private void compareBuffers(byte[] buffer1, byte[] buffer2, int length) throws Exception { in compareBuffers() argument 33 for (int i = 0; i < length; i++) { in compareBuffers() 53 newFile.writeBytes(testString, 0, 0, testString.length); in testPurge() 57 file.readBytes(testString, 0, 0, testString.length); in testPurge() 75 byte[] buffer = new byte[testString.length]; in testRun() 78 file.writeBytes(testString, 0, 2000, testString.length); in testRun() 79 file.readBytes(buffer, 2000, 0, testString.length); in testRun() 80 compareBuffers(testString, buffer, testString.length); in testRun() 83 buffer = new byte[testString.length]; in testRun() 89 is.mark(testString.length); in testRun() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbACInterface.java | 84 public UsbACInterface(int length, byte type, byte subtype, byte subclass) { in UsbACInterface() argument 85 super(length, type); in UsbACInterface() 99 ByteStream stream, int length, byte type, byte subtype, byte subClass) { in allocAudioControlDescriptor() argument 106 return new Usb20ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor() 108 return new Usb10ACHeader(length, type, subtype, subClass, acInterfaceSpec); in allocAudioControlDescriptor() 116 return new Usb20ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 118 return new Usb10ACInputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 126 return new Usb20ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 128 return new Usb10ACOutputTerminal(length, type, subtype, subClass); in allocAudioControlDescriptor() 133 return new UsbACSelectorUnit(length, type, subtype, subClass); in allocAudioControlDescriptor() [all …]
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
D | Charsets.java | 52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) { in toAsciiBytes() argument 53 CharBuffer cb = CharBuffer.allocate(length); in toAsciiBytes() 54 cb.put(chars, offset, length); in toAsciiBytes() 62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) { in toIsoLatin1Bytes() argument 63 CharBuffer cb = CharBuffer.allocate(length); in toIsoLatin1Bytes() 64 cb.put(chars, offset, length); in toIsoLatin1Bytes() 72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) { in toUtf8Bytes() argument 73 CharBuffer cb = CharBuffer.allocate(length); in toUtf8Bytes() 74 cb.put(chars, offset, length); in toUtf8Bytes() 82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { in toBigEndianUtf16Bytes() argument [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | XmpDepthDecode.java | 37 XMP_EXTENSION_HEADER.length() + 32 + 1; // 32 byte GUID + 1 byte null termination. 129 public int length; field in XmpDepthDecode.Section 225 section.length = -1; in parse() 227 is.read(section.data, 0, section.data.length); in parse() 237 int length = lh << 8 | ll; in parse() local 239 sections.add(readSection(is, length, marker, skipExtendedContent)); in parse() 243 is.skip(length - 2); in parse() 269 if (data.length < header.length()) { in hasHeader() 273 byte[] buffer = new byte[header.length()]; in hasHeader() 274 System.arraycopy(data, 0, buffer, 0, header.length()); in hasHeader() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CharSequences.java | 36 public int length() { in forAsciiBytes() method in CharSequences 37 return bytes.length; in forAsciiBytes() 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) { 89 if (end > length) throw new IndexOutOfBoundsException(); 97 if (a.length() != b.length()) { 101 int length = a.length(); [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | Exif.java | 74 int length = 0; in getOrientation() local 107 length = pack(jpeg, offset, 2, false); in getOrientation() 108 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { in getOrientation() 114 if (marker == 0xE1 && length >= 8 && in getOrientation() 118 length -= 8; in getOrientation() 125 offset += length; in getOrientation() 126 length = 0; in getOrientation() 133 if (length > 8) { in getOrientation() 144 if (count < 10 || count > length) { in getOrientation() 149 length -= count; in getOrientation() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | Exif.java | 69 int length = 0; in getOrientation() local 102 length = pack(jpeg, offset, 2, false); in getOrientation() 103 if (length < 2 || !has(jpeg, byteSize, offset + length - 1)) { in getOrientation() 109 if (marker == 0xE1 && length >= 8 && in getOrientation() 113 length -= 8; in getOrientation() 120 offset += length; in getOrientation() 121 length = 0; in getOrientation() 128 if (length > 8) { in getOrientation() 139 if (count < 10 || count > length) { in getOrientation() 144 length -= count; in getOrientation() [all …]
|
/frameworks/ml/nn/runtime/test/generated/vts_models/ |
D | lstm.model.cpp | 12 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 21 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 30 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 39 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 48 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 57 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 66 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 75 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 84 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 93 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() [all …]
|
D | lstm3.model.cpp | 12 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 21 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 30 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 39 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 48 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 57 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 66 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 75 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 84 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 93 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() [all …]
|
D | lstm2.model.cpp | 12 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 21 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 30 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 39 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 48 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 57 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 66 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 75 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 84 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() 93 .location = {.poolIndex = 0, .offset = 0, .length = 0}, in createTestModel() [all …]
|