HomeSort by relevance Sort by last modified time
    Searched refs:bytes (Results 501 - 525 of 6645) sorted by null

<<21222324252627282930>>

  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
CoverageTest.java 66 private void writeFile(String className, byte bytes[])
72 stream.write(bytes);
85 private void add(String className, int classModifiers, byte bytes[])
87 CoverageTarget newTarget = new CoverageTarget(className, classModifiers, bytes);
95 private byte bytes[]; field in class:CoverageTest.CoverageTarget
98 public CoverageTarget(String className, int classModifiers, byte bytes[])
100 super(className, bytes == null? null : new ByteArrayInputStream(bytes));
102 this.bytes = bytes;
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/snep/
SnepMessage.java 97 byte[] bytes = new byte[ndefLength];
98 System.arraycopy(data, ndefOffset, bytes, 0, ndefLength);
99 mNdefMessage = new NdefMessage(bytes);
115 byte[] bytes;
117 bytes = mNdefMessage.toByteArray();
119 bytes = new byte[0];
125 buffer = new ByteArrayOutputStream(bytes.length + HEADER_LENGTH + 4);
127 buffer = new ByteArrayOutputStream(bytes.length + HEADER_LENGTH);
134 output.writeInt(bytes.length + 4);
137 output.writeInt(bytes.length)
    [all...]
  /external/protobuf/java/src/test/java/com/google/protobuf/
