Searched refs:resName (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/
H A DIdmap_test.cpp103 ResTable::resource_name resName; local
104 ASSERT_TRUE(mTargetTable.getResourceName(base::R::array::integerArray1, false, &resName));
106 ASSERT_TRUE(resName.package != NULL);
107 ASSERT_TRUE(resName.type != NULL);
108 ASSERT_TRUE(resName.name != NULL);
110 EXPECT_EQ(String16("com.android.test.basic"), String16(resName.package, resName.packageLen));
111 EXPECT_EQ(String16("array"), String16(resName.type, resName.typeLen));
112 EXPECT_EQ(String16("integerArray1"), String16(resName
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DScriptC.java73 protected ScriptC(RenderScript rs, String resName, byte[] bitcode32, byte[] bitcode64) { argument
77 id = internalStringCreate(rs, resName, bitcode32);
79 id = internalStringCreate(rs, resName, bitcode64);
123 String resName = resources.getResourceEntryName(resourceID);
131 // Log.v(TAG, "Create script for resource = " + resName);
132 return rs.nScriptCCreate(resName, mCachePath, pgm, pgmLength);
135 private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitcode) { argument
142 // Log.v(TAG, "Create script for resource = " + resName);
143 return rs.nScriptCCreate(resName, mCachePath, bitcode, bitcode.length);
H A DRenderScript.java800 native long rsnScriptCCreate(long con, String resName, String cacheDir, argument
802 synchronized long nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { argument
804 return rsnScriptCCreate(mContext, resName, cacheDir, script, length);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptC.java70 * @param resName
74 protected ScriptC(RenderScript rs, String resName, byte[] bitcode32, byte[] bitcode64) { argument
78 id = internalStringCreate(rs, resName, bitcode32);
80 id = internalStringCreate(rs, resName, bitcode64);
117 String resName = resources.getResourceEntryName(resourceID);
120 // Log.v(TAG, "Create script for resource = " + resName + ", " + pgmLength + ", " + pgm);
122 return rs.nScriptCCreate(resName, cachePath, pgm, pgmLength);
125 private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitcode) { argument
126 // Log.v(TAG, "Create script for resource = " + resName);
128 return rs.nScriptCCreate(resName, cachePat
[all...]
H A DRenderScript.java729 native long rsnScriptCCreate(long con, String resName, String cacheDir, argument
731 synchronized long nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { argument
733 return rsnScriptCCreate(mContext, resName, cacheDir, script, length);
/frameworks/rs/
H A DrsScriptC.cpp263 static bool dumpBitcodeFile(const char *cacheDir, const char *resName, argument
268 f.append(resName);
297 const char *resName,
302 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen);
341 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLen)) {
359 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) {
447 const char *resName, size_t resName_length,
453 if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) {
296 runCompiler(Context *rsc, const char *resName, const char *cacheDir, const uint8_t *bitcode, size_t bitcodeLen) argument
446 rsi_ScriptCCreate(Context *rsc, const char *resName, size_t resName_length, const char *cacheDir, size_t cacheDir_length, const char *text, size_t text_length) argument
H A DrsScriptC.h58 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
H A Drs.spec455 param const char * resName
/frameworks/rs/cpu_ref/
H A DrsCpuExecutable.cpp61 const char *resName) {
79 scriptSOName.append(resName);
94 const char *resName) {
95 std::string sharedLibName = findSharedObjectName(cacheDir, resName);
98 objFileName.append(resName);
132 const char *resName,
138 std::string scriptSOName = findSharedObjectName(nativeLibDir, resName);
140 std::string scriptSOName = findSharedObjectName(cacheDir, resName);
145 loaded = loadSOHelper(scriptSOName.c_str(), cacheDir, resName, alreadyLoaded);
158 scriptSONameSystem.append(resName);
60 findSharedObjectName(const char *cacheDir, const char *resName) argument
92 createSharedLibrary(const char *driverName, const char *cacheDir, const char *resName) argument
131 loadSharedLibrary(const char *cacheDir, const char *resName, const char *nativeLibDir, bool* alreadyLoaded) argument
192 loadSOHelper(const char *origName, const char *cacheDir, const char *resName, bool *alreadyLoaded) argument
[all...]
H A DrsCpuExecutable.h34 const char* resName);
37 // Load the shared library referred to by cacheDir and resName. If we have
45 static void* loadSharedLibrary(const char *cacheDir, const char *resName,
57 const char *resName, bool* alreadyLoaded = nullptr);
H A DrsCpuScript.cpp81 const char* cacheDir, const char* resName,
85 rsAssert(cacheDir && resName && core_lib);
96 args->push_back(resName);
303 bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, argument
306 //ALOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir,
346 bcFileName.append(resName);
352 setCompileArguments(&compileArguments, bcFileName, cacheDir, resName, core_lib,
392 mScriptSO = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName);
407 ALOGE("bcc: FAILS to compile '%s'", resName);
413 cacheDir, resName)) {
79 setCompileArguments(std::vector<const char*>* args, const std::string& bcFileName, const char* cacheDir, const char* resName, const char* core_lib, bool useRSDebugContext, const char* bccPluginName, bool emitGlobalInfo, bool emitGlobalInfoSkipConstant) argument
[all...]
H A DrsCpuScriptGroup2.cpp370 const char* resName = mGroup->mName; local
379 resName, coreLibPath.c_str(), coreLibRelaxedPath.c_str(),
407 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName, nullptr,
410 // A shared library named resName is found in code cache directory
430 cloneName.append(resName);
463 getCpuRefImpl()->getContext()->getDriverName(), cacheDir, resName)) {
464 ALOGE("Failed to link object file '%s'", resName);
471 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName);
473 ALOGE("Unable to load '%s'", resName);
H A DrsCpuCore.h94 CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
H A DrsCpuScript.h57 bool init(char const *resName, char const *cacheDir,
H A Drsd_cpu.h138 virtual CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
H A DrsCpuCore.cpp568 char const *resName, char const *cacheDir,
573 if (!i->init(resName, cacheDir, bitcode, bitcodeSize, flags
567 createScript(const ScriptC *s, char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) argument
/frameworks/rs/driver/
H A DrsdBcc.cpp40 char const *resName,
47 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode,
38 rsdScriptInit(const Context *rsc, ScriptC *script, char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) argument
H A DrsdBcc.h24 char const *resName, char const *cacheDir,
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java415 public Integer getId(ResourceType resType, String resName) { argument
416 return Bridge.getResourceId(resType, resName);
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp6411 resource_name resName; local
6412 if (!this->getResourceName(resID, false, &resName)) {
6419 const String16 overlayType(resName.type, resName.typeLen);
6420 const String16 overlayName(resName.name, resName.nameLen);
6731 resource_name resName; local
6732 if (this->getResourceName(resID, true, &resName)) {
6735 if (resName.type8 != NULL) {
6736 type8 = String8(resName
6796 resource_name resName; local
[all...]
/frameworks/base/core/java/android/app/
H A DLoadedApk.java469 @Override public URL getResource(String resName) { argument
471 return getParent().getResource(resName);
474 @Override public Enumeration<URL> getResources(String resName) throws IOException { argument
476 return getParent().getResources(resName);
479 @Override public InputStream getResourceAsStream(String resName) { argument
481 return getParent().getResourceAsStream(resName);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java1043 public int getFrameworkResourceValue(ResourceType resType, String resName, int defValue) { argument
1044 if (getRenderResources().getFrameworkResource(resType, resName) != null) {
1047 return Bridge.getResourceId(resType, resName);
1053 public int getProjectResourceValue(ResourceType resType, String resName, int defValue) { argument
1056 if (getRenderResources().getProjectResource(resType, resName) != null) {
1058 Integer value = mLayoutlibCallback.getResourceId(resType, resName);
/frameworks/base/core/java/android/content/res/
H A DResources.java2463 String resName;
2465 resName = getResourceName(resourceId);
2467 resName = "?";
2473 + " (" + resName + ") that varies with configuration!!");
2477 String resName;
2479 resName = getResourceName(resourceId);
2481 resName = "?";
2485 + " (" + resName + ")");
/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperManagerService.java1390 String resName = wallpaper.name.substring(4);
1393 int colon = resName.indexOf(':');
1395 pkg = resName.substring(0, colon);
1399 int slash = resName.lastIndexOf('/');
1401 ident = resName.substring(slash+1);
1406 type = resName.substring(colon+1, slash);
1416 resId = r.getIdentifier(resName, null, null);
1436 Slog.v(TAG, "Restored wallpaper: " + resName);
/frameworks/base/core/java/com/android/internal/widget/
H A DViewPager.java957 String resName;
959 resName = getResources().getResourceName(getId());
961 resName = Integer.toHexString(getId());
966 " Pager id: " + resName +

Completed in 2884 milliseconds

12