/frameworks/base/core/java/android/service/persistentdata/ |
H A D | PersistentDataBlockManager.java | 32 * Interface for reading and writing data blocks to a persistent partition. 36 * is called, it will overwite the data that was previously written on the block. 82 * Writes {@code data} to the persistent partition. Previously written data 83 * will be overwritten. This data will persist across factory resets. 91 * @param data the data to write 94 public int write(byte[] data) { argument 96 return sService.write(data); 103 * Returns the data bloc [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodSubtypeArray.java | 35 * <li>Applying compression for the marshalled data</li> 37 * <li>Caching the marshalled data when appropriate</li> 79 * <p>This methods may take a bit additional time to compress data lazily when called 102 Slog.i(TAG, "Failed to compress data."); 125 * <p>This methods may take a bit additional time to decompress data lazily when called 141 // Clear the compressed data until {@link #getMarshalled()} is called. 147 Slog.e(TAG, "Failed to decompress data. Returns null as fallback."); 185 private static InputMethodSubtype[] unmarshall(final byte[] data) { argument 189 parcel.unmarshall(data, 0, data 200 compress(final byte[] data) argument 212 decompress(final byte[] data, final int expectedSize) argument [all...] |
/frameworks/base/core/java/com/android/internal/midi/ |
H A D | MidiEventScheduler.java | 55 public byte[] data; field in class:MidiEventScheduler.MidiEvent 59 data = new byte[count]; 64 data = new byte[count]; 65 System.arraycopy(msg, offset, data, 0, count); 73 text += data[i] + ", "; 92 System.arraycopy(msg, offset, event.data, 0, count); 109 if (midiEvent.data.length == POOL_EVENT_SIZE) {
|
/frameworks/base/core/jni/ |
H A D | android_backup_BackupDataInput.cpp | 94 readEntityData_native(JNIEnv* env, jobject clazz, jlong r, jbyteArray data, jint offset, jint size) argument 99 if (env->GetArrayLength(data) < (size+offset)) { 104 jbyte* dataBytes = env->GetByteArrayElements(data, NULL); 111 env->ReleaseByteArrayElements(data, dataBytes, 0);
|
H A D | android_backup_BackupDataOutput.cpp | 63 writeEntityData_native(JNIEnv* env, jobject clazz, jlong w, jbyteArray data, jint size) argument 68 if (env->GetArrayLength(data) < size) { 73 jbyte* dataBytes = env->GetByteArrayElements(data, NULL); 80 env->ReleaseByteArrayElements(data, dataBytes, JNI_ABORT);
|
H A D | android_nio_utils.cpp | 36 void *data; local 49 data = _env->GetPrimitiveArrayCritical(*array, (jboolean *) 0); 51 return (void *) ((char *) data + offset); 55 void android::nio_releasePointer(JNIEnv *_env, jarray array, void *data, argument 57 _env->ReleasePrimitiveArrayCritical(array, data,
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | SubActivityScreen.java | 109 Intent data) { 131 } else if (data == null) { 133 "null data returned")); 134 } else if (!("test".equals(data.getAction()))) { 136 "Incorrect action returned: " + data)); 137 } else if (!("tval".equals(data.getStringExtra("tkey")))) { 139 "Incorrect extras returned: " + data.getExtras())); 108 onActivityResult(int requestCode, int resultCode, Intent data) argument
|
/frameworks/base/drm/java/android/drm/ |
H A D | DrmInfo.java | 46 * @param data The trigger data. 49 public DrmInfo(int infoType, byte[] data, String mimeType) { argument 52 mData = data; 56 "data: " + Arrays.toString(data); 66 * @param path The trigger data. 83 "data: " + Arrays.toString(mData); 133 * Retrieves the trigger data associated with this object. 135 * @return The trigger data [all...] |
H A D | DrmUtils.java | 48 byte[] data = null; 53 data = new byte[length]; 54 // read the entire data 55 bufferedStream.read(data); 61 return data; 64 /* package */ static void writeToFile(final String path, byte[] data) throws IOException { argument 68 if (null != path && null != data) { 71 outputStream.write(data);
|
/frameworks/base/libs/androidfw/ |
H A D | Idmap.cpp | 68 static bool is_word_aligned(const void* data) { argument 69 return (reinterpret_cast<uintptr_t>(data) & 0x03) == 0; 72 static bool IsValidIdmapHeader(const StringPiece& data) { argument 73 if (!is_word_aligned(data.data())) { 78 if (data.size() < sizeof(Idmap_header)) { 83 const Idmap_header* header = reinterpret_cast<const Idmap_header*>(data.data()); 124 const Idmap_header* header = reinterpret_cast<const Idmap_header*>(idmap_data.data()); 129 const uint8_t* data_ptr = reinterpret_cast<const uint8_t*>(idmap_data.data()) [all...] |
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | Chunk.h | 35 // that handle endianness conversions and provide access to the data portion 87 ChunkIterator(const void* data, size_t len) argument 88 : next_chunk_(reinterpret_cast<const ResChunk_header*>(data)), 91 CHECK(next_chunk_ != nullptr) << "data can't be nullptr";
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | ShaderCache.cpp | 82 size_t valueSize = bc->get(key.data(), keySize, valueBuffer, mObservedBlobValueSize); 92 valueSize = bc->get(key.data(), keySize, valueBuffer, mObservedBlobValueSize); 107 void ShaderCache::store(const SkData& key, const SkData& data) { argument 115 size_t valueSize = data.size(); 122 const void* value = data.data(); 125 bc->set(key.data(), keySize, value, valueSize);
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | MeshState.cpp | 68 ALOGD("MeshState vertices: vertex data %p, stride %d", mCurrentPositionPointer, 70 ALOGD("MeshState texCoord: data %p, stride %d", mCurrentTexCoordsPointer, 92 void MeshState::genOrUpdateMeshBuffer(GLuint* buffer, GLsizeiptr size, const void* data, argument 98 glBufferData(GL_ARRAY_BUFFER, size, data, usage); 102 const void* data) { 104 glBufferSubData(GL_ARRAY_BUFFER, offset, size, data); 101 updateMeshBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data) argument
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | TypefaceTests.cpp | 50 void* data = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0); local 52 SkData::MakeWithProc(data, st.st_size, unmap, reinterpret_cast<void*>(st.st_size)); 58 std::move(typeface), data, st.st_size, 0, std::vector<minikin::FontVariation>());
|
/frameworks/base/media/java/android/media/ |
H A D | MiniThumbFile.java | 38 * 4 bytes data length (LEN) 39 * LEN bytes jpeg data 151 // check the mini thumb file for the right data. Right is 233 // Log.v(TAG, "No data file"); 237 public synchronized void saveMiniThumbToFile(byte[] data, long id, long magic) argument 245 if (data != null) { 246 if (data.length > BYTES_PER_MINTHUMB - HEADER_SIZE) { 253 mBuffer.putInt(data.length); 254 mBuffer.put(data); 261 Log.e(TAG, "couldn't save mini thumbnail data fo 285 getMiniThumbFromFile(long id, byte [] data) argument [all...] |
H A D | SRTRenderer.java | 84 protected void onData(SubtitleData data) { argument 87 cue.mStartTimeMs = data.getStartTimeUs() / 1000; 88 cue.mEndTimeMs = (data.getStartTimeUs() + data.getDurationUs()) / 1000; 91 paragraph = new String(data.getData(), "UTF-8"); 105 Log.w(TAG, "subtitle data is not UTF-8 encoded: " + e); 110 public void onData(byte[] data, boolean eos, long runID) { argument 113 Reader r = new InputStreamReader(new ByteArrayInputStream(data), "UTF-8"); 150 Log.w(TAG, "subtitle data is not UTF-8 encoded: " + e);
|
/frameworks/base/media/jni/ |
H A D | android_media_Media2HTTPConnection.cpp | 122 ssize_t JMedia2HTTPConnection::readAt(off64_t offset, void *data, size_t size) { argument 137 (jbyte *)data);
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | vec_types.h | 26 T data[dim]; member in class:android::filterfw::VecBase 29 memcpy(data, x.data, sizeof(T)*dim); 34 return data[i]; 38 return data[i]; 43 sum += static_cast<double> (data[i] * data[i]); 53 memcpy(this->data, x.data, sizeof(T)*dim); 62 out.data[ 140 float data[3]; member in class:android::filterfw::Vec 156 float data[4]; member in class:android::filterfw::Vec [all...] |
/frameworks/base/native/android/ |
H A D | looper.cpp | 79 ALooper_callbackFunc callback, void* data) { 80 return ALooper_to_Looper(looper)->addFd(fd, ident, events, callback, data); 78 ALooper_addFd(ALooper* looper, int fd, int ident, int events, ALooper_callbackFunc callback, void* data) argument
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | ETC1Util.java | 76 Buffer data = texture.getData(); 78 int imageSize = data.remaining(); 80 border, imageSize, data); 87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride); 117 public ETC1Texture(int width, int height, ByteBuffer data) { argument 120 mData = data; 136 * Get the compressed data of the texture. 137 * @return the texture data. 174 throw new IOException("Unable to read PKM file data."); 185 * @param input a native order direct buffer containing the image data [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Double2.java | 31 public Double2(Double2 data) { argument 32 this.x = data.x; 33 this.y = data.y; 378 * @param data 381 public void copyTo(double[] data, int offset) { argument 382 data[offset] = x; 383 data[offset + 1] = y;
|
H A D | Double3.java | 31 public Double3(Double3 data) { argument 32 this.x = data.x; 33 this.y = data.y; 34 this.z = data.z; 409 * @param data 412 public void copyTo(double[] data, int offset) { argument 413 data[offset] = x; 414 data[offset + 1] = y; 415 data[offset + 2] = z;
|
H A D | Float2.java | 30 public Float2(Float2 data) { argument 31 this.x = data.x; 32 this.y = data.y; 377 * @param data 380 public void copyTo(float[] data, int offset) { argument 381 data[offset] = x; 382 data[offset + 1] = y;
|
H A D | Float3.java | 31 public Float3(Float3 data) { argument 32 this.x = data.x; 33 this.y = data.y; 34 this.z = data.z; 409 * @param data 412 public void copyTo(float[] data, int offset) { argument 413 data[offset] = x; 414 data[offset + 1] = y; 415 data[offset + 2] = z;
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | PasswordUtils.java | 76 public static String byteArrayToHex(byte[] data) { argument 77 StringBuilder buf = new StringBuilder(data.length * 2); 78 for (int i = 0; i < data.length; i++) { 79 buf.append(Byte.toHexString(data[i], true));
|