/frameworks/base/libs/androidfw/tests/ |
D | Idmap_test.cpp | 103 ResTable::resource_name resName; in TEST_F() local 104 ASSERT_TRUE(mTargetTable.getResourceName(base::R::array::integerArray1, false, &resName)); in TEST_F() 106 ASSERT_TRUE(resName.package != NULL); in TEST_F() 107 ASSERT_TRUE(resName.type != NULL); in TEST_F() 108 ASSERT_TRUE(resName.name != NULL); in TEST_F() 110 EXPECT_EQ(String16("com.android.test.basic"), String16(resName.package, resName.packageLen)); in TEST_F() 111 EXPECT_EQ(String16("array"), String16(resName.type, resName.typeLen)); in TEST_F() 112 EXPECT_EQ(String16("integerArray1"), String16(resName.name, resName.nameLen)); in TEST_F()
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptC.java | 73 protected ScriptC(RenderScript rs, String resName, byte[] bitcode32, byte[] bitcode64) { in ScriptC() argument 77 id = internalStringCreate(rs, resName, bitcode32); in ScriptC() 79 id = internalStringCreate(rs, resName, bitcode64); in ScriptC() 123 String resName = resources.getResourceEntryName(resourceID); in internalCreate() local 132 return rs.nScriptCCreate(resName, mCachePath, pgm, pgmLength); in internalCreate() 135 …private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitc… in internalStringCreate() argument 143 return rs.nScriptCCreate(resName, mCachePath, bitcode, bitcode.length); in internalStringCreate()
|
D | RenderScript.java | 800 native long rsnScriptCCreate(long con, String resName, String cacheDir, in rsnScriptCCreate() argument 802 synchronized long nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { in nScriptCCreate() argument 804 return rsnScriptCCreate(mContext, resName, cacheDir, script, length); in nScriptCCreate()
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | ScriptC.java | 74 protected ScriptC(RenderScript rs, String resName, byte[] bitcode32, byte[] bitcode64) { in ScriptC() argument 78 id = internalStringCreate(rs, resName, bitcode32); in ScriptC() 80 id = internalStringCreate(rs, resName, bitcode64); in ScriptC() 117 String resName = resources.getResourceEntryName(resourceID); in internalCreate() local 122 return rs.nScriptCCreate(resName, cachePath, pgm, pgmLength); in internalCreate() 125 …private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitc… in internalStringCreate() argument 128 return rs.nScriptCCreate(resName, cachePath, bitcode, bitcode.length); in internalStringCreate()
|
D | RenderScript.java | 729 native long rsnScriptCCreate(long con, String resName, String cacheDir, in rsnScriptCCreate() argument 731 synchronized long nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { in nScriptCCreate() argument 733 return rsnScriptCCreate(mContext, resName, cacheDir, script, length); in nScriptCCreate()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuExecutable.cpp | 61 const char *resName) { in findSharedObjectName() argument 79 scriptSOName.append(resName); in findSharedObjectName() 94 const char *resName) { in createSharedLibrary() argument 95 std::string sharedLibName = findSharedObjectName(cacheDir, resName); in createSharedLibrary() 98 objFileName.append(resName); in createSharedLibrary() 132 const char *resName, in loadSharedLibrary() argument 138 std::string scriptSOName = findSharedObjectName(nativeLibDir, resName); in loadSharedLibrary() 140 std::string scriptSOName = findSharedObjectName(cacheDir, resName); in loadSharedLibrary() 145 loaded = loadSOHelper(scriptSOName.c_str(), cacheDir, resName, alreadyLoaded); in loadSharedLibrary() 158 scriptSONameSystem.append(resName); in loadSharedLibrary() [all …]
|
D | rsCpuScript.cpp | 81 const char* cacheDir, const char* resName, in setCompileArguments() argument 85 rsAssert(cacheDir && resName && core_lib); in setCompileArguments() 96 args->push_back(resName); in setCompileArguments() 303 bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, in init() argument 346 bcFileName.append(resName); in init() 352 setCompileArguments(&compileArguments, bcFileName, cacheDir, resName, core_lib, in init() 392 mScriptSO = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName); in init() 407 ALOGE("bcc: FAILS to compile '%s'", resName); in init() 413 cacheDir, resName)) { in init() 414 ALOGE("Linker: Failed to link object file '%s'", resName); in init() [all …]
|
D | rsCpuScriptGroup2.cpp | 370 const char* resName = mGroup->mName; in compile() local 379 resName, coreLibPath.c_str(), coreLibRelaxedPath.c_str(), in compile() 407 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName, nullptr, in compile() 430 cloneName.append(resName); in compile() 463 getCpuRefImpl()->getContext()->getDriverName(), cacheDir, resName)) { in compile() 464 ALOGE("Failed to link object file '%s'", resName); in compile() 471 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName); in compile() 473 ALOGE("Unable to load '%s'", resName); in compile()
|
D | rsCpuExecutable.h | 34 const char* resName); 45 static void* loadSharedLibrary(const char *cacheDir, const char *resName, 57 const char *resName, bool* alreadyLoaded = nullptr);
|
D | rsCpuCore.h | 94 CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
|
D | rsCpuScript.h | 57 bool init(char const *resName, char const *cacheDir,
|
D | rsd_cpu.h | 138 virtual CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
|
D | rsCpuCore.cpp | 568 char const *resName, char const *cacheDir, in createScript() argument 573 if (!i->init(resName, cacheDir, bitcode, bitcodeSize, flags in createScript()
|
/frameworks/rs/ |
D | rsScriptC.cpp | 263 static bool dumpBitcodeFile(const char *cacheDir, const char *resName, in dumpBitcodeFile() argument 268 f.append(resName); in dumpBitcodeFile() 297 const char *resName, in runCompiler() argument 341 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLen)) { in runCompiler() 359 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { in runCompiler() 447 const char *resName, size_t resName_length, in rsi_ScriptCCreate() argument 453 if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) { in rsi_ScriptCCreate()
|
D | rsScriptC.h | 58 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
|
D | rs.spec | 455 param const char * resName
|
/frameworks/rs/driver/ |
D | rsdBcc.cpp | 40 char const *resName, in rsdScriptInit() argument 47 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode, in rsdScriptInit()
|
D | rsdBcc.h | 24 char const *resName, char const *cacheDir,
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 6411 resource_name resName; in createIdmap() local 6412 if (!this->getResourceName(resID, false, &resName)) { in createIdmap() 6419 const String16 overlayType(resName.type, resName.typeLen); in createIdmap() 6420 const String16 overlayName(resName.name, resName.nameLen); in createIdmap() 6731 resource_name resName; in print() local 6732 if (this->getResourceName(resID, true, &resName)) { in print() 6735 if (resName.type8 != NULL) { in print() 6736 type8 = String8(resName.type8, resName.typeLen); in print() 6738 type8 = String8(resName.type, resName.typeLen); in print() 6740 if (resName.name8 != NULL) { in print() [all …]
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 1390 String resName = wallpaper.name.substring(4); in restoreNamedResourceLocked() local 1393 int colon = resName.indexOf(':'); in restoreNamedResourceLocked() 1395 pkg = resName.substring(0, colon); in restoreNamedResourceLocked() 1399 int slash = resName.lastIndexOf('/'); in restoreNamedResourceLocked() 1401 ident = resName.substring(slash+1); in restoreNamedResourceLocked() 1406 type = resName.substring(colon+1, slash); in restoreNamedResourceLocked() 1416 resId = r.getIdentifier(resName, null, null); in restoreNamedResourceLocked() 1436 Slog.v(TAG, "Restored wallpaper: " + resName); in restoreNamedResourceLocked()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 415 public Integer getId(ResourceType resType, String resName) { in getId() argument 416 return Bridge.getResourceId(resType, resName); in getId()
|
/frameworks/base/core/java/android/app/ |
D | LoadedApk.java | 469 @Override public URL getResource(String resName) { in getResource() argument 471 return getParent().getResource(resName); in getResource() 474 @Override public Enumeration<URL> getResources(String resName) throws IOException { in getResources() argument 476 return getParent().getResources(resName); in getResources() 479 @Override public InputStream getResourceAsStream(String resName) { in getResourceAsStream() argument 481 return getParent().getResourceAsStream(resName); in getResourceAsStream()
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 2463 String resName; in verifyPreloadConfig() local 2465 resName = getResourceName(resourceId); in verifyPreloadConfig() 2467 resName = "?"; in verifyPreloadConfig() 2473 + " (" + resName + ") that varies with configuration!!"); in verifyPreloadConfig() 2477 String resName; in verifyPreloadConfig() local 2479 resName = getResourceName(resourceId); in verifyPreloadConfig() 2481 resName = "?"; in verifyPreloadConfig() 2485 + " (" + resName + ")"); in verifyPreloadConfig()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContext.java | 1051 public int getFrameworkResourceValue(ResourceType resType, String resName, int defValue) { in getFrameworkResourceValue() argument 1052 if (getRenderResources().getFrameworkResource(resType, resName) != null) { in getFrameworkResourceValue() 1055 return Bridge.getResourceId(resType, resName); in getFrameworkResourceValue() 1061 public int getProjectResourceValue(ResourceType resType, String resName, int defValue) { in getProjectResourceValue() argument 1064 if (getRenderResources().getProjectResource(resType, resName) != null) { in getProjectResourceValue() 1066 Integer value = mLayoutlibCallback.getResourceId(resType, resName); in getProjectResourceValue()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 957 String resName; 959 resName = getResources().getResourceName(getId()); 961 resName = Integer.toHexString(getId()); 966 " Pager id: " + resName +
|