/frameworks/av/media/mtp/ |
H A D | MtpServer.h | 81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, argument 83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) { 98 inline bool hasStorage() { return mStorages.size() > 0; } 115 uint64_t size, MtpObjectFormat format, int fd);
|
/frameworks/base/cmds/idmap/ |
H A D | create.cpp | 57 int write_idmap(int fd, const uint32_t *data, size_t size) argument 62 size_t bytesLeft = size; 64 ssize_t w = TEMP_FAILURE_RETRY(write(fd, data + size - bytesLeft, bytesLeft)); 152 uint32_t **data, size_t *size) 166 data, size); 181 size_t size; local 183 if (create_idmap(target_apk_path, overlay_apk_path, &data, &size) == -1) { 187 if (write_idmap(fd, data, size) == -1) { 151 create_idmap(const char *target_apk_path, const char *overlay_apk_path, uint32_t **data, size_t *size) argument
|
/frameworks/base/cmds/screencap/ |
H A D | screencap.cpp | 140 size_t size = 0; local 150 size = screenshot.getSize(); 163 size = w*h*bytespp; 164 mapsize = offset + size; 185 write(fd, streamData->data(), streamData->size());
|
/frameworks/base/core/java/android/app/backup/ |
H A D | FullBackup.java | 77 * @param size Number of bytes of data to copy from the socket to the file. At least 93 long size, int type, long mode, long mtime, File outFile) throws IOException { 118 final long origSize = size; 120 while (size > 0) { 121 int toRead = (size > buffer.length) ? buffer.length : (int)size; 124 Log.w(TAG, "Incomplete read: expected " + size + " but got " 125 + (origSize - size)); 140 size -= got; 92 restoreFile(ParcelFileDescriptor data, long size, int type, long mode, long mtime, File outFile) argument
|
/frameworks/base/core/java/android/content/ |
H A D | ContentValues.java | 39 * Creates an empty set of values using the default initial size 42 // Choosing a default size of 8 based on analysis of typical 48 * Creates an empty set of values using the given initial size 50 * @param size the initial size of the set of values 52 public ContentValues(int size) { argument 53 mValues = new HashMap<String, Object>(size, 1.0f); 202 public int size() { method in class:ContentValues 203 return mValues.size(); 469 public ContentValues[] newArray(int size) { [all...] |
/frameworks/base/core/java/android/database/ |
H A D | MatrixCursor.java | 117 * @throws IllegalArgumentException if {@code columnValues.size() != 138 "columnValues.size() > columnNames.length"); 146 "columnValues.size() < columnNames.length"); 155 int size = columnValues.size(); 156 if (size != columnCount) { 158 + columnCount + ", columnValues.size() = " + size); 163 for (int i = 0; i < size; i++) { 169 private void ensureCapacity(int size) { argument [all...] |
/frameworks/base/core/java/android/net/nsd/ |
H A D | DnsSdTxtRecord.java | 158 /* Gets the size in bytes */ 159 public int size() { method in class:DnsSdTxtRecord 321 public DnsSdTxtRecord[] newArray(int size) { 322 return new DnsSdTxtRecord[size];
|
/frameworks/base/core/java/android/text/ |
H A D | PackedIntVector.java | 64 * (row < 0 || row >= size()) or the column is out of range 70 if (((row | column) < 0) || (row >= size()) || (column >= columns)) { 95 * (row < 0 || row >= size()) or the column is out of range 99 if (((row | column) < 0) || (row >= size()) || (column >= mColumns)) { 142 * This may be == size(), which case there is no effect. 146 * (startRow < 0 || startRow > size()) or the column 150 if (((startRow | column) < 0) || (startRow > size()) || 167 * This may be == size(), which case the new row is added 173 * (row < 0 || row > size()) or if the length of the 177 if ((row < 0) || (row > size())) { 236 public int size() { method in class:PackedIntVector [all...] |
/frameworks/base/core/java/android/text/style/ |
H A D | TextAppearanceSpan.java | 29 * Sets the text color, size, style, and typeface to match a TextAppearance 110 * Makes text be drawn with the specified typeface, size, style, 113 public TextAppearanceSpan(String family, int style, int size, argument 117 mTextSize = size; 189 * Returns the text size specified by this span, or <code>-1</code>
|
/frameworks/base/core/java/android/util/ |
H A D | LongSparseArray.java | 43 * need to be performed at any time the array needs to be grown or the the map size or 217 public int size() { method in class:LongSparseArray 226 * Given an index in the range <code>0...size()-1</code>, returns 232 * smallest key and <code>keyAt(size()-1)</code> will return the largest 244 * Given an index in the range <code>0...size()-1</code>, returns 251 * smallest key and <code>valueAt(size()-1)</code> will return the value 264 * Given an index in the range <code>0...size()-1</code>, sets a new 352 if (size() <= 0) {
|
H A D | SparseArray.java | 43 * need to be performed at any time the array needs to be grown or the the map size or 157 * @param size Number of mappings to remove 159 public void removeAtRange(int index, int size) { argument 160 final int end = Math.min(mSize, index + size); 230 public int size() { method in class:SparseArray 239 * Given an index in the range <code>0...size()-1</code>, returns 245 * smallest key and <code>keyAt(size()-1)</code> will return the largest 257 * Given an index in the range <code>0...size()-1</code>, returns 264 * smallest key and <code>valueAt(size()-1)</code> will return the value 277 * Given an index in the range <code>0...size() [all...] |
/frameworks/base/core/java/com/android/internal/statusbar/ |
H A D | StatusBarIconList.java | 84 public StatusBarIconList[] newArray(int size) 86 return new StatusBarIconList[size]; 109 public int size() { method in class:StatusBarIconList
|
/frameworks/base/core/java/com/android/server/backup/ |
H A D | SystemBackupAgent.java | 144 public void onRestoreFile(ParcelFileDescriptor data, long size, argument 168 FullBackup.restoreFile(data, size, type, mode, mtime, outFile);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | MinikinSkia.cpp | 47 skPaint->setTextSize(paint.size); 81 bool MinikinFontSkia::GetTable(uint32_t tag, uint8_t *buf, size_t *size) { argument 84 *size = tableSize; 87 const size_t actualSize = mTypeface->getTableData(tag, 0, *size, buf); 88 *size = actualSize;
|
H A D | TypefaceImpl.cpp | 137 TypefaceImpl* TypefaceImpl_createFromFamilies(const jlong* families, size_t size) { argument 139 for (size_t i = 0; i < size; i++) { 145 if (size == 0) {
|
/frameworks/base/include/androidfw/ |
H A D | BackupHelpers.h | 33 int dataSize; // size of the data, not including the padding, -1 means delete 47 int size; member in struct:android::FileState 81 status_t WriteEntityData(const void* data, size_t size); 115 ssize_t ReadEntityData(void* data, size_t size);
|
/frameworks/base/libs/hwui/ |
H A D | LayerCache.cpp | 37 INIT_LOGD(" Setting layer cache size to %sMB", property); 40 INIT_LOGD(" Using default layer cache size of %.2fMB", DEFAULT_LAYER_CACHE_SIZE); 53 return mCache.size(); 92 size_t count = mCache.size(); 137 size_t size = mCache.size(); local 138 for (size_t i = 0; i < size; i++) { 140 LAYER_LOGD(" Layer size %dx%d", entry.mWidth, entry.mHeight); 147 const uint32_t size = layer->getWidth() * layer->getHeight() * 4; local 149 if (size < mMaxSiz [all...] |
H A D | RenderBufferCache.cpp | 46 INIT_LOGD(" Setting render buffer cache size to %sMB", property); 49 INIT_LOGD(" Using default render buffer cache size of %.2fMB", 103 size_t count = mCache.size(); 141 const uint32_t size = buffer->getSize(); local 142 if (size < mMaxSize) { 143 while (mSize + size > mMaxSize) { 154 mSize += size;
|
H A D | TextDropShadowCache.cpp | 102 INIT_LOGD(" Setting drop shadow cache size to %sMB", property); 105 INIT_LOGD(" Using default drop shadow cache size of %.2fMB", 155 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize); 196 const uint32_t size = shadow.width * shadow.height; local 197 texture->bitmapSize = size; 200 if (size < mMaxSize) { 201 while (mSize + size > mMaxSize) { 218 if (size < mMaxSize) { 220 ALOGD("Shadow texture created, size = %d", texture->bitmapSize); 225 mSize += size; [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaHTTPConnection.cpp | 135 JNIEnv *env, jobject thiz, jlong offset, jint size) { 138 if (size > JMediaHTTPConnection::kBufferSize) { 139 size = JMediaHTTPConnection::kBufferSize; 145 thiz, gFields.readAtMethodID, offset, byteArrayObj, size); 134 android_media_MediaHTTPConnection_native_readAt( JNIEnv *env, jobject thiz, jlong offset, jint size) argument
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | VertexFrame.java | 37 throw new IllegalArgumentException("Initializing vertex frame with zero size!"); 92 throw new RuntimeException("Data size in setData does not match vertex frame size!"); 132 private native boolean nativeAllocate(int size); argument
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 221 void setLocaleData(byte[] data, int size) { argument 231 String localeCode = new String(data, 0, size).replace('_', '-');
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSDualTileLabel.java | 129 public void setTextSize(int unit, float size) { argument 130 mFirstLine.setTextSize(unit, size); 131 mSecondLine.setTextSize(unit, size);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 41 * Compute the sample size as a function of minSideLength 45 * maxNumOfPixels is used to specify the maximal size in pixels that is 48 * The function returns a sample size based on the constraints. 49 * Both size and minSideLength can be passed in as UNCONSTRAINED, 51 * The functions prefers returning a sample size that 54 * Also, the function rounds up the sample size to a power of 2 or multiple 55 * of 8 because BitmapFactory only honors sample size this way. 57 * request is 3. So we round up the sample size to avoid OOM. 85 // This computes a sample size which makes the longer side at least 149 public static Bitmap resizeAndCropCenter(Bitmap bitmap, int size, boolea argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DisplayListLayersActivity.java | 78 private int dipToPx(int size) { argument 79 return (int) (getResources().getDisplayMetrics().density * size + 0.5f);
|