/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.cpp | 53 jfieldID size; member in struct:android::__anon941 204 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.size)); 242 uint32_t size = env->GetArrayLength(outValuesArray); local 243 if (minSize <= size) { 248 uint32_t size = 8; local 249 while (size < minSize) { 250 size *= 2; 252 outValuesArray = env->NewFloatArray(size); 266 env->SetFloatField(outPointerCoordsObj, gPointerCoordsClassInfo.size, 906 gPointerCoordsClassInfo.size [all...] |
H A D | android_view_PointerIcon.cpp | 96 jsize size = env->GetArrayLength(bitmapFramesObj.get()); local 97 outPointerIcon->bitmapFrames.resize(size); 98 for (jsize i = 0; i < size; ++i) {
|
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 40 jfieldID size; member in struct:android::__anon958 65 static jobjectArray get_string_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument 73 return env->NewObjectArray(size, gStringClass, NULL); 76 static jintArray get_int_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument 84 return env->NewIntArray(size); 87 static jlongArray get_long_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument 95 return env->NewLongArray(size); 165 if (limitIfaces.size() > 0) { 168 while (i < (int)limitIfaces.size()) { 174 if (i >= (int)limitIfaces.size()) { 227 int size = lines.size(); local [all...] |
H A D | com_google_android_gles_jni_GLImpl.cpp | 53 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride, 57 GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type, 59 GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type, 63 GL_API void GL_APIENTRY glMatrixIndexPointerOESBounds(GLint size, GLenum type, 65 GL_API void GL_APIENTRY glWeightPointerOESBounds(GLint size, GLenum type, 419 /* void glColorPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) */ 422 (JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jobject pointer_buf, jint remaining) { 435 (GLint)size, 3294 /* void glPointSize ( GLfloat size ) */ 3297 (JNIEnv *_env, jobject _this, jfloat size) { 421 android_glColorPointerBounds__IIILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jobject pointer_buf, jint remaining) argument 3296 android_glPointSize__F(JNIEnv *_env, jobject _this, jfloat size) argument 3305 android_glPointSizex__I(JNIEnv *_env, jobject _this, jint size) argument 3494 android_glTexCoordPointerBounds__IIILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jobject pointer_buf, jint remaining) argument 3912 android_glVertexPointerBounds__IIILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jobject pointer_buf, jint remaining) argument 4096 android_glBufferData__IILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) argument 4137 android_glBufferSubData__IIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint target, jint offset, jint size, jobject data_buf) argument 4360 android_glColorPointer__IIII(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jint offset) argument 6327 android_glTexCoordPointer__IIII(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jint offset) argument 6757 android_glVertexPointer__IIII(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jint offset) argument 7173 android_glMatrixIndexPointerOESBounds__IIILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jobject pointer_buf, jint remaining) argument 7197 android_glMatrixIndexPointerOES__IIII(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jint offset) argument 7209 android_glWeightPointerOESBounds__IIILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jobject pointer_buf, jint remaining) argument 7233 android_glWeightPointerOES__IIII(JNIEnv *_env, jobject _this, jint size, jint type, jint stride, jint offset) argument [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
H A D | BandwidthTestUtil.java | 76 * @param size in bytes of the file to download 81 public static String buildDownloadUrl(String server, int size, String deviceId, argument 83 String downloadUrl = server + "/download?size=" + size + "&device_id=" + deviceId +
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerBaseTest.java | 290 * @param size The size of the data to generate 295 protected byte[] generateData(int size, DataType type) { argument 296 return generateData(size, type, null); 302 * @param size The size of the data to generate 308 protected byte[] generateData(int size, DataType type, Random rng) { argument 317 byte[] result = new byte[size]; 318 Log.i(LOG_TAG, "Generating data of size: " + size); 336 verifyFileSize(ParcelFileDescriptor pfd, long size) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | AsecTests.java | 78 private int createContainer(String localId, int size, String key, String filesystem, argument 84 return ms.createSecureContainer(fullId, size, filesystem, key, android.os.Process.myUid(),
|
H A D | StorageManagerBaseTest.java | 526 * @param size The number of zero's expected in the file 530 protected void doValidateZeroLongFile(String path, String filename, long size, argument 539 for (long i = 0; i < size; ++i) { 549 Log.i(LOG_TAG, "File " + filename + " successfully verified for " + size + " zeros");
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | LabelView.java | 97 * Sets the text size for this label 98 * @param size Font size 100 public void setTextSize(int size) { argument 101 mTextPaint.setTextSize(size);
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 248 * Helper to verify the size of a file. 250 * @param pfd The input file to compare the size of 251 * @param size The expected size of the file 253 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument 254 assertEquals(pfd.getStatSize(), size); 470 * @throws Exception if timed out while waiting for the file to grow in size. 505 long size = response.getLong(index); 507 return size;
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
H A D | RemoteIntArray.java | 43 public RemoteIntArray(int size, boolean clientWritable) throws IOException, TimeoutException { argument 51 mRemoteInstance.create(size, clientWritable); 90 public int size() throws IOException { method in class:RemoteIntArray 92 return mRemoteInstance.size();
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 47 // Estimated size of the Bitmap native allocation, not including 209 * or lesser size. If the Bitmap's allocation isn't large enough to support 1059 * small size, 100 meaning compress for max quality. Some 1221 static public int scaleFromDensity(int size, int sdensity, int tdensity) { argument 1223 return size; 1227 return ((size * tdensity) + (sdensity >> 1)) / sdensity; 1262 * Returns the size of the allocated memory used to store this bitmap's pixels. 1265 * decode other bitmaps of smaller size, or by manual reconfiguration. See {@link 1278 // so alloc size is always content size [all...] |
/frameworks/base/graphics/java/android/graphics/pdf/ |
H A D | PdfEditor.java | 73 final long size; 76 size = Libcore.os.fstat(input.getFileDescriptor()).st_size; 82 mNativeDocument = nativeOpen(mInput.getFd(), size); 126 Point size = new Point(); 127 getPageSize(pageIndex, size); 129 0, 0, size.x, size.y); 137 * Gets the size of a given page in mils (1/72"). 140 * @param outSize The size output. 304 private static native long nativeOpen(int fd, long size); argument [all...] |
H A D | PdfRenderer.java | 93 * If document page size is greater than the printed media size the content should 148 final long size; 151 size = Libcore.os.fstat(input.getFileDescriptor()).st_size; 157 mNativeDocument = nativeCreate(mInput.getFd(), size); 185 * for printing and the target media size differs from the page 186 * size. 279 Point size = mTempPoint; 280 mNativePage = nativeOpenPageAndGetSize(mNativeDocument, index, size); 282 mWidth = size 428 nativeCreate(int fd, long size) argument [all...] |
/frameworks/base/include/androidfw/ |
H A D | BackupHelpers.h | 35 int dataSize; // size of the data, not including the padding, -1 means delete 49 int size; member in struct:android::FileState 83 status_t WriteEntityData(const void* data, size_t size); 117 ssize_t ReadEntityData(void* data, size_t size);
|
H A D | ByteBucketArray.h | 27 * Stores a sparsely populated array. Has a fixed size of 256 46 inline size_t size() const { function in class:android::ByteBucketArray 55 if (index >= size()) { 68 ALOG_ASSERT(index < size(), "ByteBucketArray.getOrCreate(index=%u) with size=%u", 69 (uint32_t) index, (uint32_t) size()); 80 if (index >= size()) {
|
H A D | CursorWindow.h | 46 * FieldSlot per column, which has the size, offset, and type of the data for that field. 53 void* data, size_t size, bool readOnly); 74 uint32_t size; member in struct:android::CursorWindow::FieldSlot::__anon968::__anon969 83 static status_t create(const String8& name, size_t size, CursorWindow** outCursorWindow); 89 inline size_t size() { return mSize; } function in class:android::CursorWindow 104 status_t putBlob(uint32_t row, uint32_t column, const void* value, size_t size); 130 *outSizeIncludingNull = fieldSlot->data.buffer.size; 135 *outSize = fieldSlot->data.buffer.size; 182 uint32_t alloc(size_t size, bool aligned = false); 188 const void* value, size_t size, int32_ [all...] |
H A D | ResourceTypes.h | 164 // Compute the size of the serialized data structure 205 // Total size of this chunk (in bytes). This is the chunkSize plus 206 // the size of any data associated with the chunk. Adding this value 210 uint32_t size; member in struct:android::ResChunk_header 263 uint16_t size; member in struct:android::Res_value 346 // TYPE_FRACTION: A basic fraction of the overall size. 348 // TYPE_FRACTION: A fraction of the parent size. 490 ResStringPool(const void* data, size_t size, bool copyData=false); 494 status_t setTo(const void* data, size_t size, bool copyData=false); 519 size_t size() cons 906 uint32_t size; member in struct:android::ResTable_config 1373 uint16_t size; member in struct:android::ResTable_entry [all...] |
/frameworks/base/keystore/tests/src/android/security/ |
H A D | KeyStoreTest.java | 830 private int importAesKey(String name, byte[] key, int size, int mode) { argument 837 args.addUnsignedInt(KeymasterDefs.KM_TAG_KEY_SIZE, size);
|
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 70 off64_t size = (cur->getLength()+512)/1024; local 72 sprintf(buf, ": %dK\n", (int)size); 337 // this was happening due to an off64_t size mismatch 594 ALOGV("Asset %p allocating buffer size %d (smaller than threshold)", this, (int)allocLen); 663 ALOGV("Copying FileAsset %p (%s) to buffer size %d to make it aligned.", this,
|
H A D | BackupData.cpp | 147 BackupDataWriter::WriteEntityData(const void* data, size_t size) argument 149 if (kIsDebug) ALOGD("Writing data: size=%lu", (unsigned long) size); 161 ssize_t amt = write(m_fd, data, size); 162 if (amt != (ssize_t)size) { 268 size_t size = m_header.entity.keyLen; local 269 char* buf = m_key.lockBuffer(size); 274 int amt = read(m_fd, buf, size+1); 275 CHECK_SIZE(amt, (int)size+1); 276 m_key.unlockBuffer(size); 333 ReadEntityData(void* data, size_t size) argument [all...] |
H A D | BackupHelpers.cpp | 148 // preflight size 149 const int N = snapshot.size(); 230 ALOGE("ERROR: metadata block is the wrong size!"); 278 ALOGE("write_update_file size mismatch for %s. expected=%d actual=%d." 366 r.s.size = st.st_size; 383 int N = oldSnapshot.size(); 385 int M = newSnapshot.size(); 407 LOGP(" old: modTime=%d,%d mode=%04o size=%-3d crc32=0x%08x", 408 f.modTime_sec, f.modTime_nsec, f.mode, f.size, f.crc32); 409 LOGP(" new: modTime=%d,%d mode=%04o size 474 send_tarfile_chunk(BackupDataWriter* writer, const char* buffer, size_t size) argument [all...] |
H A D | CursorWindow.cpp | 34 void* data, size_t size, bool readOnly) : 35 mName(name), mAshmemFd(ashmemFd), mData(data), mSize(size), mReadOnly(readOnly) { 44 status_t CursorWindow::create(const String8& name, size_t size, CursorWindow** outCursorWindow) { argument 49 int ashmemFd = ashmem_create_region(ashmemName.string(), size); 55 void* data = ::mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0); 62 data, size, false /*readOnly*/); 77 ::munmap(data, size); 93 ssize_t size = ashmem_get_size_region(ashmemFd); local 94 if (size < 0) { 101 void* data = ::mmap(NULL, size, PROT_REA 33 CursorWindow(const String8& name, int ashmemFd, void* data, size_t size, bool readOnly) argument 201 alloc(size_t size, bool aligned) argument 273 putBlob(uint32_t row, uint32_t column, const void* value, size_t size) argument 282 putBlobOrString(uint32_t row, uint32_t column, const void* value, size_t size, int32_t type) argument 298 memcpy(offsetToPtr(offset), value, size); local [all...] |
H A D | ResourceTypes.cpp | 112 const uint32_t size = dtohl(chunk->size); local 115 if (headerSize <= size) { 116 if (((headerSize|size)&0x3) == 0) { 117 if ((size_t)size <= (size_t)(dataEnd-((const uint8_t*)chunk))) { 120 ALOGW("%s data size 0x%x extends beyond resource end %p.", 121 name, size, (void*)(dataEnd-((const uint8_t*)chunk))); 124 ALOGW("%s size 0x%x or headerSize 0x%x is not on an integer boundary.", 125 name, (int)size, (int)headerSize); 128 ALOGW("%s size 230 assertIdmapHeader(const void* idmap, size_t size) argument 293 setTo(const void* entryHeader, size_t size) argument 354 parseIdmap(const void* idmap, size_t size, uint8_t* outPackageId, KeyedVector<uint8_t, IdmapEntries>* outMap) argument 425 ResStringPool(const void* data, size_t size, bool copyData) argument 452 setTo(const void* data, size_t size, bool copyData) argument 987 size_t ResStringPool::size() const function in class:android::ResStringPool 1567 setTo(const void* data, size_t size, bool copyData) argument 1615 const size_t size = dtohl(chunk->size); local 1695 const uint32_t size = dtohl(node->header.size); local 1761 const size_t size = dtohl(o.size); local 2774 assignLocaleComponent(ResTable_config* config, const char* start, size_t size) argument 2817 const size_t size = separator - start; local 2825 const size_t size = in + strlen(in) - start; local 3130 size_t size; member in struct:android::ResTable::Header 3643 ResTable(const void* data, size_t size, const int32_t cookie, bool copyData) argument 3668 add(const void* data, size_t size, const int32_t cookie, bool copyData) argument 3672 add(const void* data, size_t size, const void* idmapData, size_t idmapDataSize, const int32_t cookie, bool copyData, bool appAsLib) argument 4403 const size_t size = dtohs(map->value.size); local 7107 const size_t size = dtohs(mapPtr->value.size); local [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListOp.h | 66 static void* operator new(size_t size) = delete; /** PURPOSELY OMITTED **/ member in class:android::uirenderer::DisplayListOp 67 static void* operator new(size_t size, LinearAllocator& allocator) { argument 70 return allocator.alloc<char>(size); 146 for (unsigned int i = 0; i < ops.size(); i++) { 234 // NOTE: requires at least 1 vertex, and doesn't account for stroke size (should be handled in 637 TextureVertex vertices[6 * ops.size()]; 645 for (unsigned int i = 0; i < ops.size(); i++) { 669 renderer.drawBitmaps(mBitmap, mEntry, ops.size(), &vertices[0], 674 OP_LOG("Draw bitmap %p of size %dx%d%s", 812 for (unsigned int i = 0; i < ops.size(); [all...] |