Home | History | Annotate | Download | only in res

Lines Matching defs:cookie

341      * Returns a cookie for use with the other APIs of AssetManager.
342 * @return 0 if the path was not found, otherwise a positive integer cookie representing
465 final int cookie = nativeGetResourceValue(
467 if (cookie <= 0) {
476 outValue.string = mApkAssets[cookie - 1].getStringFromPool(outValue.data);
511 final int cookie = nativeGetResourceBagValue(mObject, resId, bagEntryId, outValue);
512 if (cookie <= 0) {
521 return mApkAssets[cookie - 1].getStringFromPool(outValue.data);
541 * with the indices of the data representing the type, value, asset cookie,
596 int cookie = rawInfoArray[i];
598 retArray[j] = (index >= 0 && cookie > 0)
599 ? mApkAssets[cookie - 1].getStringFromPool(index) : null;
644 final int cookie = nativeThemeGetAttributeValue(mObject, theme, resId, outValue,
646 if (cookie <= 0) {
655 outValue.string = mApkAssets[cookie - 1].getStringFromPool(outValue.data);
705 CharSequence getPooledStringForCookie(int cookie, int id) {
707 return getApkAssets()[cookie - 1].getStringFromPool(id);
835 * @param cookie Identifier of the package to be opened.
839 public @NonNull InputStream openNonAsset(int cookie, @NonNull String fileName)
841 return openNonAsset(cookie, fileName, ACCESS_STREAMING);
847 * @param cookie Identifier of the package to be opened.
852 public @NonNull InputStream openNonAsset(int cookie, @NonNull String fileName, int accessMode)
857 final long asset = nativeOpenNonAsset(mObject, cookie, fileName, accessMode);
888 * @param cookie Identifier of the package to be opened.
891 public @NonNull AssetFileDescriptor openNonAssetFd(int cookie, @NonNull String fileName)
897 nativeOpenNonAssetFd(mObject, cookie, fileName, mOffsets);
918 * @param cookie Identifier of the package to be opened.
921 public @NonNull XmlResourceParser openXmlResourceParser(int cookie, @NonNull String fileName)
923 try (XmlBlock block = openXmlBlockAsset(cookie, fileName)) {
949 * @param cookie Identifier of the package to be opened.
953 @NonNull XmlBlock openXmlBlockAsset(int cookie, @NonNull String fileName) throws IOException {
957 final long xmlBlock = nativeOpenXmlAsset(mObject, cookie, fileName);
1299 private static native long nativeOpenNonAsset(long ptr, int cookie, @NonNull String fileName,
1301 private static native @Nullable ParcelFileDescriptor nativeOpenNonAssetFd(long ptr, int cookie,
1303 private static native long nativeOpenXmlAsset(long ptr, int cookie, @NonNull String fileName);