Searched defs:size (Results 401 - 425 of 1111) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/util/
H A DIntArray.java35 private IntArray(int[] array, int size) { argument
37 mSize = Preconditions.checkArgumentInRange(size, 0, array.length, "size");
69 public static IntArray fromArray(int[] array, int size) { argument
70 return wrap(Arrays.copyOf(array, size));
74 * Changes the size of this IntArray. If this IntArray is shrinked, the backing array capacity
75 * is unchanged. If the new size is larger than backing array capacity, a new backing array is
99 * @throws IndexOutOfBoundsException when index &lt; 0 || index &gt; size()
125 * {@link #size()} if all elements in the array are less than the specified key.
216 public int size() { method in class:IntArray
[all...]
H A DLongArray.java39 private LongArray(long[] array, int size) { argument
41 mSize = Preconditions.checkArgumentInRange(size, 0, array.length, "size");
73 public static LongArray fromArray(long[] array, int size) { argument
74 return wrap(Arrays.copyOf(array, size));
78 * Changes the size of this LongArray. If this LongArray is shrinked, the backing array capacity
79 * is unchanged. If the new size is larger than backing array capacity, a new backing array is
103 * @throws IndexOutOfBoundsException when index &lt; 0 || index &gt; size()
207 public int size() { method in class:LongArray
H A DLongSparseArray.java43 * 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
382 if (size() <= 0) {
H A DMemoryIntArray.java64 * @param size The size of the array in terms of integer slots. Cannot be
68 public MemoryIntArray(int size) throws IOException { argument
69 if (size > MAX_SIZE) {
70 throw new IllegalArgumentException("Max size is " + MAX_SIZE);
74 mFd = nativeCreate(name, size);
128 * Gets the array size.
132 public int size() throws IOException { method in class:MemoryIntArray
214 final int size = size();
227 nativeCreate(String name, int size) argument
[all...]
H A DSparseArray.java43 * need to be performed at any time the array needs to be grown or the the map size or
164 * <p>For indices outside of the range <code>0...size()-1</code>,
178 * @param size Number of mappings to remove
180 * <p>For indices outside of the range <code>0...size()-1</code>,
183 public void removeAtRange(int index, int size) { argument
184 final int end = Math.min(mSize, index + size);
254 public int size() { method in class:SparseArray
263 * Given an index in the range <code>0...size()-1</code>, returns
269 * smallest key and <code>keyAt(size()-1)</code> will return the largest
272 * <p>For indices outside of the range <code>0...size()
[all...]
H A DSparseBooleanArray.java123 * For indices outside of the range {@code 0...size()-1}, the behavior is undefined.
154 public int size() { method in class:SparseBooleanArray
159 * Given an index in the range <code>0...size()-1</code>, returns
165 * smallest key and <code>keyAt(size()-1)</code> will return the largest
173 * Given an index in the range <code>0...size()-1</code>, returns
180 * smallest key and <code>valueAt(size()-1)</code> will return the value
286 if (size() <= 0) {
/frameworks/base/core/java/com/android/internal/midi/
H A DEventScheduler.java58 int size() { method in class:EventScheduler.FastEventQueue
124 if (mEventPool != null && (mEventPool.size() > 1)) {
140 } else if (mEventPool.size() < mMaxPoolSize) {
174 if ((list.size() == 1)) {
/frameworks/base/core/java/com/android/internal/util/
H A DCollectionUtils.java53 for (int i = 0; i < size(list); i++) {
67 if (set == null || set.size() == 0) return Collections.emptySet();
71 int size = arraySet.size();
72 for (int i = 0; i < size; i++) {
91 for (int i = 0; i < size(source); i++) {
103 * The resulting list will have the same {@link #size} as the input one.
112 for (int i = 0; i < cur.size(); i++) {
127 int size = arraySet.size();
188 public static int size(@Nullable Collection<?> cur) { method in class:CollectionUtils
[all...]
H A DProgressReporter.java160 public int[] startSegment(int size) { argument
163 mSegmentRange = new int[] { mProgress, (size * mSegmentRange[1] / 100) };
/frameworks/base/core/java/com/android/server/backup/
H A DSystemBackupAgent.java130 public void onRestoreFile(ParcelFileDescriptor data, long size, argument
154 FullBackup.restoreFile(data, size, type, mode, mtime, outFile);
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp84 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { argument
88 if (0 == size) {
99 off64_t newOffset = fAsset->seek(size, SEEK_CUR);
101 SkDebugf("---- fAsset->seek(%d) failed\n", size);
106 amount = fAsset->read(buffer, size);
126 const off64_t size = asset->getLength(); local
127 if (size <= 0) {
128 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size);
132 sk_sp<SkData> data(SkData::MakeUninitialized(size));
133 const off64_t len = asset->read(data->writable_data(), size);
[all...]
/frameworks/base/core/jni/
H A Dcom_android_internal_os_FuseAppLoop.cpp84 void OnRead(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size) override {
85 CHECK_LE(size, static_cast<uint32_t>(fuse::kFuseMaxRead));
90 CallOnCommand(FUSE_READ, unique, inode, offset, size, it->second->get());
93 void OnWrite(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size,
95 CHECK_LE(size, static_cast<uint32_t>(fuse::kFuseMaxWrite));
102 mEnv->SetByteArrayRegion(javaBuffer, 0, size, static_cast<const jbyte*>(buffer));
105 CallOnCommand(FUSE_WRITE, unique, inode, offset, size, javaBuffer);
109 // Helper function to make sure we invoke CallVoidMethod with correct size of integer arguments.
110 void CallOnCommand(jint command, jlong unique, jlong inode, jlong offset, jint size, argument
112 mEnv->CallVoidMethod(mSelf, gOnCommandMethod, command, unique, inode, offset, size, byte
144 com_android_internal_os_FuseAppLoop_replyLookup( JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) argument
151 com_android_internal_os_FuseAppLoop_replyGetAttr( JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) argument
159 com_android_internal_os_FuseAppLoop_replyWrite( JNIEnv* env, jobject self, jlong ptr, jlong unique, jint size) argument
166 com_android_internal_os_FuseAppLoop_replyRead( JNIEnv* env, jobject self, jlong ptr, jlong unique, jint size, jbyteArray data) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DMessagingLinearLayoutTest.java168 private int clampToMultiplesOfLineHeight(int size) { argument
169 if (size <= LINE_HEIGHT) {
170 return size;
172 return (size / LINE_HEIGHT) * LINE_HEIGHT;
/frameworks/base/libs/androidfw/include/androidfw/
H A DBackupHelpers.h35 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);
/frameworks/base/libs/hwui/
H A DInterpolator.cpp106 size_t endIndex = mX.size() - 1;
130 LUTInterpolator::LUTInterpolator(float* values, size_t size) : mValues(values), mSize(size) {} argument
150 " i1=%d, i2=%d, input=%f, lutpos=%f, size=%zu, values=%p, ipart=%f, weight=%f",
H A DPatchCache.cpp103 size_t count = mGarbage.size();
120 size_t count = mGarbage.size();
133 for (size_t i = 0; i < patchesToRemove.size(); i++) {
149 if (patchesToRemove.size() > 0) {
173 uint32_t size = newMesh->getSize(); local
174 if (mSize + size > mMaxSize) {
184 if (block->size >= size) {
204 mRenderState.meshState().updateMeshBufferSubData(mMeshBuffer, newMesh->positionOffset, size,
208 if (block->size
[all...]
/frameworks/base/libs/hwui/hwui/
H A DBitmap.h127 size_t size; member in struct:android::Bitmap::__anon1016::__anon1018
131 size_t size; member in struct:android::Bitmap::__anon1016::__anon1019
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.cpp58 explicit TestWindowData(SkISize size) : mSize(size) { argument
/frameworks/base/libs/services/src/os/
H A DDropBoxManager.cpp182 entry.mData.assign(text.c_str(), text.c_str() + text.size());
188 size_t size, int flags)
191 entry.mData.assign(data, data+size);
187 addData(const String16& tag, uint8_t const* data, size_t size, int flags) argument
/frameworks/base/media/java/android/media/
H A DMedia2HTTPConnection.java262 // returned but the size of the full content if available.
309 public int readAt(long offset, byte[] data, int size) { argument
320 int n = mInputStream.read(data, 0, size);
331 Log.d(TAG, "readAt " + offset + " / " + size + " => " + n);
336 Log.w(TAG, "readAt " + offset + " / " + size + " => " + e);
339 Log.w(TAG, "readAt " + offset + " / " + size + " => " + e);
342 Log.w(TAG, "readAt " + offset + " / " + size + " => " + e);
346 Log.d(TAG, "readAt " + offset + " / " + size + " => -1");
352 Log.d(TAG, "readAt " + offset + " / " + size + " => -1");
/frameworks/base/media/jni/
H A Dandroid_media_MediaHTTPConnection.cpp135 JNIEnv *env, jobject thiz, jlong offset, jint size) {
137 if (size > JMediaHTTPConnection::kBufferSize) {
138 size = JMediaHTTPConnection::kBufferSize;
144 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 DVertexFrame.java37 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/SystemUI/src/com/android/systemui/qs/
H A DQSDualTileLabel.java129 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 DBitmapUtils.java40 * Compute the sample size as a function of minSideLength
44 * maxNumOfPixels is used to specify the maximal size in pixels that is
47 * The function returns a sample size based on the constraints.
48 * Both size and minSideLength can be passed in as UNCONSTRAINED,
50 * The functions prefers returning a sample size that
53 * Also, the function rounds up the sample size to a power of 2 or multiple
54 * of 8 because BitmapFactory only honors sample size this way.
56 * request is 3. So we round up the sample size to avoid OOM.
84 // This computes a sample size which makes the longer side at least
148 public static Bitmap resizeAndCropCenter(Bitmap bitmap, int size, boolea argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DCarUserSwitchingDialog.java67 // Custom view due to alignment and font size requirements
105 public CircleFramedDrawable(Bitmap icon, int size) { argument
107 mSize = size;

Completed in 289 milliseconds

<<11121314151617181920>>