Home
last modified time | relevance | path

Searched refs:resName (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/rs/java/android/renderscript/
DScriptC.java78 protected ScriptC(RenderScript rs, String resName, byte[] bitcode32, byte[] bitcode64) { in ScriptC() argument
82 id = internalStringCreate(rs, resName, bitcode32); in ScriptC()
84 id = internalStringCreate(rs, resName, bitcode64); in ScriptC()
121 String resName = resources.getResourceEntryName(resourceID); in internalCreate() local
124 return rs.nScriptCCreate(resName, RenderScript.getCachePath(), pgm, pgmLength); in internalCreate()
127 …private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitc… in internalStringCreate() argument
129 return rs.nScriptCCreate(resName, RenderScript.getCachePath(), bitcode, bitcode.length); in internalStringCreate()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptC.java79 protected ScriptC(RenderScript rs, String resName, byte[] bitcode32, byte[] bitcode64) { in ScriptC() argument
83 id = internalStringCreate(rs, resName, bitcode32); in ScriptC()
85 id = internalStringCreate(rs, resName, bitcode64); in ScriptC()
122 String resName = resources.getResourceEntryName(resourceID); in internalCreate() local
127 return rs.nScriptCCreate(resName, cachePath, pgm, pgmLength); in internalCreate()
130 …private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitc… in internalStringCreate() argument
133 return rs.nScriptCCreate(resName, cachePath, bitcode, bitcode.length); in internalStringCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DTilesStatesTextTest.kt37 val resName = "${QSTileViewImpl.TILE_STATE_RES_PREFIX}$spec" in <lambda>() constant
38 val resId = mContext.resources.getIdentifier(resName, "array", mContext.packageName) in <lambda>()
40 assertNotEquals("Missing resource for $resName", 0, resId) in <lambda>()
59 val resName = "${QSTileViewImpl.TILE_STATE_RES_PREFIX}$spec" in <lambda>() constant
60 val resId = mContext.resources.getIdentifier(resName, "array", mContext.packageName) in <lambda>()
62 assertNotEquals("Missing resource for $resName", 0, resId) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DFeatureFlagReader.java98 String resName = mResources.getResourceEntryName(resId); in resourceIdToFlagName() local
99 if (resName.startsWith(RESNAME_PREFIX)) { in resourceIdToFlagName()
100 resName = resName.substring(RESNAME_PREFIX.length()); in resourceIdToFlagName()
102 return resName; in resourceIdToFlagName()
/frameworks/rs/cpu_ref/
DrsCpuExecutable.cpp67 const char *resName, in findSharedObjectName() argument
81 scriptSOName.append(resName); in findSharedObjectName()
126 const char *resName, in createSharedLibrary() argument
129 std::string sharedLibName = findSharedObjectName(cacheDir, resName, reuse); in createSharedLibrary()
135 objFileName.append(resName); in createSharedLibrary()
196 const char *resName, in loadSharedLibrary() argument
202 std::string scriptSOName = findSharedObjectName(nativeLibDir, resName); in loadSharedLibrary()
204 std::string scriptSOName = findSharedObjectName(cacheDir, resName); in loadSharedLibrary()
209 loaded = loadSOHelper(scriptSOName.c_str(), cacheDir, resName, alreadyLoaded); in loadSharedLibrary()
222 scriptSONameApk.append(resName); in loadSharedLibrary()
[all …]
DrsCpuScript.cpp62 const char* cacheDir, const char* resName, in setCompileArguments() argument
66 rsAssert(cacheDir && resName && core_lib); in setCompileArguments()
77 args->push_back(resName); in setCompileArguments()
300 bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, in init() argument
328 bcFileName.append(resName); in init()
334 setCompileArguments(&compileArguments, bcFileName, cacheDir, resName, core_lib, in init()
376 mScriptSO = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName); in init()
391 ALOGE("bcc: FAILS to compile '%s'", resName); in init()
399 mCtx->getContext()->getDriverName(), cacheDir, resName, reuse, in init()
401 ALOGE("Linker: Failed to link object file '%s'", resName); in init()
[all …]
DrsCpuExecutable.h39 const char* resName,
52 static void* loadSharedLibrary(const char *cacheDir, const char *resName,
71 const char *resName, bool* alreadyLoaded = nullptr);
DrsCpuScriptGroup2.cpp439 const char* resName = mGroup->mName; in compile() local
448 resName, coreLibPath.c_str(), coreLibRelaxedPath.c_str(), in compile()
480 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName, nullptr, in compile()
504 cloneName.append(resName); in compile()
539 getCpuRefImpl()->getContext()->getDriverName(), cacheDir, resName, in compile()
541 ALOGE("Failed to link object file '%s'", resName); in compile()
549 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName); in compile()
554 ALOGE("Unable to load '%s'", resName); in compile()
Drsd_cpu.h128 virtual CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
DrsCpuScript.h42 bool init(char const *resName, char const *cacheDir,
DrsCpuCore.h174 CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt46 private var resName = "" variable
70 resName = savedInstanceState.getString("resName", "") in onCreate()
91 outState.putString("resName", resName) in onSaveInstanceState()
116 resName = newName in newPuzzle()
139 label.text = resName.replace(Regex("^.*/"), "") in checkVictory()
153 Log.v(TAG, "loading " + resName + " at " + q.width + "x" + q.height) in loadPuzzle()
157 icon = Icon.createWithResource(getPackageNameForResourceName(resName), resId) in loadPuzzle()
163 resName = "" in loadPuzzle()
/frameworks/rs/
DrsScriptC.cpp262 static bool dumpBitcodeFile(const char *cacheDir, const char *resName, in dumpBitcodeFile() argument
267 f.append(resName); in dumpBitcodeFile()
295 const char *resName, in runCompiler() argument
333 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLen)) { in runCompiler()
355 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { in runCompiler()
443 const char *resName, size_t resName_length, in rsi_ScriptCCreate() argument
449 if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) { in rsi_ScriptCCreate()
DrsScriptC.h58 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
Drs.spec475 param const char * resName
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DThemedIconDrawable.java159 String resName = mThemeData.mResources.getResourceName(mThemeData.mResID); in toByteArray() local
161 getExpectedBitmapSize(icon) + 3 + resName.length()); in toByteArray()
166 dos.writeUTF(resName); in toByteArray()
185 String resName = dis.readUTF(); in decode() local
187 .getIdentifier(resName, "drawable", context.getPackageName()); in decode()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
DExternalResources.java138 private <T> void put(ResName resName, TypedResource<T> value) { in put() argument
141 resourceIds.put(resName, id); in put()
/frameworks/rs/driver/
DrsdBcc.cpp39 char const *resName, in rsdScriptInit() argument
46 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode, in rsdScriptInit()
DrsdBcc.h24 char const *resName, char const *cacheDir,
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java765 String resName; in verifyPreloadConfig() local
767 resName = getResourceName(resourceId); in verifyPreloadConfig()
769 resName = "?"; in verifyPreloadConfig()
775 + " (" + resName + ") that varies with configuration!!"); in verifyPreloadConfig()
779 String resName; in verifyPreloadConfig() local
781 resName = getResourceName(resourceId); in verifyPreloadConfig()
783 resName = "?"; in verifyPreloadConfig()
787 + " (" + resName + ")"); in verifyPreloadConfig()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DExternalResources.java243 private <T> void put(ResName resName, TypedResource<T> value) { in put() argument
246 mResourceIds.put(resName, id); in put()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp7615 resource_name resName; in print() local
7616 if (this->getResourceName(resID, true, &resName)) { in print()
7619 if (resName.type8 != NULL) { in print()
7620 type8 = String8(resName.type8, resName.typeLen); in print()
7622 type8 = String8(resName.type, resName.typeLen); in print()
7624 if (resName.name8 != NULL) { in print()
7625 name8 = String8(resName.name8, resName.nameLen); in print()
7627 name8 = String8(resName.name, resName.nameLen); in print()
7631 CHAR16_TO_CSTR(resName.package, resName.packageLen), in print()
7702 resource_name resName; in print() local
[all …]
/frameworks/base/core/java/android/app/
DLoadedApk.java1191 @Override public URL getResource(String resName) { in getResource() argument
1193 return getParent().getResource(resName); in getResource()
1196 @Override public Enumeration<URL> getResources(String resName) throws IOException { in getResources() argument
1198 return getParent().getResources(resName); in getResources()
1201 @Override public InputStream getResourceAsStream(String resName) { in getResourceAsStream() argument
1203 return getParent().getResourceAsStream(resName); in getResourceAsStream()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp126 Maybe<ResourceName> resName = ResourceUtils::ToResourceName(actual_name); in Exists() local
127 if (!resName) { in Exists()
135 ResourceName actual_res_name(resName.value()); in Exists()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java3552 String resName = wallpaper.name.substring(4); in restoreNamedResourceLocked() local
3555 int colon = resName.indexOf(':'); in restoreNamedResourceLocked()
3557 pkg = resName.substring(0, colon); in restoreNamedResourceLocked()
3561 int slash = resName.lastIndexOf('/'); in restoreNamedResourceLocked()
3563 ident = resName.substring(slash+1); in restoreNamedResourceLocked()
3568 type = resName.substring(colon+1, slash); in restoreNamedResourceLocked()
3579 resId = r.getIdentifier(resName, null, null); in restoreNamedResourceLocked()
3602 Slog.v(TAG, "Restored wallpaper: " + resName); in restoreNamedResourceLocked()

12