Searched defs:dataSize (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/cmds/backup/
H A Dbackup.cpp78 size_t dataSize; local
79 err = reader.ReadEntityHeader(&key, &dataSize);
81 printf(" entity: %s (%d bytes)\n", key.string(), dataSize);
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java41 int dataSize; field in class:BackupDataInputStream
114 return this.dataSize;
H A DBackupDataOutput.java44 * existing record's key, but supplying a negative <code>dataSize</code> parameter.
80 * @param dataSize The size in bytes of this record's data. Passing a dataSize
85 public int writeEntityHeader(String key, int dataSize) throws IOException { argument
86 int result = writeEntityHeader_native(mBackupWriter, key, dataSize);
127 private native static int writeEntityHeader_native(int mBackupWriter, String key, int dataSize); argument
H A DBackupDataInput.java44 * int dataSize = data.getDataSize();
48 * byte[] buffer = new byte[dataSize];
49 * data.readEntityData(buffer, 0, dataSize); // reads the entire entity at once
69 int dataSize; field in class:BackupDataInput.EntityHeader
138 return mHeader.dataSize;
/frameworks/base/core/jni/
H A Dandroid_message_digest_sha1.cpp70 jsize dataSize; local
88 dataSize = env->GetArrayLength(dataArray);
90 SHA1_Update(context, data, dataSize);
H A Dandroid_security_Md5MessageDigest.cpp52 jsize dataSize; local
67 dataSize = env->GetArrayLength(dataArray);
69 MD5_Update(context, data, dataSize);
H A Dandroid_backup_BackupDataOutput.cpp50 writeEntityHeader_native(JNIEnv* env, jobject clazz, int w, jstring key, int dataSize) argument
60 err = writer->WriteEntityHeader(String8(keyUTF), dataSize);
H A Dandroid_backup_BackupDataInput.cpp76 size_t dataSize; local
77 err = reader->ReadEntityHeader(&key, &dataSize);
84 env->SetIntField(entity, s_dataSizeField, dataSize);
156 s_dataSizeField = env->GetFieldID(clazz, "dataSize", "I");
158 "Unable to find dataSize field in android.app.backup.BackupDataInput.EntityHeader");
H A Dandroid_backup_BackupHelperDispatcher.cpp36 int dataSize; // corresponds to Header.chunkSize member in struct:android::chunk_header_v1
94 LOGD(" dataSize=%d", flattenedHeader.dataSize);
98 if (flattenedHeader.dataSize < 0 || flattenedHeader.nameLength < 0 ||
100 LOGW("Malformed V1 header remainingHeader=%d dataSize=%d nameLength=%d", remainingHeader,
101 flattenedHeader.dataSize, flattenedHeader.nameLength);
122 env->SetIntField(headerObj, s_chunkSizeField, flattenedHeader.dataSize);
193 header.dataSize = prevPos - (pos + header.headerSize);
/frameworks/base/core/java/android/content/pm/
H A DPackageStats.java31 public long dataSize; field in class:PackageStats
58 dataSize = source.readLong();
65 dataSize = pStats.dataSize;
76 dest.writeLong(dataSize);
/frameworks/base/media/libstagefright/id3/
H A Dtestid3.cpp99 size_t dataSize; local
101 const void *data = tag.getAlbumArt(&dataSize, &mime);
104 printf("found album art: size=%d mime='%s'\n", dataSize,
107 hexdump(data, dataSize > 128 ? 128 : dataSize);
/frameworks/base/include/utils/
H A DBackupHelpers.h33 int dataSize; // size of the data, not including the padding, -1 means delete member in struct:android::__anon117
72 status_t WriteEntityHeader(const String8& key, size_t dataSize);
105 status_t ReadEntityHeader(String8* key, size_t* dataSize);
/frameworks/base/graphics/java/android/renderscript/
H A DAllocation.java79 private void data1DChecks(int off, int count, int len, int dataSize) { argument
84 if((len) < dataSize) {
90 int dataSize = mType.mElement.getSizeBytes() * count;
91 data1DChecks(off, count, d.length * 4, dataSize);
92 mRS.nAllocationSubData1D(mID, off, count, d, dataSize);
95 int dataSize = mType.mElement.getSizeBytes() * count;
96 data1DChecks(off, count, d.length * 2, dataSize);
97 mRS.nAllocationSubData1D(mID, off, count, d, dataSize);
100 int dataSize = mType.mElement.getSizeBytes() * count;
101 data1DChecks(off, count, d.length, dataSize);
[all...]
/frameworks/base/libs/utils/
H A DBackupData.cpp89 BackupDataWriter::WriteEntityHeader(const String8& key, size_t dataSize) argument
111 LOGD("Writing entity: prefix='%s' key='%s' dataSize=%d", m_keyPrefix.string(), key.string(),
112 dataSize);
122 header.dataSize = tolel(dataSize);
256 m_header.entity.dataSize = fromlel(m_header.entity.dataSize);
271 m_dataEndPos = m_pos + m_header.entity.dataSize;
290 BackupDataReader::ReadEntityHeader(String8* key, size_t* dataSize) argument
299 *dataSize
[all...]
H A DBackupHelpers.cpp462 size_t dataSize; local
472 err = in->ReadEntityHeader(&key, &dataSize);
956 fprintf(stderr, "ReadEntityHeader expected dataSize 0x%08x got 0x%08x\n", bufSize,
/frameworks/base/media/libstagefright/
H A DStagefrightMetadataRetriever.cpp350 size_t dataSize; local
351 if (meta->findData(kKeyAlbumArt, &type, &data, &dataSize)) {
353 mAlbumArt->mSize = dataSize;
354 mAlbumArt->mData = new uint8_t[dataSize];
355 memcpy(mAlbumArt->mData, data, dataSize);
H A DMP3Extractor.cpp746 size_t dataSize; local
748 const void *data = id3.getAlbumArt(&dataSize, &mime);
751 meta->setData(kKeyAlbumArt, MetaData::TYPE_NONE, data, dataSize);
/frameworks/base/libs/binder/
H A DIPCThreadState.cpp405 if (mIn.dataPosition() >= mIn.dataSize()) {
711 const bool needRead = mIn.dataPosition() >= mIn.dataSize();
716 const size_t outAvail = (!doReceive || needRead) ? mOut.dataSize() : 0;
751 alog << "About to read/write, write size = " << mOut.dataSize() << endl;
762 alog << "Finished read/write, write size = " << mOut.dataSize() << endl;
768 << bwr.write_consumed << " (of " << mOut.dataSize()
774 if (bwr.write_consumed < (ssize_t)mOut.dataSize())
785 alog << "Remaining data size: " << mOut.dataSize() << endl;
788 const void* end = mIn.data() + mIn.dataSize();
789 alog << HexDump(cmds, mIn.dataSize()) << end
1056 freeBuffer(Parcel* parcel, const uint8_t* data, size_t dataSize, const size_t* objects, size_t objectsSize, void* cookie) argument
[all...]
H A DParcel.cpp289 size_t Parcel::dataSize() const function in class:android::Parcel
302 return dataSize() - dataPosition();
1109 void Parcel::ipcSetDataReference(const uint8_t* data, size_t dataSize, argument
1115 mDataSize = mDataCapacity = dataSize;
1134 } else if (dataSize() > 0) {
1136 to << indent << HexDump(DATA, dataSize()) << dedent;
/frameworks/base/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp167 void assertDataSize(int32_t msgType, OP op, int dataSize);
214 void MCameraClient::assertDataSize(int32_t msgType, OP op, int dataSize) { argument
217 ASSERT(test(op, v, dataSize));
234 int dataSize = data->size(); local
235 INFO("data type = %d, size = %d", msgType, dataSize);
240 mDataSize.add(msgType, dataSize);
243 mDataSize.editValueAt(i) = dataSize;
/frameworks/base/core/java/android/os/
H A DParcel.java275 public final native int dataSize(); method in class:Parcel
279 * parcel. That is, {@link #dataSize}-{@link #dataPosition}.
285 * more than {@link #dataSize}.
291 * >= {@link #dataSize}. The difference between it and dataSize() is the
309 * {@link #dataSize}.
317 * less than {@link #dataSize} -- that is, you can not drop existing data

Completed in 702 milliseconds