Home
last modified time | relevance | path

Searched refs:newName (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DRefactorClassAdapter.java45 String newName = mRefactorClasses.get(oldClassName); in renameInternalType() local
46 if (newName != null) { in renameInternalType()
47 return newName; in renameInternalType()
51 newName = mRefactorClasses.get(oldClassName.substring(0, pos)); in renameInternalType()
52 if (newName != null) { in renameInternalType()
53 return newName + oldClassName.substring(pos); in renameInternalType()
DAsmGenerator.java317 String newName = transformName(className);
319 if (!newName.equals(className)) {
326 newName.equals(className) ? "" : " (renamed to " + newName + ")",
341 if (!newName.equals(className)) {
342 cv = new RenameClassAdapter(cv, className, newName);
345 String binaryNewName = newName.replace('/', '.');
351 .withNewClassName(newName)
391 String newName = mRenameClasses.get(className);
392 if (newName != null) {
393 return newName;
[all …]
DRenameClassAdapter.java42 public RenameClassAdapter(ClassVisitor cv, String oldName, String newName) { in RenameClassAdapter() argument
45 mNewBase = mNewName = newName; in RenameClassAdapter()
DStubClassAdapter.java156 @Nullable String newName) { in stubClass() argument
163 .withNewClassName(newName) in stubClass()
/frameworks/rs/cpu_ref/
DrsCpuExecutable.cpp268 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()
[all …]
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
DInspectionCompanionGenerator.java179 fieldNames.newName("mPropertiesMapped"); in generateIdFieldSpecs()
182 final String memberName = fieldNames.newName(String.format( in generateIdFieldSpecs()
226 mappingVariables.newName("mPropertiesMapped"); in generateMapProperties()
227 mappingVariables.newName("propertyMapper"); in generateMapProperties()
228 properties.forEach(p -> mappingVariables.newName(fields.get(p).name)); in generateMapProperties()
237 mappingVariables.newName(property.getName() + "EnumMapping"))); in generateMapProperties()
243 mappingVariables.newName(property.getName() + "FlagMapping"))); in generateMapProperties()
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt102 val newName = ar.getString(Random().nextInt(ar.length())) in newPuzzle() constant
103 if (newName == null) continue in newPuzzle()
105 Log.v(TAG, "Looking for icon " + newName) in newPuzzle()
107 val pkg = getPackageNameForResourceName(newName) in newPuzzle()
109 .getIdentifier(newName, "drawable", pkg) in newPuzzle()
111 Log.v(TAG, "oops, " + newName + " doesn't resolve from pkg " + pkg) in newPuzzle()
115 resName = newName in newPuzzle()
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java885 String newName = st.name;
893 newName = cmdName;
894 int i = newName.lastIndexOf("/");
895 if (i > 0 && i < newName.length()-1) {
896 newName = newName.substring(i+1);
899 if (newName == null) {
900 newName = st.baseName;
903 if (st.name == null || !newName.equals(st.name)) {
904 st.name = newName;
/frameworks/base/tools/lock_agent/
Dagent.cpp533 std::string newName(argv[1]); in locktest_main() local
534 newName.append(".new"); in locktest_main()
538 open(newName.c_str(), O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR)); in locktest_main()
540 PLOG(FATAL) << "Could not open file " << newName; in locktest_main()
543 PLOG(FATAL) << "Could not write file " << newName; in locktest_main()
546 LOG(INFO) << "Transformed file written to " << newName; in locktest_main()
/frameworks/compile/libbcc/lib/
DRSScriptGroupFusion.h48 const std::string& newName, llvm::Module* mergedModule);
DRSScriptGroupFusion.cpp320 const std::string& newName, Module* module) { in renameInvoke() argument
333 llvm::GlobalValue::ExternalLinkage, newName, in renameInvoke()
348 llvm::MDString* strMD = llvm::MDString::get(module->getContext(), newName); in renameInvoke()
DRSCompilerDriver.cpp385 for (const std::string& newName : invokeBatchNames) { in buildScriptGroup() local
391 if (!renameInvoke(Context, source, slot, newName, &module)) { in buildScriptGroup()
/frameworks/base/media/java/android/mtp/
DMtpStorageManager.java612 private synchronized MtpObject addObjectToCache(MtpObject parent, String newName, in addObjectToCache() argument
617 if (parent.getChild(newName) != null) { in addObjectToCache()
621 if (mSubdirectories != null && parent.isRoot() && !mSubdirectories.contains(newName)) { in addObjectToCache()
626 MtpObject obj = new MtpObject(newName, getNextObjectId(), parent.mStorage, parent, isDir); in addObjectToCache()
930 public synchronized boolean beginRenameObject(MtpObject obj, String newName) { in beginRenameObject() argument
932 Log.v(TAG, "beginRenameObject " + obj.getName() + " " + newName); in beginRenameObject()
937 if (obj.getParent().getChild(newName) != null) in beginRenameObject()
942 obj.setName(newName); in beginRenameObject()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccProvider.java465 String newName, String newNumber, String pin2, int subId) { in updateIccRecordInEf() argument
468 ", newname=" + Rlog.pii(TAG, newName) + ", newnumber=" + Rlog.pii(TAG, newName) + in updateIccRecordInEf()
478 oldNumber, newName, newNumber, pin2); in updateIccRecordInEf()
/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java464 String newName = newPrefix + "/" + "key1"; in testCall_listConfig() local
474 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_PUT_CONFIG, newName, args); in testCall_listConfig()
483 assertEquals(newValue, keyValueMap.get(newName)); in testCall_listConfig()
494 r.call(DeviceConfig.CONTENT_URI, Settings.CALL_METHOD_DELETE_CONFIG, newName, null); in testCall_listConfig()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java400 boolean renameCeAccount(long accountId, String newName) { in renameCeAccount() argument
403 values.put(ACCOUNTS_NAME, newName); in renameCeAccount()
717 int renameSharedAccount(Account account, String newName) { in renameSharedAccount() argument
720 values.put(ACCOUNTS_NAME, newName); in renameSharedAccount()
859 boolean renameDeAccount(long accountId, String newName, String previousName) { in renameDeAccount() argument
862 values.put(ACCOUNTS_NAME, newName); in renameDeAccount()
/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java199 private void updateLocked(String newName, int newState) { in updateLocked() argument
208 Slog.v(TAG, "newName=" + newName in updateLocked()
DBluetoothManagerService.java402 String newName = intent.getStringExtra(BluetoothAdapter.EXTRA_LOCAL_NAME);
404 Slog.d(TAG, "Bluetooth Adapter name changed to " + newName);
406 if (newName != null) {
407 storeNameAndAddress(newName, null);
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java534 String newName = Long.toString(newTime); in onTimeChanged() local
536 newName = newName + CHECKED_IN_SUFFIX; in onTimeChanged()
539 final File newFile = new File(file.getBaseFile().getParentFile(), newName); in onTimeChanged()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl84 int type, in WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource() argument
/frameworks/base/core/java/android/accounts/
DIAccountManager.aidl86 …oid renameAccount(in IAccountManagerResponse response, in Account accountToRename, String newName); in renameAccount() argument
DAccountManager.java1119 @Size(min = 1) final String newName,
1123 if (TextUtils.isEmpty(newName)) {
1129 mService.renameAccount(mResponse, account, newName);
/frameworks/base/core/java/android/os/
DWorkSource.java740 private static WorkSource addWork(WorkSource cur, int newUid, String newName) { in addWork() argument
742 return new WorkSource(newUid, newName); in addWork()
744 cur.insert(cur.mNum, newUid, newName); in addWork()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java599 public void rename(int fpId, int userId, String newName) { in rename() argument
603 mService.rename(fpId, userId, newName); in rename()
/frameworks/base/core/java/com/android/server/
DSystemConfig.java1188 final String newName = parser.getAttributeValue(null, "name"); in readSplitPermission() local
1189 if (TextUtils.isEmpty(newName)) { in readSplitPermission()
1194 newPermissions.add(newName); in readSplitPermission()

12