Home
last modified time | relevance | path

Searched refs:toIntExact (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DAsset.java758 maxLen = toIntExact(mLength - mOffset); in read()
770 System.arraycopy(mMap.getDataPtr(), toIntExact(mOffset), buf, bufOffset, count); in read()
776 System.arraycopy(mBuf, toIntExact(mOffset), buf, bufOffset, count); in read()
891 allocLen = toIntExact(mLength); in getBuffer()
909 if (mFp.read(buf, 0, toIntExact(mLength)) != (int) mLength) { in getBuffer()
930 if (!map.create(null, -1, mStart, toIntExact(mLength), true)) { in getBuffer()
1248 maxLen = toIntExact(mUncompressedLen - mOffset);
1258 System.arraycopy(mBuf, toIntExact(mOffset), buf, bufOffset, count);
1381 static int toIntExact(long value) { in toIntExact() method in Asset
DZipFileRO.java3 import static org.robolectric.res.android.Asset.toIntExact;
277 actualLen = toIntExact(ze.getSize()); in createEntryFileMap()
279 actualLen = toIntExact(ze.getCompressedSize()); in createEntryFileMap()
DFileMap.java3 import static org.robolectric.res.android.Asset.toIntExact;
174 mDataLength = toIntExact(entry.getSize()); in createFromZip()
DCppAssetManager.java3 import static org.robolectric.res.android.Asset.toIntExact;
982 pAsset = Asset.createFromCompressedMap(dataMap, toIntExact(uncompressedLen.get()), mode); in openAssetFromZipLocked()