Searched refs:bytes (Results 201 - 225 of 268) sorted by relevance

1234567891011

/frameworks/base/services/core/java/com/android/server/locksettings/
H A DSyntheticPasswordManager.java1137 public static String bytesToHex(byte[] bytes) { argument
1138 if (bytes == null) {
1141 char[] hexChars = new char[bytes.length * 2];
1142 for ( int j = 0; j < bytes.length; j++ ) {
1143 int v = bytes[j] & 0xFF;
H A DLockSettingsStorage.java162 public static CredentialHash fromBytes(byte[] bytes) { argument
164 DataInputStream is = new DataInputStream(new ByteArrayInputStream(bytes));
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DExifInterfaceTest.java471 byte[] bytes = new byte[1024];
473 new ExifInterface(new ByteArrayInputStream(bytes));
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSearchBar.java668 public void onBufferReceived(byte[] bytes) {
669 if (DEBUG) Log.v(TAG, "onBufferReceived " + bytes.length);
/frameworks/base/core/java/android/net/
H A DUri.java1896 // Convert the substring to bytes and encode the bytes as
1900 byte[] bytes = toEncode.getBytes(DEFAULT_ENCODING);
1901 int bytesLength = bytes.length;
1904 encoded.append(HEX_DIGITS[(bytes[i] & 0xf0) >> 4]);
1905 encoded.append(HEX_DIGITS[bytes[i] & 0xf]);
H A DNetworkStatsHistory.java236 * Return total bytes represented by this history.
551 public void generateRandom(long start, long end, long bytes) { argument
555 final long rxBytes = (long) (bytes * fractionRx);
556 final long txBytes = (long) (bytes * (1 - fractionRx));
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp1013 jstring AndroidRuntime::NewStringLatin1(JNIEnv* env, const char* bytes) { argument
1014 if (!bytes) return NULL;
1015 int length = strlen(bytes);
1020 *chp++ = *bytes++;
H A Dandroid_media_AudioTrack.cpp708 ScopedBytesRO bytes(env, javaBytes);
709 if (bytes.get() == NULL) {
714 jint written = writeToTrack(lpTrack, javaAudioFormat, bytes.get(), byteOffset,
H A Dandroid_hardware_Camera.cpp239 ALOGE("Callback buffer was too small! Expected %zu bytes, but got %d bytes!",
791 static void android_hardware_Camera_addCallbackBuffer(JNIEnv *env, jobject thiz, jbyteArray bytes, jint msgType) { argument
797 context->addCallbackBuffer(env, bytes, msgType);
/frameworks/support/exifinterface/tests/src/android/support/media/
H A DExifInterfaceTest.java362 byte[] bytes = new byte[8096];
363 ByteBuffer buffer = ByteBuffer.wrap(bytes);
366 random.nextBytes(bytes);
430 new ExifInterface(new ByteArrayInputStream(bytes));
/frameworks/base/core/java/android/os/
H A DRecoverySystem.java367 byte[] bytes = new byte[(int) entrySize];
368 Streams.readFully(zis, bytes);
369 list.add(new String(bytes, UTF_8));
977 if (line.startsWith("bytes")) {
/frameworks/native/cmds/atrace/
H A Datrace.cpp903 fprintf(stderr, "read returned %zd bytes err %d (%s)\n",
986 size_t bytes = bufSize - zs.avail_out; local
987 result = write(outFd, out.get(), bytes);
988 if ((size_t)result < bytes) {
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DVpn.java1903 byte[] bytes = argument.getBytes(StandardCharsets.UTF_8);
1904 if (bytes.length >= 0xFFFF) {
1907 out.write(bytes.length >> 8);
1908 out.write(bytes.length);
1909 out.write(bytes);
/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java1235 final long bytes = Long.parseLong(cooked[2]);
1240 + " " + bytes + " " + time);
2906 private SensitiveArg encodeBytes(byte[] bytes) { argument
2907 if (ArrayUtils.isEmpty(bytes)) {
2910 return new SensitiveArg(HexDump.toHexString(bytes));
3369 // data and only consider unused bytes.
3384 public void allocateBytes(String volumeUuid, long bytes, int flags, String callingPackage) { argument
3388 if (bytes > allocatableBytes) {
3389 throw new ParcelableException(new IOException("Failed to allocate " + bytes
3400 bytes
[all...]
/frameworks/base/media/java/android/media/
H A DMediaPlayer.java1239 * @param offset the offset into the file where the data to be played starts, in bytes
1240 * @param length the length in bytes of the data to be played
1946 // are 2 filters. Each one starts with a 4bytes number to
1947 // store the len followed by a number of int (4 bytes as well)
2818 * @param offset the offset into the file where the data to be played starts, in bytes
2819 * @param length the length in bytes of the data to be played
2874 int bytes = IoBridge.read(dupedFd, buffer, 0, bytesToRead);
2875 if (bytes < 0) {
2878 bos.write(buffer, 0, bytes);
2879 total += bytes;
4729 arrToHex(byte[] bytes) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DDropBoxTest.java594 new DropBoxManager.Entry("bytes", 3000000, "Bytes Value".getBytes(),
687 assertEquals("bytes", e.getTag());
998 byte[] bytes = new byte[size];
999 new Random(System.currentTimeMillis()).nextBytes(bytes);
1003 os.write(bytes);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifInterface.java1102 ByteArrayOutputStream bytes = null;
1105 bytes = new ByteArrayOutputStream();
1106 doExifStreamIO(is, bytes);
1107 byte[] imageBytes = bytes.toByteArray();
1766 * The bytes may either be an uncompressed strip as specified in the exif
2074 * We put tag information in a 4-bytes integer. The first byte a bitmask
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DNetworkDetail.java166 ssidOctets = ie.bytes;
529 // frame to either send zero-value bytes as the SSID, or to send no bytes at all.
/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp627 // - meta header structures, which occur only once (total 66 bytes)
628 // - size for each key, which consists of a fixed header (32 bytes),
714 ALOGI("limits: %" PRId64 "/%" PRId64 " bytes/us, bit rate: %d bps and the"
715 " estimated moov size %" PRId64 " bytes",
752 ALOGW("32-bit file size limit (%" PRId64 " bytes) too big. "
753 "It is changed to %" PRId64 " bytes",
1256 const size_t kExtensionNALSearchRange = 64; // bytes to look for non-VCL NALUs
1321 const size_t bytes = size * nmemb; local
1324 off64_t moovBoxSize = 8 + mMoovBoxBufferOffset + bytes;
1339 ::write(mFd, ptr, bytes);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java660 final int bytes = verticesData.length * FLOAT_SIZE_BYTES;
661 final FloatBuffer triangleVertices = ByteBuffer.allocateDirect(bytes).order(
/frameworks/rs/
H A DrsContext.cpp879 // RsPlaybackRemoteHeader (cmdID and bytes)
883 uint32_t bytes; member in struct:android::renderscript::destroyCmd
889 cmd.bytes = sizeof(RsAsyncVoidPtr);
/frameworks/rs/rsov/driver/
H A DrsovScript.cpp71 void writeBytes(const char *filename, const char *bytes, size_t size) { argument
73 ofs.write(bytes, size);
272 // but dimLength is given in terms of bytes.
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiVendorHalTest.java1951 scanResult.bytes = new byte[57];
1952 scanResult.bytes[0] = ie1.id;
1953 System.arraycopy(ie1_data, 0, scanResult.bytes, 1, ie1_data.length);
1988 assertArrayEquals(expected.bytes, actual.bytes);
/frameworks/base/services/core/jni/
H A Dcom_android_server_location_GnssLocationProvider.cpp1401 jbyte* bytes = reinterpret_cast<jbyte *>(env->GetPrimitiveArrayCritical(data, 0)); local
1402 gnssXtraIface->injectXtraData(std::string((const char*)bytes, length));
1403 env->ReleasePrimitiveArrayCritical(data, bytes, JNI_ABORT);
/frameworks/native/cmds/installd/
H A Ddexopt.cpp900 ssize_t bytes = read(in_fd.get(), buffer, kBufferSize); local
901 if (bytes == 0) {
904 write(out_fd.get(), buffer, bytes);
998 // Note: the cache path will require an additional 5 bytes for ".swap", but we'll try to run
1000 // extension to the cache path (5 bytes).

Completed in 1286 milliseconds

1234567891011