Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 2533) sorted by relevance

12345678910>>...102

/packages/apps/SecureElement/src/com/android/se/security/gpac/
DBerTlv.java60 StringBuilder sb = new StringBuilder(digest.length * 2); in toHex()
78 if (data == null || data.length == 0) { in decode()
86 if (curIndex < data.length) { in decode()
91 if (curIndex < data.length) { in decode()
95 "Index " + curIndex + " out of range! [0..[" + data.length); in decode()
104 throw new ParserException("Index " + curIndex + " out of range! [0..[" + data.length); in decode()
108 int length; in decode() local
109 if (curIndex < data.length) { in decode()
112 length = temp; in decode()
114 if (curIndex < data.length) { in decode()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DTlvBufferUtils.java111 mArrayLength = (array == null) ? 0 : array.length; in wrap()
144 size += field.length; in allocateAndPut()
198 int length) { in putByteArray() argument
199 checkLength(length); in putByteArray()
200 addHeader(type, length); in putByteArray()
201 if (length != 0) { in putByteArray()
202 System.arraycopy(array, offset, mArray, mPosition, length); in putByteArray()
204 mPosition += length; in putByteArray()
219 return putByteArray(type, array, 0, (array == null) ? 0 : array.length); in putByteArray()
232 checkRawLength(array.length); in putRawByteArray()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 64},
41 .location = {.poolIndex = 0, .offset = 64, .length = 4},
50 .location = {.poolIndex = 0, .offset = 68, .length = 4},
59 .location = {.poolIndex = 0, .offset = 72, .length = 4},
68 .location = {.poolIndex = 0, .offset = 76, .length = 4},
77 .location = {.poolIndex = 0, .offset = 80, .length = 4},
86 .location = {.poolIndex = 0, .offset = 84, .length = 4},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
170 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_naming/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 64},
41 .location = {.poolIndex = 0, .offset = 64, .length = 4},
50 .location = {.poolIndex = 0, .offset = 68, .length = 4},
59 .location = {.poolIndex = 0, .offset = 72, .length = 4},
68 .location = {.poolIndex = 0, .offset = 76, .length = 4},
77 .location = {.poolIndex = 0, .offset = 80, .length = 4},
86 .location = {.poolIndex = 0, .offset = 84, .length = 4},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
170 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_variation/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 64},
41 .location = {.poolIndex = 0, .offset = 64, .length = 4},
50 .location = {.poolIndex = 0, .offset = 68, .length = 4},
59 .location = {.poolIndex = 0, .offset = 72, .length = 4},
68 .location = {.poolIndex = 0, .offset = 76, .length = 4},
77 .location = {.poolIndex = 0, .offset = 80, .length = 4},
86 .location = {.poolIndex = 0, .offset = 84, .length = 4},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
170 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifTag.java237 if (checkBadComponentCount(value.length)) { in setValue()
250 long[] data = new long[value.length]; in setValue()
251 for (int i = 0; i < value.length; i++) { in setValue()
255 mComponentCountActual = value.length; in setValue()
287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { in setValue()
294 mComponentCountActual = value.length; in setValue()
334 if (buf.length > 0) { in setValue()
335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue()
336 .copyOf(buf, buf.length + 1); in setValue()
340 int count = finalBuf.length; in setValue()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java237 if (checkBadComponentCount(value.length)) { in setValue()
250 long[] data = new long[value.length]; in setValue()
251 for (int i = 0; i < value.length; i++) { in setValue()
255 mComponentCountActual = value.length; in setValue()
287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { in setValue()
294 mComponentCountActual = value.length; in setValue()
334 if (buf.length > 0) { in setValue()
335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue()
336 .copyOf(buf, buf.length + 1); in setValue()
340 int count = finalBuf.length; in setValue()
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DExifTag.java237 if (checkBadComponentCount(value.length)) { in setValue()
250 long[] data = new long[value.length]; in setValue()
251 for (int i = 0; i < value.length; i++) { in setValue()
255 mComponentCountActual = value.length; in setValue()
287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { in setValue()
294 mComponentCountActual = value.length; in setValue()
334 if (buf.length > 0) { in setValue()
335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue()
336 .copyOf(buf, buf.length + 1); in setValue()
340 int count = finalBuf.length; in setValue()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseHelper.java61 int nameLength = nameBytes.length; in advertiseDataToBytes()
84 int dataLen = 2 + (manufacturerData == null ? 0 : manufacturerData.length); in advertiseDataToBytes()
90 System.arraycopy(manufacturerData, 0, concated, 2, manufacturerData.length); in advertiseDataToBytes()
93 ret.write(concated.length + 1); in advertiseDataToBytes()
95 ret.write(concated, 0, concated.length); in advertiseDataToBytes()
112 if (uuid.length == BluetoothUuid.UUID_BYTES_16_BIT) { in advertiseDataToBytes()
113 serviceUuids16.write(uuid, 0, uuid.length); in advertiseDataToBytes()
114 } else if (uuid.length == BluetoothUuid.UUID_BYTES_32_BIT) { in advertiseDataToBytes()
115 serviceUuids32.write(uuid, 0, uuid.length); in advertiseDataToBytes()
117 serviceUuids128.write(uuid, 0, uuid.length); in advertiseDataToBytes()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java172 final int actualLength = Math.min(beforeCursor.length(), internal.length()); in checkConsistencyForDebug()
173 if (internal.length() > actualLength) { in checkConsistencyForDebug()
174 internal.delete(0, internal.length() - actualLength); in checkConsistencyForDebug()
176 final String reference = (beforeCursor.length() <= actualLength) ? beforeCursor.toString() in checkConsistencyForDebug()
177 : beforeCursor.subSequence(beforeCursor.length() - actualLength, in checkConsistencyForDebug()
178 beforeCursor.length()).toString(); in checkConsistencyForDebug()
183 + "\nExpected text = " + internal.length() + " " + internal in checkConsistencyForDebug()
184 + "\nActual text = " + reference.length() + " " + reference; in checkConsistencyForDebug()
309 mExpectedSelStart += text.length() - mComposingText.length(); in commitText()
316 0, text.length(), CharacterStyle.class); in commitText()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DExif.java30 int length = 0; in getOrientation() local
33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation()
52 length = pack(jpeg, offset, 2, false); in getOrientation()
53 if (length < 2 || offset + length > jpeg.length) { in getOrientation()
59 if (marker == 0xE1 && length >= 8 && in getOrientation()
63 length -= 8; in getOrientation()
68 offset += length; in getOrientation()
69 length = 0; in getOrientation()
73 if (length > 8) { in getOrientation()
84 if (count < 10 || count > length) { in getOrientation()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java82 public BluetoothOppSendFileInfo(String fileName, String type, long length, in BluetoothOppSendFileInfo() argument
86 mLength = length; in BluetoothOppSendFileInfo()
93 public BluetoothOppSendFileInfo(String data, String type, long length, int status) { in BluetoothOppSendFileInfo() argument
98 mLength = length; in BluetoothOppSendFileInfo()
108 long length = 0; in generateFileInfo() local
142 length = metadataCursor.getLong(indexSize); in generateFileInfo()
145 Log.d(TAG, "fileName = " + fileName + " length = " + length); in generateFileInfo()
171 length = f.length(); in generateFileInfo()
185 if (length != statLength && statLength > 0) { in generateFileInfo()
186 Log.e(TAG, "Content provider length is wrong (" + Long.toString(length) in generateFileInfo()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java160 assert(mChars.length > 0); in hasSeveralChars()
161 return 1 < mChars.length; in hasSeveralChars()
248 final int length = word.length(); in getCodePoints() local
249 if (length <= 0) return new int[] {}; in getCodePoints()
251 final int[] codePoints = new int[Character.codePointCount(characters, 0, length)]; in getCodePoints()
255 srci < length; srci += Character.charCount(codePoint), ++dsti) { in getCodePoints()
336 if (word.length >= DecoderSpecificConstants.DICTIONARY_MAX_WORD_LENGTH) { in add()
337 MakedictLog.w("Ignoring a word that is too long: word.length = " + word.length); in add()
351 && differentCharIndex < currentPtNode.mChars.length) break; in add()
353 charIndex += currentPtNode.mChars.length; in add()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java150 if (numbers != null && numbers.length > 0) { in setPhoneNumbers()
151 mPhoneNumbers = new String[numbers.length]; in setPhoneNumbers()
152 for (int i = 0, n = numbers.length; i < n; i++) { in setPhoneNumbers()
164 if (networkNumber != null && networkNumber.length() > 1 && !alpha) { in setPhoneNumbers()
174 if (mPhoneNumbers.length > 0) { in getFirstPhoneNumber()
190 if (mEmailAddresses.length > 0) { in getFirstEmail()
198 if (mBtUcis.length > 0) { in getFirstBtUci()
206 if (mBtUids.length > 0) { in getFirstBtUid()
258 if (parts.length == 2) { in parseVcard()
265 if (parts.length == 2) { in parseVcard()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSpannableStringUtilsTests.java63 final CharSequence b = s.subSequence(15, s.length()); in testConcatWithSuggestionSpansOnly()
67 Object[] spans = result.getSpans(0, result.length(), SuggestionSpan.class); in testConcatWithSuggestionSpansOnly()
68 for (int i = 0; i < spans.length; i++) { in testConcatWithSuggestionSpansOnly()
80 actualCount = spanned.getSpans(0, spanned.length(), Object.class).length; in assertSpanCount()
91 final Object[] actualSpans = spanned.getSpans(0, spanned.length(), Object.class); in assertSpan()
128 assertEquals(7, charSequencesFromString.length); in testSplitCharSequenceWithSpan()
129 assertEquals(7, charSequencesFromSpanned.length); in testSplitCharSequenceWithSpan()
205 false /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs()
207 false /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs()
210 true /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs()
[all …]
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcTag.java158 for (int i = 0; i < mTechList.length; i++) { in connectWithStatus()
432 if (mTechHandles.length > 0) { in getHandle()
454 if (mConnectedTechIndex != -1 && mConnectedTechIndex < mTechLibNfcTypes.length) { in getConnectedLibNfcType()
463 if (mConnectedTechIndex != -1 && mConnectedTechIndex < mTechList.length) { in getConnectedTechnology()
475 int[] mNewTechList = new int[mTechList.length + 1]; in addTechnology()
476 System.arraycopy(mTechList, 0, mNewTechList, 0, mTechList.length); in addTechnology()
477 mNewTechList[mTechList.length] = tech; in addTechnology()
480 int[] mNewHandleList = new int[mTechHandles.length + 1]; in addTechnology()
481 System.arraycopy(mTechHandles, 0, mNewHandleList, 0, mTechHandles.length); in addTechnology()
482 mNewHandleList[mTechHandles.length] = handle; in addTechnology()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java146 mSettings.hiddenNetworks = new WifiNative.HiddenNetwork[networkSSIDs.length]; in withHiddenNetworkSSIDs()
147 for (int i = 0; i < networkSSIDs.length; i++) { in withHiddenNetworkSSIDs()
176 int[] channelFreqs = new int[channels.length]; in addBucketWithChannels()
177 for (int i = 0; i < channels.length; ++i) { in addBucketWithChannels()
188 bucket.num_channels = channels.length; in addBucketWithChannels()
304 ScanResult[] results = new ScanResult[freqs.length]; in createScanData()
305 for (int i = 0; i < freqs.length; ++i) { in createScanData()
317 assumeTrue(freqs.length == bucketsScanned.length); in createScanDatas()
318 assumeTrue(freqs.length == bandsScanned.length); in createScanDatas()
319 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
[all …]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DStringUtils.java56 return (str == null || str.length() == 0); in isEmpty()
95 final int length; in equals() local
96 if (a != null && b != null && (length = a.length()) == b.length()) { in equals()
100 for (int i = 0; i < length; i++) { in equals()
114 return Character.codePointCount(text, 0, text.length()); in codePointCount()
164 final ArrayList<String> result = new ArrayList<>(elements.length - 1); in removeFromCommaSplittableTextIfExists()
203 if (s.length() <= 1) { in capitalizeFirstCodePoint()
216 if (s.length() <= 1) { in capitalizeFirstAndDowncaseRest()
233 return toCodePointArray(charSequence, 0, charSequence.length()); in toCodePointArray()
249 final int length = charSequence.length(); in toCodePointArray() local
[all …]
/packages/apps/SecureElement/src/com/android/se/security/arf/PKCS15/
DEF.java81 if ((data == null) || (data.length < 15)) { in decodeSIMFileProps()
125 if ((buffer != null) && (buffer.length >= 2)) { in decodeUSIMFileProps()
131 if ((buffer != null) && (buffer.length >= 2)) { in decodeUSIMFileProps()
148 if (buffer.length == 5) { in decodeUSIMFileProps()
171 if ((path == null) || (path.length == 0) || ((path.length % 2) != 0)) { in selectFile()
174 int length = path.length; in selectFile() local
186 for (int index = 0; index < length; index += 2) { in selectFile()
194 int sw1 = data[data.length - 2] & 0xFF; in selectFile()
196 return (sw1 << 8) | (data[data.length - 1] & 0xFF); in selectFile()
222 int length, pos = 0; in readBinary() local
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_backward_compatibility_float/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 0},
41 .location = {.poolIndex = 0, .offset = 0, .length = 0},
50 .location = {.poolIndex = 0, .offset = 0, .length = 0},
59 .location = {.poolIndex = 0, .offset = 0, .length = 0},
68 .location = {.poolIndex = 0, .offset = 0, .length = 0},
77 .location = {.poolIndex = 0, .offset = 0, .length = 0},
86 .location = {.poolIndex = 0, .offset = 0, .length = 0},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
104 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/common/
DQueryStyleTest.java64 checkCorrectness(testString, startIndex, QUERY_1.length(), 0); in test_spannableString1WithQuery1()
72 checkCorrectness(testString, 11, QUERY_2.length(), 0); in test_spannableString1WithQuery2()
80 checkCorrectness(testString, 5, QUERY_3.length(), 1); in test_spannableString1WithQuery3()
88 checkCorrectness(testString, -1, QUERY_4.length(), 0); in test_spannableString1WithQuery4_queryIsNotPartOfTheString()
96 checkCorrectness(testString, -1, QUERY_EMPTY.length(), 0); in test_spannableString1WithEmptyQuery()
105 checkCorrectness(testString, startIndex, QUERY_1.length(), 0); in test_spannableString2WithQuery1()
113 checkCorrectness(testString, 11, QUERY_2.length(), 0); in test_spannableString2WithQuery2()
121 checkCorrectness(testString, 5, QUERY_3.length(), 1); in test_spannableString2WithQuery3()
129 checkCorrectness(testString, 5, QUERY_3.length(), 2); in test_spannableString3WithQuery3()
137 checkCorrectness(testString, 8, QUERY_2.length(), 0); in test_spannableString4WithQuery2()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DKnownBandsChannelHelperTest.java101 assertEquals(ChannelHelper.SCAN_PERIOD_PER_CHANNEL_MS * CHANNELS_24_GHZ.length, in band()
132 for (int i = 0; i < channels.length; ++i) { in testBand()
133 len += channels[i].length; in testBand()
135 assertEquals("num channels", expectedChannels.length, len); in testBand()
137 for (int i = 0; i < channels.length; ++i) { in testBand()
138 for (int j = 0; j < channels[i].length; ++j) { in testBand()
174 int[] expectedChannels = new int[CHANNELS_24_GHZ.length + CHANNELS_5_GHZ.length]; in channels24GhzAnd5Ghz()
175 System.arraycopy(CHANNELS_24_GHZ, 0, expectedChannels, 0, CHANNELS_24_GHZ.length); in channels24GhzAnd5Ghz()
176 System.arraycopy(CHANNELS_5_GHZ, 0, expectedChannels, CHANNELS_24_GHZ.length, in channels24GhzAnd5Ghz()
177 CHANNELS_5_GHZ.length); in channels24GhzAnd5Ghz()
[all …]
/packages/apps/SecureElement/src/com/android/se/security/
DCommandApdu.java62 mLc = data.length; in CommandApdu()
71 mLc = data.length; in CommandApdu()
90 if (header1.length < 4 || header2.length < 4) { in compareHeaders()
134 mLc = data.length; in setData()
150 int length = 4; // CLA, INS, P1, P2 in toBytes() local
151 if (mData.length != 0) { in toBytes()
152 length += 1; // LC in toBytes()
153 length += mData.length; // DATA in toBytes()
156 length += 1; // LE in toBytes()
159 byte[] apdu = new byte[length]; in toBytes()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DAddress.java128 if (tokens.length > 0) { in getEmailAddress()
177 if (personal.length() == 0) { in decodeAddressPersonal()
192 if (addressList != null && addressList.length() > 0) { in isAllValid()
194 for (int i = 0, length = tokens.length; i < length; ++i) { in isAllValid()
213 if (addressList == null || addressList.length() == 0) { in parse()
218 for (int i = 0, length = tokens.length; i < length; ++i) { in parse()
317 if (addresses == null || addresses.length == 0) { in toString()
320 if (addresses.length == 1) { in toString()
324 for (int i = 1; i < addresses.length; i++) { in toString()
354 if (addresses == null || addresses.length == 0) { in toHeader()
[all …]
/packages/apps/SecureElement/src/com/android/se/internal/
DUtil.java38 byte[] data = new byte[array1.length + array2.length]; in mergeBytes()
39 System.arraycopy(array1, 0, data, 0, array1.length); in mergeBytes()
40 System.arraycopy(array2, 0, data, array1.length, array2.length); in mergeBytes()
45 public static byte[] getMid(byte[] array, int start, int length) { in getMid() argument
46 byte[] data = new byte[length]; in getMid()
47 System.arraycopy(array, start, data, 0, length); in getMid()
59 public static byte[] appendResponse(byte[] r1, byte[] r2, int length) { in appendResponse() argument
60 byte[] rsp = new byte[r1.length + length]; in appendResponse()
61 System.arraycopy(r1, 0, rsp, 0, r1.length); in appendResponse()
62 System.arraycopy(r2, 0, rsp, r1.length, length); in appendResponse()
[all …]

12345678910>>...102