Home
last modified time | relevance | path

Searched refs:byteCount (Results 1 – 19 of 19) sorted by relevance

/aosp14/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java69 public int read(byte[] buffer, int offset, int byteCount) throws IOException { in read() argument
75 ArrayUtils.throwsIfOutOfBounds(arrayLength, offset, byteCount); in read()
77 if (mOffset > Long.MAX_VALUE - byteCount) { in read()
78 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount); in read()
81 if (mOffset + byteCount > mEnd) { in read()
82 byteCount = (int) (mEnd - mOffset); in read()
85 final int numRead = super.read(buffer, offset, byteCount); in read()
/aosp14/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) { in writeAllBytes() argument
31 size_t remainingBytes = byteCount; in writeAllBytes()
45 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) { in readAllBytes() argument
47 size_t remainingBytes = byteCount; in readAllBytes()
62 byteCount); in readAllBytes()
118 size_t byteCount = readInfo.stride * readInfo.height; in readBitmapPixels() local
119 read = readAllBytes(fd, (void*) pixels, byteCount); in readBitmapPixels()
157 size_t byteCount = info.stride * info.height; in writeBitmapPixels() local
158 written = writeAllBytes(fd, (void*) pixels, byteCount); in writeBitmapPixels()
/aosp14/frameworks/base/core/java/android/util/jar/
H A DStrictJarFile.java352 int r = super.read(buffer, byteOffset, byteCount); in read()
384 public long skip(long byteCount) throws IOException { in skip() argument
385 return Streams.skipByReading(this, byteCount); in skip()
403 i = super.read(buffer, byteOffset, byteCount); in read()
468 if (byteCount > length) { in read()
469 byteCount = (int) length; in read()
486 @Override public long skip(long byteCount) throws IOException { in skip() argument
487 if (byteCount > endOffset - offset) { in skip()
488 byteCount = endOffset - offset; in skip()
490 offset += byteCount; in skip()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DSizedInputStream.java49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { in read() argument
52 } else if (byteCount > mLength) { in read()
53 byteCount = (int) mLength; in read()
56 final int n = mWrapped.read(buffer, byteOffset, byteCount); in read()
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DNativeFrame.java177 int byteCount = rgbaBitmap.getByteCount(); in setBitmap() local
179 if (!setNativeBitmap(rgbaBitmap, byteCount, bps)) { in setBitmap()
193 int byteCount = result.getByteCount(); in getBitmap() local
195 if (!getNativeBitmap(result, byteCount, bps)) { in getBitmap()
244 private native byte[] getNativeData(int byteCount); in getNativeData() argument
252 private native int[] getNativeInts(int byteCount); in getNativeInts() argument
254 private native float[] getNativeFloats(int byteCount); in getNativeFloats() argument
/aosp14/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp58 ssize_t byteCount; in ReadFile() local
59 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { in ReadFile()
60 s.append(bytes, byteCount); in ReadFile()
H A Dandroid_hardware_camera2_CameraMetadata.cpp364 jsize byteCount = entry.count * tagSize; in CameraMetadata_readValues() local
365 jbyteArray byteArray = env->NewByteArray(byteCount); in CameraMetadata_readValues()
370 memcpy(arrayWriter.get(), entry.data.u8, byteCount); in CameraMetadata_readValues()
/aosp14/frameworks/base/core/java/android/os/
H A DFileBridge.java182 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { in write() argument
183 ArrayUtils.throwsIfOutOfBounds(buffer.length, byteOffset, byteCount); in write()
185 Memory.pokeInt(mTemp, 4, byteCount, ByteOrder.BIG_ENDIAN); in write()
187 IoBridge.write(mClient, buffer, byteOffset, byteCount); in write()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/
H A DZipFilePerfTest.java89 int byteCount = (int) Math.min(writeBuffer.length, entrySize - i); in writeEntries() local
90 out.write(writeBuffer, 0, byteCount); in writeEntries()
H A DZipFileReadPerfTest.java78 int byteCount = (int) Math.min(writeBuffer.length, entrySize - i); in writeEntries() local
79 out.write(writeBuffer, 0, byteCount); in writeEntries()
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DSmsMessage.java1079 String getUserDataGSM8bit(int byteCount) { in getUserDataGSM8bit() argument
1082 ret = GsmAlphabet.gsm8BitUnpackedToString(mPdu, mCur, byteCount); in getUserDataGSM8bit()
1084 mCur += byteCount; in getUserDataGSM8bit()
1097 String getUserDataUCS2(int byteCount) { in getUserDataUCS2() argument
1101 ret = new String(mPdu, mCur, byteCount, "utf-16"); in getUserDataUCS2()
1107 mCur += byteCount; in getUserDataUCS2()
1118 String getUserDataKSC5601(int byteCount) { in getUserDataKSC5601() argument
1122 ret = new String(mPdu, mCur, byteCount, "KSC5601"); in getUserDataKSC5601()
1128 mCur += byteCount; in getUserDataKSC5601()
/aosp14/frameworks/base/opengl/java/android/opengl/
H A DGLLogWrapper.java932 boolean convertWholeBuffer = (byteCount < 0); in toByteBuffer()
937 byteCount = input2.limit() - position; in toByteBuffer()
940 for (int i = 0; i < byteCount; i++) { in toByteBuffer()
948 byteCount = (input2.limit() - position) * 2; in toByteBuffer()
952 for (int i = 0; i < byteCount / 2; i++) { in toByteBuffer()
960 byteCount = (input2.limit() - position)* 2; in toByteBuffer()
964 for (int i = 0; i < byteCount / 2; i++) { in toByteBuffer()
976 for (int i = 0; i < byteCount / 4; i++) { in toByteBuffer()
988 for (int i = 0; i < byteCount / 4; i++) { in toByteBuffer()
1000 for (int i = 0; i < byteCount / 8; i++) { in toByteBuffer()
[all …]
/aosp14/frameworks/base/libs/hwui/jni/pdf/
H A DPdfEditor.cpp69 static bool writeAllBytes(const int fd, const void* buffer, const size_t byteCount) { in writeAllBytes() argument
71 size_t remainingBytes = byteCount; in writeAllBytes()
/aosp14/frameworks/base/media/java/android/media/
H A DExifInterface.java4077 long byteCount = 0; in readImageFileDirectory() local
4089 if (byteCount < 0 || byteCount > Integer.MAX_VALUE) { in readImageFileDirectory()
4105 if (byteCount > 4) { in readImageFileDirectory()
4138 if (offset + byteCount <= dataInputStream.mLength) { in readImageFileDirectory()
4210 final byte[] bytes = new byte[(int) byteCount]; in readImageFileDirectory()
4945 public void seek(long byteCount) throws IOException { in seek() argument
4946 if (mPosition > byteCount) { in seek()
4952 byteCount -= mPosition; in seek()
4955 if (skipBytes((int) byteCount) != (int) byteCount) { in seek()
5081 public int skipBytes(int byteCount) throws IOException { in skipBytes() argument
[all …]
/aosp14/frameworks/base/telephony/common/com/android/internal/telephony/
H A DGsmAlphabet.java411 int byteCount = ((septetCount * 7) + 7) / 8; in stringToGsm7BitPacked() local
412 byte[] ret = new byte[byteCount + 1]; // Include space for one byte length prefix. in stringToGsm7BitPacked()
/aosp14/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java1414 int byteCount = readInt(data, pos); in readString() local
1415 if (byteCount == NULL_SIZE) { in readString()
1419 int stringStart = pos.getAndAdd(byteCount); in readString()
1420 return new String(data, stringStart, byteCount); in readString()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/
H A DImageLoaderTest.kt198 bitmap.byteCount * 2
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DVectorDrawable.java1984 int byteCount = TOTAL_PROPERTY_COUNT * 4; in updateStateFromTypedArray() local
1988 mPropertyData = new byte[byteCount]; in updateStateFromTypedArray()
1993 boolean success = nGetFullPathProperties(mNativePtr, mPropertyData, byteCount); in updateStateFromTypedArray()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...