/libcore/luni/src/main/java/java/nio/charset/ |
ModifiedUtf8.java | 30 * Decodes a byte array containing <i>modified UTF-8</i> bytes into a string. 67 * Returns the number of bytes the modified UTF-8 representation of 's' would take. Note 68 * that this is just the space for the bytes representing the characters, not the length 69 * which precedes those bytes, because different callers represent the length differently, 70 * as two, four, or even eight bytes. If {@code shortLength} is true, we'll throw an 78 if (ch != 0 && ch <= 127) { // U+0000 uses two bytes. 86 throw new UTFDataFormatException("String more than 65535 UTF bytes long"); 93 * Encodes the <i>modified UTF-8</i> bytes corresponding to string {@code s} into the 100 if (ch != 0 && ch <= 127) { // U+0000 uses two bytes.
|
/libcore/luni/src/main/java/java/security/ |
SecureRandom.java | 45 * A seed is an array of bytes used to bootstrap random number generation. 265 * Generates and stores random bytes in the given {@code byte[]} for each 268 * @param bytes 269 * the {@code byte[]} to be filled with random bytes. 272 public synchronized void nextBytes(byte[] bytes) { 273 secureRandomSpi.engineNextBytes(bytes); 294 int bytes = (numBits+7)/8; local 295 byte[] next = new byte[bytes]; 299 for (int i = 0; i < bytes; i++) { 302 ret = ret >>> (bytes*8 - numBits) [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
DeflaterInputStream.java | 71 * @param bufferSize the length in bytes of the internal buffer 98 * data corresponding to an uncompressed byte or bytes read from the underlying stream. 107 * Reads compressed data into a byte buffer. The result will be bytes of compressed 108 * data corresponding to an uncompressed byte or bytes read from the underlying stream. 109 * @return the number of bytes read or -1 if the end of the compressed input 151 * skip {@code Integer.MAX_VALUE} bytes. 161 * A result of 1 does not guarantee that further bytes can be returned, 169 * @return 0 if no further bytes are available. Otherwise returns 1, 170 * which suggests (but does not guarantee) that additional bytes are
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherInputStreamTest.java | 46 byte[] bytes = readAll(in); 47 assertEquals(Arrays.toString(cipherText), Arrays.toString(bytes)); 54 byte[] bytes = readAll(in); 55 assertEquals(plainText, new String(bytes, "UTF-8"));
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
Util.java | 99 protected void engineNextBytes(byte[] bytes) { 100 java.util.Arrays.fill(bytes, (byte) 0); 101 bytes[bytes.length - 1] = (byte) 10;
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
CredentialHelper.java | 88 byte[] bytes = bundle.getByteArray(key); 89 Log.d(TAG, " " + key + ": " + ((bytes == null) ? -1 : bytes.length)); 90 mBundle.put(key, bytes); 119 byte[] bytes = savedStates.getByteArray(Credentials.USER_PRIVATE_KEY); 120 if (bytes != null) { 121 setPrivateKey(bytes); 134 private void parseCert(byte[] bytes) { 135 if (bytes == null) { 143 new ByteArrayInputStream(bytes)); [all...] |
/packages/apps/Email/src/org/apache/james/mime4j/codec/ |
EncoderUtil.java | 336 byte[] bytes = encode(text, charset); 339 encoding = determineEncoding(bytes, usage); 343 return encodeB(prefix, text, usedCharacters, charset, bytes); 346 return encodeQ(prefix, text, usage, usedCharacters, charset, bytes); 354 * @param bytes 358 public static String encodeB(byte[] bytes) { 362 final int end = bytes.length; 364 int data = (bytes[idx] & 0xff) << 16 | (bytes[idx + 1] & 0xff) << 8 365 | bytes[idx + 2] & 0xff [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
CacheStorageUsageInfo.java | 30 // number of bytes the storage has. 33 // number of bytes already used. 36 // number of bytes used for the cache (should be less then usedBytes). 39 // number of bytes used for the cache if all pending downloads (and removals) are completed.
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
hdlc.h | 15 #define HDLC_MAX_MTU 1500 /* Ethernet 1500 bytes */
|
ppp_defs.h | 122 __u32 ppp_ibytes; /* bytes received */ 123 __u32 ppp_ioctects; /* bytes received not in error */ 128 __u32 ppp_obytes; /* raw bytes sent */ 129 __u32 ppp_ooctects; /* frame bytes sent */ 147 __u32 unc_bytes; /* total uncompressed bytes */ 149 __u32 comp_bytes; /* compressed bytes */ 151 __u32 inc_bytes; /* incompressible bytes */ 155 __u32 in_count; /* Bytes received */ 156 __u32 bytes_out; /* Bytes transmitted */
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/sys/ |
xattr.h | 39 is SIZE bytes long). Return 0 on success, -1 for errors. */ 45 SIZE bytes long), not following symlinks for the last pathname component. 52 bytes long). Return 0 on success, -1 for errors. */ 57 SIZE bytes long). Return 0 on success, -1 for errors. */ 62 SIZE bytes long), not following symlinks for the last pathname component. 68 bytes long). Return 0 on success, -1 for errors. */ 73 buffer LIST (which is SIZE bytes big). Return 0 on success, -1 for 79 buffer LIST (which is SIZE bytes big), not following symlinks for the 85 LIST (which is SIZE bytes big). Return 0 on success, -1 for errors. */
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
hdlc.h | 15 #define HDLC_MAX_MTU 1500 /* Ethernet 1500 bytes */
|
ppp_defs.h | 122 __u32 ppp_ibytes; /* bytes received */ 123 __u32 ppp_ioctects; /* bytes received not in error */ 128 __u32 ppp_obytes; /* raw bytes sent */ 129 __u32 ppp_ooctects; /* frame bytes sent */ 147 __u32 unc_bytes; /* total uncompressed bytes */ 149 __u32 comp_bytes; /* compressed bytes */ 151 __u32 inc_bytes; /* incompressible bytes */ 155 __u32 in_count; /* Bytes received */ 156 __u32 bytes_out; /* Bytes transmitted */
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sys/ |
xattr.h | 39 is SIZE bytes long). Return 0 on success, -1 for errors. */ 45 SIZE bytes long), not following symlinks for the last pathname component. 52 bytes long). Return 0 on success, -1 for errors. */ 57 SIZE bytes long). Return 0 on success, -1 for errors. */ 62 SIZE bytes long), not following symlinks for the last pathname component. 68 bytes long). Return 0 on success, -1 for errors. */ 73 buffer LIST (which is SIZE bytes big). Return 0 on success, -1 for 79 buffer LIST (which is SIZE bytes big), not following symlinks for the 85 LIST (which is SIZE bytes big). Return 0 on success, -1 for errors. */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
hdlc.h | 15 #define HDLC_MAX_MTU 1500 /* Ethernet 1500 bytes */
|
ppp_defs.h | 122 __u32 ppp_ibytes; /* bytes received */ 123 __u32 ppp_ioctects; /* bytes received not in error */ 128 __u32 ppp_obytes; /* raw bytes sent */ 129 __u32 ppp_ooctects; /* frame bytes sent */ 147 __u32 unc_bytes; /* total uncompressed bytes */ 149 __u32 comp_bytes; /* compressed bytes */ 151 __u32 inc_bytes; /* incompressible bytes */ 155 __u32 in_count; /* Bytes received */ 156 __u32 bytes_out; /* Bytes transmitted */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/sys/ |
xattr.h | 39 is SIZE bytes long). Return 0 on success, -1 for errors. */ 45 SIZE bytes long), not following symlinks for the last pathname component. 52 bytes long). Return 0 on success, -1 for errors. */ 57 SIZE bytes long). Return 0 on success, -1 for errors. */ 62 SIZE bytes long), not following symlinks for the last pathname component. 68 bytes long). Return 0 on success, -1 for errors. */ 73 buffer LIST (which is SIZE bytes big). Return 0 on success, -1 for 79 buffer LIST (which is SIZE bytes big), not following symlinks for the 85 LIST (which is SIZE bytes big). Return 0 on success, -1 for errors. */
|
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/apicheck/ |
ApiTargetTest2.class.data | |
/system/extras/ext4_utils/ |
extent.c | 27 /* Creates data buffers for the first backing_len bytes of a block allocation 175 /* Allocates enough blocks to hold len bytes, with backing_len bytes in a data 186 error("failed to allocate extents for %llu bytes", len); 193 error("failed to create backing for %llu bytes", backing_len); 201 /* Allocates enough blocks to hold len bytes, queues them to be written 210 error("failed to allocate extents for %llu bytes", len); 219 /* Allocates enough blocks to hold len bytes and connects them to an inode */ 226 error("failed to allocate extents for %llu bytes", len);
|
/system/netd/ |
BandwidthController.cpp | 538 ALOGE("Invalid bytes value. 1..max_int64."); 642 ALOGE("Invalid bytes value. 1..max_int64."); 694 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { 695 return getInterfaceQuota("shared", bytes); 698 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { 710 scanRes = fscanf(fp, "%lld", bytes); 711 ALOGV("Read quota res=%d bytes=%lld", scanRes, *bytes); 749 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { 760 fprintf(fp, "%lld\n", bytes); 1025 int64_t packets, bytes; local [all...] |
/bionic/libc/arch-x86/string/ |
ssse3-memcmp3-new.S | 1642 je L(8bytes) 1644 je L(9bytes) 1646 je L(10bytes) 1648 je L(11bytes) 1650 je L(12bytes) 1652 je L(13bytes) 1654 je L(14bytes) 1655 jmp L(15bytes) 1662 je L(16bytes) 1664 je L(17bytes) [all...] |
/external/protobuf/src/google/protobuf/io/ |
zero_copy_stream_impl_lite.h | 59 // A ZeroCopyInputStream backed by an in-memory array of bytes. 62 // Create an InputStream that returns the bytes pointed to by "data". 82 const int block_size_; // How many bytes to return at a time. 85 int last_returned_size_; // How many bytes we returned last time Next() 93 // A ZeroCopyOutputStream backed by an in-memory array of bytes. 96 // Create an OutputStream that writes to the bytes pointed to by "data". 114 const int block_size_; // How many bytes to return at a time. 117 int last_returned_size_; // How many bytes we returned last time Next() 125 // A ZeroCopyOutputStream which appends bytes to a string. 128 // Create a StringOutputStream which appends bytes to the given string [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
crypto.h | 61 * @seed_len: Seed length in bytes 63 * @xlen: Output length in bytes 94 * @len: Key length in bytes (usually 16, i.e., 128 bits) 102 * @plain: Plaintext data to be encrypted (16 bytes) 103 * @crypt: Buffer for the encrypted data (16 bytes) 116 * @len: Key length in bytes (usually 16, i.e., 128 bits) 124 * @crypt: Encrypted data (16 bytes) 125 * @plain: Buffer for the decrypted data (16 bytes) 147 * @key_len: Length of the key in bytes 202 * @key_len: Length of key in bytes [all...] |
/external/icu4c/tools/toolutil/ |
ucm.c | 21 * as well as byte sequences with more than 4 bytes or more than one complete 43 printMapping(UCMapping *m, UChar32 *codePoints, uint8_t *bytes, FILE *f) { 53 fprintf(f, "\\x%02X", bytes[j]); 159 /* compare the bytes */ 180 /* Unicode then bytes */ 186 /* bytes then Unicode */ 209 /* sorting by bytes first sorts the reverseMap; use indirection to mappings */ 253 /* 2. sort reverseMap by mappings bytes first */ 629 (subchar1!=0 && fromUMapping->bLen==1 && fromUMapping->b.bytes[0]==subchar1) 663 (subchar1!=0 && fromUMapping->bLen==1 && fromUMapping->b.bytes[0]==subchar1 1128 uint8_t bytes[UCNV_EXT_MAX_BYTES]; local [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.java | 57 /** Assert that actual equals the first len bytes of expected. */ 65 /** Assert that actual equals the first len bytes of expected. */ 73 /** Assert that actual equals the first len bytes of expected. */ 123 private static final byte[] BYTES = { (byte) 0xff, (byte) 0xee, (byte) 0xdd, 128 assertEquals(BYTES, 0, Base64.decode("", 0)); 129 assertEquals(BYTES, 1, Base64.decode("/w==", 0)); 130 assertEquals(BYTES, 2, Base64.decode("/+4=", 0)); 131 assertEquals(BYTES, 3, Base64.decode("/+7d", 0)); 132 assertEquals(BYTES, 4, Base64.decode("/+7dzA==", 0)); 133 assertEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0)) [all...] |