/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_vertex_frame.cpp | 76 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 77 if (bytes) { 78 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), 80 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 237 int bytes; 240 bytes = Os.read(fd, buf, 0, buf.length); 241 if (bytes > 0) { 243 String s = new String(buf, 0, bytes, "UTF-8"); 244 Slog.v(TAG, "READ=" + bytes + "> " + s); 247 if (buf[bytes-1] == 0) { 248 os.write(buf, 0, bytes-1); // exclude the EOD token 252 os.write(buf, 0, bytes); 254 } while (bytes > 0);
|
/frameworks/av/include/media/stagefright/ |
H A D | MediaWriter.h | 41 virtual void setMaxFileSize(int64_t bytes) { mMaxFileSizeLimitBytes = bytes; } argument
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
H A D | SoftFlacEncoder.h | 81 size_t bytes, unsigned samples, unsigned current_frame, void *client_data); 85 size_t bytes, unsigned samples, unsigned current_frame);
|
H A D | SoftFlacEncoder.cpp | 250 ALOGE("Input buffer size must be at most %d bytes", 354 size_t bytes, unsigned samples, 357 ALOGV("SoftFlacEncoder::onEncodedFlacAvailable(bytes=%zu, samples=%u, curr_frame=%u)", 358 bytes, samples, current_frame); 362 ALOGI(" saving %zu bytes of header", bytes); 363 memcpy(mHeader + mHeaderOffset, buffer, bytes); 364 mHeaderOffset += bytes;// will contain header size when finished receiving header 373 ALOGV("ignoring %zu bytes of header data (samples=%d)", bytes, sample 352 onEncodedFlacAvailable( const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame) argument 452 flacEncoderWriteCallback( const FLAC__StreamEncoder * , const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | DataUsageDetailView.java | 66 final long bytes; 73 bytes = info.usageLevel; 79 bytes = info.limitLevel - info.usageLevel; 87 bytes = info.usageLevel - info.limitLevel; 98 usage.setText(formatBytes(bytes)); 114 private String formatBytes(long bytes) { argument 115 final long b = Math.abs(bytes); 128 return FORMAT.format(val * (bytes < 0 ? -1 : 1)) + " " + suffix;
|
/frameworks/rs/ |
H A D | rsThreadIO.h | 73 uint32_t bytes; member in struct:android::renderscript::ThreadIO::CoreCmdHeaderRec 77 uint32_t bytes; member in struct:android::renderscript::ThreadIO::ClientCmdHeaderRec
|
H A D | rsStream.h | 87 void align(uint32_t bytes) { argument 88 mPos = (mPos + (bytes - 1)) & (~(bytes - 1));
|
/frameworks/base/core/tests/coretests/src/android/net/netlink/ |
H A D | RtNetlinkNeighborMessageTest.java | 248 final byte[] bytes = RtNetlinkNeighborMessage.newNewNeighborMessage( 250 if (!Arrays.equals(expectedNewNeigh, bytes)) { 251 assertEquals(expectedNewNeigh.length, bytes.length); 252 for (int i = 0; i < Math.min(expectedNewNeigh.length, bytes.length); i++) { 253 assertEquals(expectedNewNeigh[i], bytes[i]);
|
/frameworks/base/core/java/android/net/netlink/ |
H A D | RtNetlinkNeighborMessage.java | 124 final byte[] bytes = new byte[length]; 125 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); 138 return bytes; 161 final byte[] bytes = new byte[msg.getRequiredSpace()]; 162 nlmsghdr.nlmsg_len = bytes.length; 163 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); 166 return bytes;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ByteArrayHelpers.java | 205 byte[] bytes = new byte[byteBuffer.limit()]; 206 byteBuffer.get(bytes); 208 if (VERBOSE) Log.v(TAG, "toByteArray - output: " + Arrays.toString(bytes)); 210 return bytes;
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequenceJNI.cpp | 50 jbyte* bytes = reinterpret_cast<jbyte*>(env->GetPrimitiveArrayCritical(byteArray, NULL)); local 51 if (bytes == NULL) { 53 "couldn't read array bytes"); 56 MemoryStream stream(bytes + offset, length, NULL); 58 env->ReleasePrimitiveArrayCritical(byteArray, bytes, 0);
|
/frameworks/av/services/audioflinger/ |
H A D | SpdifStreamOut.cpp | 117 ssize_t SpdifStreamOut::writeDataBurst(const void* buffer, size_t bytes) argument 119 return AudioStreamOut::write(buffer, bytes);
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | FormatterTest.java | 97 private void checkFormatBytes(long bytes, boolean useShort, argument 99 BytesResult r = Formatter.formatBytes(getContext().getResources(), bytes,
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | BaseObj.java | 97 byte[] bytes = name.getBytes("UTF-8"); 98 mRS.nAssignName(mID, bytes);
|
/frameworks/base/core/java/android/net/http/ |
H A D | SslCertificate.java | 124 byte[] bytes = bundle.getByteArray(X509_CERTIFICATE); 125 if (bytes == null) { 130 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); 270 byte[] bytes = x509Certificate.getEncoded(); 272 byte[] digest = md.digest(bytes); 281 private static final String fingerprint(byte[] bytes) { argument 282 if (bytes == null) { 286 for (int i = 0; i < bytes.length; i++) { 287 byte b = bytes[i]; 289 if (i+1 != bytes [all...] |
/frameworks/base/core/java/android/bluetooth/le/ |
H A D | ScanRecord.java | 69 // Raw bytes of scan record. 144 * Returns raw bytes of scan record. 154 String localName, byte[] bytes) { 161 mBytes = bytes; 165 * Parse scan record bytes to {@link ScanRecord}. 228 // The first two bytes of the service data are service data UUID in little 229 // endian. The rest bytes are service data. 240 // The first two bytes of the manufacturer specific data are 263 // and return an empty record with raw scanRecord bytes in results 289 // Helper method to extract bytes fro 150 ScanRecord(List<ParcelUuid> serviceUuids, SparseArray<byte[]> manufacturerData, Map<ParcelUuid, byte[]> serviceData, int advertiseFlags, int txPowerLevel, String localName, byte[] bytes) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | LoggingPrintStreamTest.java | 129 // assume 3*1000 bytes won't fit in LoggingPrintStream's internal buffer 132 builder.append("\u20AC"); // a Euro character; 3 bytes in UTF-8 159 byte[] bytes = expected.getBytes(); 161 while (i < bytes.length - 5) { 162 out.write(bytes, i, 5); 165 out.write(bytes, i, bytes.length - i);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewHierarchyEncoder.java | 191 byte[] bytes = s.getBytes(mCharset); 193 short len = (short)Math.min(bytes.length, Short.MAX_VALUE); 196 mStream.write(bytes, 0, len);
|
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
H A D | BandwidthEnforcementTestService.java | 199 final byte[] bytes = phrase.getBytes("US-ASCII"); 200 out.write(bytes.length); 201 out.write(bytes);
|
/frameworks/base/tests/SerialChat/src/com/android/serialchat/ |
H A D | SerialChat.java | 110 byte[] bytes = text.getBytes(); 112 mOutputBuffer.put(bytes); 113 mSerialPort.write(mOutputBuffer, bytes.length);
|
/frameworks/native/include/binder/ |
H A D | TextOutput.h | 106 inline HexDump& setSingleLineCutoff(int32_t bytes); 175 inline HexDump& HexDump::setSingleLineCutoff(int32_t bytes) { argument 176 mSingleLineCutoff = bytes; return *this;
|
/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
H A D | ImageRequestTest.java | 153 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); 157 bytes.write(buffer, 0, count); 160 return bytes.toByteArray();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | IccUtils.java | 149 * shall be left justified. Unused bytes shall be set to 'FF'; or 307 * @param bytes an array of bytes 309 * @return hex string representation of bytes array 312 bytesToHexString(byte[] bytes) { argument 313 if (bytes == null) return null; 315 StringBuilder ret = new StringBuilder(2*bytes.length); 317 for (int i = 0 ; i < bytes.length ; i++) { 320 b = 0x0f & (bytes[i] >> 4); 324 b = 0x0f & bytes[ [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | IccUtils.java | 149 * shall be left justified. Unused bytes shall be set to 'FF'; or 307 * @param bytes an array of bytes 309 * @return hex string representation of bytes array 312 bytesToHexString(byte[] bytes) { argument 313 if (bytes == null) return null; 315 StringBuilder ret = new StringBuilder(2*bytes.length); 317 for (int i = 0 ; i < bytes.length ; i++) { 320 b = 0x0f & (bytes[i] >> 4); 324 b = 0x0f & bytes[ [all...] |