Lines Matching refs:newName
268 static void* loadAsCopy(const char *origName, std::string newName) { in loadAsCopy() argument
282 loaded = android_dlopen_ext(newName.c_str(), RTLD_NOW | RTLD_LOCAL, &extinfo); in loadAsCopy()
285 int r = copyFile(newName.c_str(), origName); in loadAsCopy()
287 ALOGE("Could not create copy %s -> %s", origName, newName.c_str()); in loadAsCopy()
290 loaded = dlopen(newName.c_str(), RTLD_NOW | RTLD_LOCAL); in loadAsCopy()
291 r = unlink(newName.c_str()); in loadAsCopy()
293 ALOGE("Could not unlink copy %s", newName.c_str()); in loadAsCopy()
334 std::string newName(cacheDir); in loadSOHelper() local
338 if (newName.find(RS_CACHE_DIR) == std::string::npos) { in loadSOHelper()
339 newName.append("/"); in loadSOHelper()
340 newName.append(RS_CACHE_DIR); in loadSOHelper()
341 newName.append("/"); in loadSOHelper()
344 if (!ensureCacheDirExists(newName.c_str())) { in loadSOHelper()
350 newName.append("librs."); in loadSOHelper()
351 newName.append(resName); in loadSOHelper()
352 newName.append("#"); in loadSOHelper()
353 newName.append(getRandomString(6).c_str()); // 62^6 potential filename variants. in loadSOHelper()
354 newName.append(".so"); in loadSOHelper()
356 loaded = loadAsCopy(origName, newName); in loadSOHelper()
359 LoadedLibraries.insert(newName.c_str()); in loadSOHelper()