/packages/apps/TV/tuner/src/com/android/tv/tuner/util/ |
D | ByteArrayBuffer.java | 41 private int len; field in ByteArrayBuffer 53 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 57 public void append(final byte[] b, int off, int len) { in append() argument 63 || (len < 0) in append() 64 || ((off + len) < 0) in append() 65 || ((off + len) > b.length)) { in append() 68 if (len == 0) { in append() 71 int newlen = this.len + len; in append() 75 System.arraycopy(b, off, this.buffer, this.len, len); in append() 76 this.len = newlen; in append() [all …]
|
/packages/apps/UnifiedEmail/assets/ |
D | script.js | 129 var i, len; 134 for (i = 0, len = bodyDivs.length; i < len; i++) { 214 var i, len; 318 for (i = 0, len = tmpActionLog.length; i < len; i++) { 369 for (i = 0, len = actionLog.length; i < len; i++) { 375 var i, len; 378 for (i = 0, len = nodes.length; i < len; i++) { 393 var i, len; 399 for (i = 0, len = nodes.length; i < len; i++) { 417 var i, len; [all …]
|
/packages/apps/Gallery2/jni/filters/ |
D | kmeans.h | 26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { in sum() argument 32 for (x = 0; x < len; x+= stride) { in sum() 88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], in initialPickHeuristicRandom() argument 91 num_vals = len / stride; in initialPickHeuristicRandom() 141 int calculateNewCentroids(int k, T values[], int len, int dimension, int stride, T oldCenters[], in calculateNewCentroids() argument 156 for (x = 0; x < len; x+=stride) { in calculateNewCentroids() 179 void runKMeansWithPicks(int k, T finalCentroids[], T values[], int len, int dimension, int stride, in runKMeansWithPicks() argument 194 ret = calculateNewCentroids<T, N>(k, values, len, dimension, stride, c1, c2); in runKMeansWithPicks() 209 void runKMeans(int k, T finalCentroids[], T values[], int len, int dimension, int stride, in runKMeans() argument 213 initialPickHeuristicRandom<T>(k, values, len, dimension, stride, initialPicks, seed); in runKMeans() [all …]
|
D | kmeans.cc | 49 int len = swidth * sheight * 4; in JNIFUNCF() local 58 runKMeans<unsigned char, int>(k, finalCentroids, small_ds, len, dimension, in JNIFUNCF() 62 len = lwidth * lheight * 4; in JNIFUNCF() 67 runKMeansWithPicks<unsigned char, int>(k, nextCentroids, large_ds, len, in JNIFUNCF() 70 len = width * height * 4; in JNIFUNCF() 73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride); in JNIFUNCF()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverDataParser.java | 406 int len = payload.get(); in parseBtOob() local 410 nameBytes = new byte[len - 1]; in parseBtOob() 417 nameBytes = new byte[len - 1]; in parseBtOob() 428 result.uuids = parseUuidFromBluetoothRecord(payload, type, len - 1); in parseBtOob() 434 if (len - 1 != CLASS_OF_DEVICE_SIZE) { in parseBtOob() 446 payload.position(payload.position() + len - 1); in parseBtOob() 466 int len = payload.get(); in parseBleOob() local 493 byte[] nameBytes = new byte[len - 1]; in parseBleOob() 498 if (len-1 != SECURITY_MANAGER_TK_SIZE) { in parseBleOob() 504 byte[] securityManagerTK = new byte[len - 1]; in parseBleOob() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) in GetSuffix() argument 385 char[] ret = new char[len]; in GetSuffix() 387 if ((bufpos + 1) >= len) in GetSuffix() 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); in GetSuffix() 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, in GetSuffix() 392 len - bufpos - 1); in GetSuffix() 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); in GetSuffix() 412 int len; in adjustBeginLineColumn() local 416 len = bufpos - tokenBegin + inBuf + 1; in adjustBeginLineColumn() 420 len = bufsize - tokenBegin + bufpos + 1 + inBuf; in adjustBeginLineColumn() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) in GetSuffix() argument 385 char[] ret = new char[len]; in GetSuffix() 387 if ((bufpos + 1) >= len) in GetSuffix() 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); in GetSuffix() 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, in GetSuffix() 392 len - bufpos - 1); in GetSuffix() 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); in GetSuffix() 412 int len; in adjustBeginLineColumn() local 416 len = bufpos - tokenBegin + inBuf + 1; in adjustBeginLineColumn() 420 len = bufsize - tokenBegin + bufpos + 1 + inBuf; in adjustBeginLineColumn() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/ |
D | SimpleCharStream.java | 383 public char[] GetSuffix(int len) in GetSuffix() argument 385 char[] ret = new char[len]; in GetSuffix() 387 if ((bufpos + 1) >= len) in GetSuffix() 388 System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); in GetSuffix() 391 System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, in GetSuffix() 392 len - bufpos - 1); in GetSuffix() 393 System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); in GetSuffix() 412 int len; in adjustBeginLineColumn() local 416 len = bufpos - tokenBegin + inBuf + 1; in adjustBeginLineColumn() 420 len = bufsize - tokenBegin + bufpos + 1 + inBuf; in adjustBeginLineColumn() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | ArchiveEntryInputStream.java | 51 public int read(byte[] b, int off, int len) throws IOException { in read() argument 53 return mReadSource.read(b, off, len); in read() 75 int read(byte[] b, int off, int len) throws IOException; in read() argument 136 (b, off, len) -> ((SevenZFile) commonArchive).read(b, off, len), in create() 143 (b, off, len) -> inputStream.read(b, off, len), in create() 148 (b, off, len) -> ((ArchiveInputStream) commonArchive).read(b, off, len), in create()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | dtoa.h | 34 inline void GrisuRound(char* buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, ui… in GrisuRound() argument 38 buffer[len - 1]--; in GrisuRound() 59 inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* … in DigitGen() argument 66 *len = 0; in DigitGen() 82 if (d || *len) in DigitGen() 83 buffer[(*len)++] = static_cast<char>('0' + static_cast<char>(d)); in DigitGen() 88 … GrisuRound(buffer, *len, delta, tmp, static_cast<uint64_t>(kPow10[kappa]) << -one.e, wp_w.f); in DigitGen() 98 if (d || *len) in DigitGen() 99 buffer[(*len)++] = static_cast<char>('0' + d); in DigitGen() 104 GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * kPow10[-static_cast<int>(kappa)]); in DigitGen()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | ListWithEntrySummaryPreferenceTest.java | 67 int len = mDefaultEntries.length; in initialize_defaultEntries_shouldDisplayDefalutEntries() local 68 assertThat(adapter.getCount()).isEqualTo(len); in initialize_defaultEntries_shouldDisplayDefalutEntries() 69 for (int i = 0; i < len; i++) { in initialize_defaultEntries_shouldDisplayDefalutEntries() 86 int len = mCustomEntries.length; in setEntries_customEntries_shouldUpdateEntries() local 87 assertThat(adapter.getCount()).isEqualTo(len); in setEntries_customEntries_shouldUpdateEntries() 88 for (int i = 0; i < len; i++) { in setEntries_customEntries_shouldUpdateEntries() 111 int len = mCustomEntries.length; in onSaveAndRestoreInstanceState_resumePreference_shouldNotChangeEntries() local 112 assertThat(adapter.getCount()).isEqualTo(len); in onSaveAndRestoreInstanceState_resumePreference_shouldNotChangeEntries() 113 for (int i = 0; i < len; i++) { in onSaveAndRestoreInstanceState_resumePreference_shouldNotChangeEntries()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | IsoInterface.java | 140 final long len = Integer.toUnsignedLong(readInt(fd)); in parseNextBox() local 141 if (len <= 0 || pos + len > end) { in parseNextBox() 142 Log.w(TAG, "Invalid box at " + pos + " of length " + len in parseNextBox() 153 final Box box = new Box(type, new long[] { pos, len }); in parseNextBox() 156 + " at " + pos + " length " + len); in parseNextBox() 166 box.data = new byte[(int) (len - 8 - 16)]; in parseNextBox() 172 box.data = new byte[(int) (len - 8)]; in parseNextBox() 181 while ((child = parseNextBox(fd, pos + len, prefix + " ")) != null) { in parseNextBox() 187 Os.lseek(fd, pos + len, OsConstants.SEEK_SET); in parseNextBox()
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
D | ByteArrayOutputStream.java | 140 public void write(byte[] b, int off, int len) { in write() argument 143 || (len < 0) in write() 144 || ((off + len) > b.length) in write() 145 || ((off + len) < 0)) { in write() 147 } else if (len == 0) { in write() 151 int newcount = count + len; in write() 152 int remaining = len; in write() 156 System.arraycopy(b, off + len - remaining, currentBuffer, inBufferPos, part); in write()
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | StringUtil.java | 810 public static String padLeft(String s, int len, char padChar) { in padLeft() argument 811 return Strings.padStart(s, len, padChar); in padLeft() 818 public static String padRight(String s, int len, char padChar) { in padRight() argument 819 return Strings.padEnd(s, len, padChar); in padRight() 826 public static String maskLeft(String s, int len, char maskChar) { in maskLeft() argument 827 if (len <= 0) { in maskLeft() 830 len = Math.min(len, s.length()); in maskLeft() 832 for (int i = 0; i < len; i++) { in maskLeft() 835 sb.append(s.substring(len)); in maskLeft() 870 int len = s.length(); in unescapeCString() local [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 101 callbackEnv, callbackEnv->NewByteArray(properties[i].len)); in get_properties() 107 callbackEnv->SetByteArrayRegion(propVal.get(), 0, properties[i].len, in get_properties() 240 addr.reset(sCallbackEnv->NewByteArray(properties[i].len)); in device_found_callback() 245 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, properties[i].len, in device_found_callback() 410 static void dut_mode_recv_callback(uint16_t opcode, uint8_t* buf, uint8_t len) { in dut_mode_recv_callback() argument 424 jsize len = 0; in energy_info_recv_callback() local 426 len++; in energy_info_recv_callback() 431 len, android_bluetooth_UidTraffic.clazz, NULL)); in energy_info_recv_callback() 850 int len = env->GetArrayLength(leBtDeviceAddress); in createBondOutOfBandNative() local 851 if (len != OOB_LE_BD_ADDR_SIZE) { in createBondOutOfBandNative() [all …]
|
D | com_android_bluetooth_hid_device.cpp | 101 static void set_report_callback(uint8_t type, uint8_t id, uint16_t len, in set_report_callback() argument 106 sCallbackEnv->NewByteArray(len)); in set_report_callback() 111 sCallbackEnv->SetByteArrayRegion(data.get(), 0, len, (jbyte*)p_data); in set_report_callback() 123 static void intr_data_callback(uint8_t report_id, uint16_t len, in intr_data_callback() argument 128 sCallbackEnv->NewByteArray(len)); in intr_data_callback() 133 sCallbackEnv->SetByteArrayRegion(data.get(), 0, len, (jbyte*)p_data); in intr_data_callback() 238 jsize len = env->GetArrayLength(in); in fill_qos() local 240 if (len != 6) return; in fill_qos() 242 uint32_t* buf = (uint32_t*)calloc(len, sizeof(uint32_t)); in fill_qos() 246 env->GetIntArrayRegion(in, 0, len, (jint*)buf); in fill_qos()
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phNxpExtns_MifareStd.cpp | 396 p_data.ndef_data.len = NdefInfo.psUpperNdefMsg->length; in Mfc_ReadNdef_Completion_Routine() 552 NFCSTATUS Mfc_SetReadOnly(uint8_t* secrtkey, uint8_t len) { in Mfc_SetReadOnly() argument 559 memcpy(mif_secrete_key, secrtkey, len); in Mfc_SetReadOnly() 562 for (id = 0; id < len; id++) { in Mfc_SetReadOnly() 725 NFCSTATUS Mfc_WriteNdef(uint8_t* p_data, uint32_t len) { in Mfc_WriteNdef() argument 730 if (p_data == NULL || len == 0) { in Mfc_WriteNdef() 748 } else if (len > NdefInfo.NdefLength) { in Mfc_WriteNdef() 753 NdefInfo.psUpperNdefMsg->length = len; in Mfc_WriteNdef() 755 NdefInfo.AppWrLength = len; in Mfc_WriteNdef() 758 if (0 == len) { in Mfc_WriteNdef() [all …]
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | AoapInterface.java | 112 int len = conn.controlTransfer( in getProtocol() local 115 if (len != 2) { in getProtocol() 128 int len = conn.controlTransfer( in sendString() local 132 if (len != buffer.length) { in sendString() 140 int len = conn.controlTransfer( in sendAoapStart() local 143 if (len < 0) { in sendAoapStart() 144 throw new IOException("Control transfer for accessory start failed: " + len); in sendAoapStart()
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | FilenameUtils.java | 404 int len = basePath.length(); in concat() local 405 if (len == 0) { in concat() 408 char ch = basePath.charAt(len - 1); in concat() 496 int len = filename.length(); in getPrefixLength() local 497 if (len == 0) { in getPrefixLength() 504 if (len == 1) { in getPrefixLength() 514 return len + 1; // return a length greater than the input in getPrefixLength() 524 if (len == 2 || isSeparator(filename.charAt(2)) == false) { in getPrefixLength() 623 int len = getPrefixLength(filename); in getPrefix() local 624 if (len < 0) { in getPrefix() [all …]
|
/packages/apps/Car/libs/ |
D | resource_generator.py | 149 leading_spaces = len(line) - len(stripped) 224 if len(row) == 0: 239 if (len(trimmed) != len(header)): 244 for idx in range(1, len(trimmed)): 247 if len(cell) > 0: 250 if len(var_values.keys()) > 0:
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
D | ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { in read() argument 44 len = Math.min(len, mBuf.remaining()); in read() 45 mBuf.get(bytes, off, len); in read() 46 return len; in read()
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { in read() argument 44 len = Math.min(len, mBuf.remaining()); in read() 45 mBuf.get(bytes, off, len); in read() 46 return len; in read()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ByteBufferInputStream.java | 39 public int read(byte[] bytes, int off, int len) { in read() argument 44 len = Math.min(len, mBuf.remaining()); in read() 45 mBuf.get(bytes, off, len); in read() 46 return len; in read()
|
/packages/services/Telephony/src/com/android/phone/ |
D | SpecialCharSequenceMgr.java | 157 int len = input.length(); in handleSecretCode() local 158 if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) { in handleSecretCode() 160 phone.sendDialerSpecialCode(input.substring(4, len - 4)); in handleSecretCode() 177 int len = input.length(); in handleAdnEntry() local 178 if ((len > 1) && (len < 5) && (input.endsWith("#"))) { in handleAdnEntry() 180 int index = Integer.parseInt(input.substring(0, len-1)); in handleAdnEntry()
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/ |
D | phNxpExtns.cpp | 243 NFCSTATUS EXTNS_MfcSetReadOnly(uint8_t* key, uint8_t len) { in EXTNS_MfcSetReadOnly() argument 250 msg.Size = len; in EXTNS_MfcSetReadOnly() 276 NFCSTATUS EXTNS_MfcWriteNDef(uint8_t* p_data, uint32_t len) { in EXTNS_MfcWriteNDef() argument 283 msg.Size = len; in EXTNS_MfcWriteNDef() 307 NFCSTATUS EXTNS_MfcFormatTag(uint8_t* key, uint8_t len) { in EXTNS_MfcFormatTag() argument 314 msg.Size = len; in EXTNS_MfcFormatTag() 389 NFCSTATUS EXTNS_MfcTransceive(uint8_t* p_data, uint32_t len) { in EXTNS_MfcTransceive() argument 396 msg.Size = len; in EXTNS_MfcTransceive()
|