Home
last modified time | relevance | path

Searched refs:dis (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pDnsSdServiceResponse.java181 DataInputStream dis = new DataInputStream(new ByteArrayInputStream(mData)); in parse() local
183 mDnsQueryName = readDnsName(dis); in parse()
189 mDnsType = dis.readUnsignedShort(); in parse()
190 mVersion = dis.readUnsignedByte(); in parse()
197 String rData = readDnsName(dis); in parse()
208 return readTxtData(dis); in parse()
222 private String readDnsName(DataInputStream dis) { in readDnsName() argument
232 int i = dis.readUnsignedByte(); in readDnsName()
237 String ref = vmpack.get(dis.readUnsignedByte()); in readDnsName()
246 dis.readFully(data); in readDnsName()
[all …]
DWifiP2pServiceResponse.java205 DataInputStream dis = new DataInputStream(new ByteArrayInputStream(tlvsBin)); in newInstance() local
207 while (dis.available() > 0) { in newInstance()
217 int length = (dis.readUnsignedByte() + in newInstance()
218 (dis.readUnsignedByte() << 8)) - 3; in newInstance()
219 int type = dis.readUnsignedByte(); in newInstance()
220 int transId = dis.readUnsignedByte(); in newInstance()
221 int status = dis.readUnsignedByte(); in newInstance()
233 dis.skip(length); in newInstance()
237 dis.readFully(data); in newInstance()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java466 DataInputStream dis = new DataInputStream(bais); in parsePdu() local
476 env.messageType = dis.readInt(); in parsePdu()
477 env.teleService = dis.readInt(); in parsePdu()
478 env.serviceCategory = dis.readInt(); in parsePdu()
480 addr.digitMode = dis.readByte(); in parsePdu()
481 addr.numberMode = dis.readByte(); in parsePdu()
482 addr.ton = dis.readByte(); in parsePdu()
483 addr.numberPlan = dis.readByte(); in parsePdu()
485 length = dis.readUnsignedByte(); in parsePdu()
495 dis.read(addr.origBytes, 0, length); // digits in parsePdu()
[all …]
/frameworks/base/services/core/java/com/android/server/timezone/
DCheckToken.java59 try (DataInputStream dis = new DataInputStream(bais)) { in fromByteArray() argument
60 int versionId = dis.readInt(); in fromByteArray()
61 long updateAppVersion = dis.readLong(); in fromByteArray()
62 long dataAppVersion = dis.readLong(); in fromByteArray()
/frameworks/base/services/core/java/com/android/server/
DRecoverySystemService.java112 DataInputStream dis = null; in uncrypt() local
115 dis = new DataInputStream(socket.getInputStream()); in uncrypt()
119 int status = dis.readInt(); in uncrypt()
158 IoUtils.closeQuietly(dis); in uncrypt()
280 DataInputStream dis = null; in setupOrClearBcb() local
283 dis = new DataInputStream(socket.getInputStream()); in setupOrClearBcb()
295 int status = dis.readInt(); in setupOrClearBcb()
313 IoUtils.closeQuietly(dis); in setupOrClearBcb()
/frameworks/ml/nn/runtime/test/fuzzing/
DRandomGraphGeneratorUtils.h412 std::bernoulli_distribution dis(p); in getBernoulli()
413 return dis(RandomNumberGenerator::generator); in getBernoulli()
429 std::uniform_real_distribution<float> dis(nextLower, upper); in getUniform()
430 return dis(RandomNumberGenerator::generator); in getUniform()
437 std::uniform_int_distribution<T> dis(lower, upper); in getUniform()
438 return dis(RandomNumberGenerator::generator); in getUniform()
444 std::uniform_int_distribution<size_t> dis(0, choices.size() - 1); in getRandomChoice()
445 size_t i = dis(RandomNumberGenerator::generator); in getRandomChoice()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DProcessedPackagesJournalTest.java145 DataInputStream dis = new DataInputStream(fis)) { in readJournalPackages()
146 while (dis.available() > 0) { in readJournalPackages()
147 packages.add(dis.readUTF()); in readJournalPackages()
/frameworks/rs/rsov/compiler/tests/
Drs2spirv_lit_driver.sh41 eval spirv-dis --no-color "$output_folder/$script.spv"
/frameworks/av/media/mtp/tests/
DMtpFfsHandle_test.cpp238 std::uniform_int_distribution<> dis(1, TEST_PACKET_SIZE); in TYPED_TEST() local
242 int length = std::min(size - offset, dis(gen)); in TYPED_TEST()
329 std::uniform_int_distribution<> dis(1, TEST_PACKET_SIZE); in TYPED_TEST() local
333 int length = std::min(size - offset, dis(gen)); in TYPED_TEST()
/frameworks/native/services/surfaceflinger/tests/
DSurfaceInterceptor_test.cpp403 std::uniform_int_distribution<uint8_t> dis; in nBufferUpdates() local
405 fillSurfaceRGBA8(mBGSurfaceControl, dis(gen), dis(gen), dis(gen)); in nBufferUpdates()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java2985 DataInputStream dis = new DataInputStream(bais); in constructCdmaSendSmsRilRequest() local
2988 msg.teleserviceId = dis.readInt(); // teleServiceId in constructCdmaSendSmsRilRequest()
2989 msg.isServicePresent = (byte) dis.readInt() == 1 ? true : false; // servicePresent in constructCdmaSendSmsRilRequest()
2990 msg.serviceCategory = dis.readInt(); // serviceCategory in constructCdmaSendSmsRilRequest()
2991 msg.address.digitMode = dis.read(); // address digit mode in constructCdmaSendSmsRilRequest()
2992 msg.address.numberMode = dis.read(); // address number mode in constructCdmaSendSmsRilRequest()
2993 msg.address.numberType = dis.read(); // address number type in constructCdmaSendSmsRilRequest()
2994 msg.address.numberPlan = dis.read(); // address number plan in constructCdmaSendSmsRilRequest()
2995 addrNbrOfDigits = (byte) dis.read(); in constructCdmaSendSmsRilRequest()
2997 msg.address.digits.add(dis.readByte()); // address_orig_bytes[i] in constructCdmaSendSmsRilRequest()
[all …]