/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/opt/net/voip/src/jni/rtp/ |
H A D | AmrCodec.cpp | 102 unsigned char *bytes = (unsigned char *)payload; local 106 samples, bytes + 1, &type, AMR_TX_WMF); 113 bytes[0] = 0xF0; 114 bytes[1] = (mMode << 3) | 0x04; 118 bytes[0] = 0xFF; 119 bytes[1] = 0xC0 | (mMode << 1) | 1; 122 bytes[length + 1] = 0; 124 bytes[i] = (bytes[i] << 6) | (bytes[ 133 unsigned char *bytes = (unsigned char *)payload; local 226 unsigned char *bytes = (unsigned char *)payload; local 244 unsigned char *bytes = (unsigned char *)payload; local [all...] |
/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...] |
/frameworks/rs/ |
H A D | rsStream.h | 87 void align(uint32_t bytes) { argument 88 mPos = (mPos + (bytes - 1)) & (~(bytes - 1));
|
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 193 uint8_t *data, size_t bytes) { 198 int32_t stopFrame = startFrame + bytes / sizeof(int16_t); 324 // Convert number of frames lost to number of bytes lost. 333 ALOGW("Lost audio record data: %zu bytes", numLostBytes); 191 rampVolume( int32_t startFrame, int32_t rampDurationFrames, uint8_t *data, size_t bytes) argument
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
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/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/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/speech/tts/ |
H A D | BlockingAudioTrack.java | 56 * A "short utterance" is one that uses less bytes than the audio 191 private static int writeToAudioTrack(AudioTrack audioTrack, byte[] bytes) { argument 198 while (count < bytes.length) { 201 int written = audioTrack.write(bytes, count, bytes.length);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | LoggingPrintStream.java | 41 * A buffer that is initialized when raw bytes are first written to this 42 * stream. It may contain the leading bytes of multi-byte characters. 49 * A buffer that is initialized when raw bytes are first written to this 56 * Decodes bytes to characters using the system default charset. Initialized 57 * when raw bytes are first written to this stream. 120 public synchronized void write(byte bytes[], int start, int count) { argument 131 // copy some bytes from the array to the long-lived buffer. This 134 encodedBytes.put(bytes, start, numBytes); 140 // decode bytes from the byte buffer into the char buffer
|
/frameworks/base/core/jni/ |
H A D | android_emoji_EmojiFactory.cpp | 163 const char *bytes = factory->GetImageBinaryFromAndroidPua(pua, &size); local 164 if (bytes == NULL) { 168 return decodeBitmap(env, (void*)bytes, size);
|
H A D | android_hardware_UsbDeviceConnection.cpp | 98 jbyte* bytes = (jbyte*)env->GetPrimitiveArrayCritical(ret, 0); local 99 if (bytes) { 100 memcpy(bytes, buffer, length); 101 env->ReleasePrimitiveArrayCritical(ret, bytes, 0);
|
H A D | android_util_EventLog.cpp | 229 jbyte *bytes = env->GetByteArrayElements(array, NULL); local 230 memcpy(bytes, log_msg.buf, len); 231 env->ReleaseByteArrayElements(array, bytes, 0);
|
/frameworks/base/keystore/java/android/security/ |
H A D | Credentials.java | 144 public static List<X509Certificate> convertFromPem(byte[] bytes) argument 146 ByteArrayInputStream bai = new ByteArrayInputStream(bytes);
|
H A D | KeyChain.java | 153 * encoded bytes with {@link X509Certificate#getEncoded}. 164 * install. The extra value should be a {@code byte[]}. The bytes 202 * #EXTRA_PKCS12} maybe used to specify the bytes of an X.509 476 public static X509Certificate toCertificate(@NonNull byte[] bytes) { argument 477 if (bytes == null) { 478 throw new IllegalArgumentException("bytes == null"); 482 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes));
|
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreSpi.java | 214 private static X509Certificate toCertificate(byte[] bytes) { argument 218 new ByteArrayInputStream(bytes)); 226 private static Collection<X509Certificate> toCertificates(byte[] bytes) { argument 230 new ByteArrayInputStream(bytes));
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_frame.cpp | 119 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 120 if (bytes) { 121 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), length); 122 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
|
H A D | jni_native_frame.cpp | 60 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 61 if (bytes) { 62 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), 65 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT); 207 ALOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample); 259 ALOGE("Unsupported bytes-per-pixel %d in getBitmap!", bytes_per_sample);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | IntentTile.java | 172 public BytesIcon(byte[] bytes) { argument 173 mBytes = bytes;
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
H A D | IntegralToString.java | 465 public static String bytesToHexString(byte[] bytes, boolean upperCase) { argument 467 char[] buf = new char[bytes.length * 2]; 469 for (byte b : bytes) {
|
/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/base/media/jni/ |
H A D | android_media_MediaScanner.cpp | 62 static bool isValidUtf8(const char* bytes) { argument 63 while (*bytes != '\0') { 64 unsigned char utf8 = *(bytes++); 75 // Bit pattern 0xxx. No need for any extra bytes. 83 * Bit pattern 10xx or 1111, which are illegal start bytes. 89 // Bit pattern 1110, so there are two additional bytes. 90 utf8 = *(bytes++); 98 utf8 = *(bytes++);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Frame.java | 111 public void setData(byte[] bytes, int offset, int length) { argument 112 setData(ByteBuffer.wrap(bytes, offset, length));
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | PackageManagerBackupAgent.java | 351 private static void writeEntity(BackupDataOutput data, String key, byte[] bytes) argument 353 data.writeEntityHeader(key, bytes.length); 354 data.writeEntityData(bytes, bytes.length); 480 // if the blocks are all 256 bits (32 bytes) then we take them to be SHA-256 hashes;
|