ByteStringTest.java 91 byte[] bytes = getTestBytes();
92 ByteString substring = ByteString.copyFrom(bytes).substring(500);
94 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500));
98 byte[] bytes = getTestBytes();
99 ByteString byteString = ByteString.copyFrom(bytes, 500, 200);
100 assertTrue("copyFrom sub-range must contain the expected bytes",
101 isArrayRange(byteString.toByteArray(), bytes, 500, 200));
105 byte[] bytes = getTestBytes();
106 ByteString byteString = ByteString.copyFrom(bytes);
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
SourceSinkFactories.java 140 * Get what the byte sink factory would expect for no written bytes, then append expected
159 public ByteSource createSource(byte[] bytes) throws IOException {
160 return factory.createSource(bytes).slice(off, len);
164 public byte[] getExpected(byte[] bytes) {
165 byte[] baseExpected = factory.getExpected(bytes);
196 public ByteSource createSource(byte[] bytes) throws IOException {
197 return ByteSource.wrap(bytes);
201 public byte[] getExpected(byte[] bytes) {
202 return bytes;
230 public ByteSource createSource(byte[] bytes) throws IOException
    [all...]
  /prebuilts/go/darwin-x86/src/cmd/vet/
buildtag.go 8 "bytes"
26 lines := bytes.SplitAfter(data, nl)
33 line = bytes.TrimSpace(line)
38 if bytes.HasPrefix(line, slashSlash) {
45 line = bytes.TrimSpace(line)
46 if !bytes.HasPrefix(line, slashSlash) {
49 text := bytes.TrimSpace(line[2:])
50 if bytes.HasPrefix(text, plusBuild) {
51 fields := bytes.Fields(text)
52 if !bytes.Equal(fields[0], plusBuild)
    [all...]
  /prebuilts/go/linux-x86/src/cmd/vet/
buildtag.go 8 "bytes"
26 lines := bytes.SplitAfter(data, nl)
33 line = bytes.TrimSpace(line)
38 if bytes.HasPrefix(line, slashSlash) {
45 line = bytes.TrimSpace(line)
46 if !bytes.HasPrefix(line, slashSlash) {
49 text := bytes.TrimSpace(line[2:])
50 if bytes.HasPrefix(text, plusBuild) {
51 fields := bytes.Fields(text)
52 if !bytes.Equal(fields[0], plusBuild)
    [all...]
  /device/google/contexthub/firmware/src/drivers/ams_tmd2772/
ams_tmd2772.c 145 uint8_t bytes[16]; member in union:SensorData::__anon3080
251 mData.txrxBuf.bytes[0] = AMS_TMD2772_REG_ENABLE;
252 mData.txrxBuf.bytes[1] = POWER_ON_BIT | WAIT_ENABLE_BIT |
254 mData.txrxBuf.bytes[2] = AMS_TMD2772_ATIME_SETTING;
255 mData.txrxBuf.bytes[3] = AMS_TMD2772_PTIME_SETTING;
256 mData.txrxBuf.bytes[4] = alsOn ? AMS_TMD2772_WTIME_SETTING_ALS_ON : AMS_TMD2772_WTIME_SETTING_ALS_OFF;
257 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mData.txrxBuf.bytes, 5,
427 mData.txrxBuf.bytes[0] = AMS_TMD2772_REG_ENABLE;
428 mData.txrxBuf.bytes[1] = POWER_ON_BIT | PROX_ENABLE_BIT;
429 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mData.txrxBuf.bytes, 2
    [all...]
  /libcore/ojluni/src/main/java/sun/security/util/
DerOutputStream.java 165 byte[] buf = i.toByteArray(); // least number of bytes
189 byte[] bytes = new byte[4];
192 // Obtain the four bytes of the int
194 bytes[3] = (byte) (i & 0xff);
195 bytes[2] = (byte)((i & 0xff00) >>> 8);
196 bytes[1] = (byte)((i & 0xff0000) >>> 16);
197 bytes[0] = (byte)((i & 0xff000000) >>> 24);
199 // Reduce them to the least number of bytes needed to
202 if (bytes[0] == (byte)0xff) {
207 if ((bytes[j] == (byte)0xff) &
301 DerOutputStream bytes = new DerOutputStream(); local
318 DerOutputStream bytes = new DerOutputStream(); local
389 DerOutputStream bytes = new DerOutputStream(); local
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
InformationElementUtil.java 36 public static InformationElement[] parseInformationElements(byte[] bytes) {
37 if (bytes == null) {
40 ByteBuffer data = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN);
50 // APs often pad the data with bytes that happen to match that of the EID_SSID
61 ie.bytes = new byte[elementLength];
62 data.get(ie.bytes);
78 if (ie.bytes.length != 5) {
80 + ie.bytes.length);
82 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN);
120 secondChannelOffset = ie.bytes[1] & 0x3
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
NfcUtils.java 49 static CharSequence displayByteArray(byte[] bytes) {
51 for (int i = 0; i < bytes.length; i++) {
52 builder.append(Byte.toString(bytes[i]));
53 if (i + 1 < bytes.length) {
  /development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
ChatManager.java 37 int bytes; local
44 bytes = iStream.read(buffer);
45 if (bytes == -1) {
49 // Send the obtained bytes to the UI Activity
52 bytes, -1, buffer).sendToTarget();
  /external/apache-commons-math/src/main/java/org/apache/commons/math/random/
AbstractRandomGenerator.java 96 * Generates random bytes and places them into a user-supplied
97 * byte array. The number of random bytes produced is equal to
100 * The default implementation fills the array with bytes extracted from
103 * @param bytes the non-null byte array in which to put the
104 * random bytes
106 public void nextBytes(byte[] bytes) {
108 while (bytesOut < bytes.length) {
114 bytes[bytesOut++] = (byte) randInt;
115 if (bytesOut == bytes.length) {
RandomGenerator.java 60 * Generates random bytes and places them into a user-supplied
61 * byte array. The number of random bytes produced is equal to
64 * @param bytes the non-null byte array in which to put the
65 * random bytes
67 void nextBytes(byte[] bytes);
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Method/
BytecodesTest.java 69 int bytes = reply.getNextValueAsInt(); local
70 logWriter.println("bytes = " + bytes);
72 byte[] bytecode = new byte[bytes];
73 for (int j = 0; j < bytes; j++) {
  /external/deqp/executor/
xeTestCaseListParser.hpp 42 void parse (const deUint8* bytes, int numBytes);
  /external/icu/icu4c/source/test/intltest/
testutil.h 30 static UnicodeString hex(const uint8_t* bytes, int32_t len);
  /external/libavc/test/encoder/
input.c 55 WORD32 size, bytes; local
72 bytes = fread(pv_pic_info, 1, size, ps_app_ctxt->fp_pic_info);
73 if(bytes != size)
84 WORD32 bytes; local
112 bytes = fread(pv_mb_info, 1, size, ps_app_ctxt->fp_mb_info);
113 if(bytes != size)
121 WORD32 bytes; local
137 bytes = fread(pu1_buf, sizeof(UWORD8), wd, fp);
138 if(bytes != wd )
161 bytes = fread(pu1_buf, sizeof(UWORD8), wd, fp)
176 WORD32 bytes; local
    [all...]
  /external/libchrome/base/
guid.h 28 BASE_EXPORT std::string RandomDataToGUIDString(const uint64_t bytes[2]);
guid_unittest.cc 32 uint64_t bytes[] = {0, 0}; local
33 std::string clientid = RandomDataToGUIDString(bytes);
38 uint64_t bytes[] = {0x0123456789ABCDEFULL, 0xFEDCBA9876543210ULL}; local
39 std::string clientid = RandomDataToGUIDString(bytes);
  /external/libweave/third_party/libuweave/src/
crypto_hmac.h 13 const uint8_t* bytes; member in struct:__anon18277
  /external/llvm/include/llvm/DebugInfo/PDB/
PDBSymbolCustom.h 33 void getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes);
  /external/mesa3d/src/glsl/glcpp/
glcpp.c 50 size_t bytes; local
61 bytes = fread (text + total_read, 1, CHUNK, fp);
62 total_read += bytes;
64 if (bytes < CHUNK) {
  /external/pdfium/xfa/src/fxbarcode/common/
BC_CommonBitSource.h 11 CBC_CommonBitSource(CFX_ByteArray* bytes);
  /external/selinux/libselinux/src/
sha1.h 39 uint8_t bytes [SHA1_HASH_SIZE]; member in struct:__anon23443
  /external/sfntly/cpp/src/test/
open_type_data_test.cc 27 ByteVector bytes; local
29 bytes.push_back(TEST_OTF_DATA[i]);
31 ByteArrayPtr array = new MemoryByteArray(&(bytes[0]), bytes.size());

Completed in 980 milliseconds

<<21222324252627282930>>