Home
last modified time | relevance | path

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

/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DRefactorClassAdapter.java35 String newName = mRefactorClasses.get(oldClassName); in renameInternalType() local
36 if (newName != null) { in renameInternalType()
37 return newName; in renameInternalType()
41 newName = mRefactorClasses.get(oldClassName.substring(0, pos)); in renameInternalType()
42 if (newName != null) { in renameInternalType()
43 return newName + oldClassName.substring(pos); in renameInternalType()
DAsmGenerator.java320 String newName = transformName(className);
322 if (!newName.equals(className)) {
329 newName.equals(className) ? "" : " (renamed to " + newName + ")",
344 if (!newName.equals(className)) {
345 cv = new RenameClassAdapter(cv, className, newName);
349 newName, cv, stubNativesOnly);
374 String newName = mRenameClasses.get(className);
375 if (newName != null) {
376 return newName;
382 newName = mRenameClasses.get(base);
[all …]
DRenameClassAdapter.java42 public RenameClassAdapter(ClassVisitor cv, String oldName, String newName) { in RenameClassAdapter() argument
45 mNewBase = mNewName = newName; in RenameClassAdapter()
/frameworks/rs/cpu_ref/
DrsCpuScript.cpp111 std::string newName(cacheDir); in loadSOHelper() local
112 newName.append("/com.android.renderscript.cache/"); in loadSOHelper()
114 if (!ensureCacheDirExists(newName.c_str())) { in loadSOHelper()
120 newName.append("librs."); in loadSOHelper()
121 newName.append(resName); in loadSOHelper()
122 newName.append("#"); in loadSOHelper()
123 newName.append(getRandomString(6)); // 62^6 potential filename variants. in loadSOHelper()
124 newName.append(".so"); in loadSOHelper()
126 int r = symlink(origName, newName.c_str()); in loadSOHelper()
128 ALOGE("Could not create symlink %s -> %s", newName.c_str(), origName); in loadSOHelper()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java865 String newName = st.name;
870 newName = cmdName;
871 int i = newName.lastIndexOf("/");
872 if (i > 0 && i < newName.length()-1) {
873 newName = newName.substring(i+1);
876 if (newName == null) {
877 newName = st.baseName;
880 if (st.name == null || !newName.equals(st.name)) {
881 st.name = newName;
DBatteryStatsImpl.java2771 String historyName, int type, WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSourceLocked() argument
2780 noteStartWakeLocked(newWs.get(i), newPid, newName, newHistoryName, newType, in noteChangeWakelockFromSourceLocked() local
/frameworks/base/core/java/android/accounts/
DIAccountManager.aidl79 …oid renameAccount(in IAccountManagerResponse response, in Account accountToRename, String newName); in renameAccount() argument
81 boolean renameSharedAccountAsUser(in Account accountToRename, String newName, int userId); in renameSharedAccountAsUser() argument
DAccountManager.java688 final String newName,
692 if (TextUtils.isEmpty(newName)) {
698 mService.renameAccount(mResponse, account, newName);
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java252 String newName = Long.toString(newTime); in onTimeChanged() local
254 newName = newName + CHECKED_IN_SUFFIX; in onTimeChanged()
257 final File newFile = new File(file.getBaseFile().getParentFile(), newName); in onTimeChanged()
/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java184 private void updateLocked(String newName, int newState) { in updateLocked() argument
192 if (LOG) Slog.v(TAG, "newName=" + newName in updateLocked()
223 mHeadsetState, newName); in updateLocked()
DBluetoothManagerService.java175 String newName = intent.getStringExtra(BluetoothAdapter.EXTRA_LOCAL_NAME);
176 if (DBG) Log.d(TAG, "Bluetooth Adapter name changed to " + newName);
177 if (newName != null) {
178 storeNameAndAddress(newName, null);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccProvider.java454 String newName, String newNumber, String pin2, int subId) { in updateIccRecordInEf() argument
457 ", newname=" + newName + ", newnumber=" + newNumber + in updateIccRecordInEf()
467 oldNumber, newName, newNumber, pin2); in updateIccRecordInEf()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl65 int type, in WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource() argument
/frameworks/base/core/java/android/os/
DWorkSource.java535 private static WorkSource addWork(WorkSource cur, int newUid, String newName) { in addWork() argument
537 return new WorkSource(newUid, newName); in addWork()
539 cur.insert(cur.mNum, newUid, newName); in addWork()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java938 IAccountManagerResponse response, Account accountToRename, String newName) { in renameAccount() argument
940 Log.v(TAG, "renameAccount: " + accountToRename + " -> " + newName in renameAccount()
949 Account resultingAccount = renameAccountInternal(accounts, accountToRename, newName); in renameAccount()
964 UserAccounts accounts, Account accountToRename, String newName) { in renameAccountInternal() argument
991 Account renamedAccount = new Account(newName, accountToRename.type); in renameAccountInternal()
994 values.put(ACCOUNTS_NAME, newName); in renameAccountInternal()
1038 renameSharedAccountAsUser(accountToRename, newName, user.id); in renameAccountInternal()
2284 public boolean renameSharedAccountAsUser(Account account, String newName, int userId) { in renameSharedAccountAsUser() argument
2289 values.put(ACCOUNTS_NAME, newName); in renameSharedAccountAsUser()
2298 renameAccountInternal(accounts, account, newName); in renameSharedAccountAsUser()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java277 String historyName, int type, WorkSource newWs, int newPid, String newName, in noteChangeWakelockFromSource() argument
282 newWs, newPid, newName, newHistoryName, newType, newUnimportantForLogging); in noteChangeWakelockFromSource()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java4368 public void setPackageName(String newName) { in setPackageName() argument
4369 packageName = newName; in setPackageName()
4370 applicationInfo.packageName = newName; in setPackageName()
4372 permissions.get(i).setPackageName(newName); in setPackageName()
4375 permissionGroups.get(i).setPackageName(newName); in setPackageName()
4378 activities.get(i).setPackageName(newName); in setPackageName()
4381 receivers.get(i).setPackageName(newName); in setPackageName()
4384 providers.get(i).setPackageName(newName); in setPackageName()
4387 services.get(i).setPackageName(newName); in setPackageName()
4390 instrumentation.get(i).setPackageName(newName); in setPackageName()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java742 private int renameFile(int handle, String newName) { in renameFile() argument
777 String newPath = path.substring(0, lastSlash + 1) + newName; in renameFile()
/frameworks/base/media/java/android/media/
DMediaRouter.java1414 final String newName = display.getFriendlyDisplayName(); in updateWifiDisplayRoute() local
1415 if (!route.getName().equals(newName)) { in updateWifiDisplayRoute()
1416 route.mName = newName; in updateWifiDisplayRoute()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp3946 uint32_t newName = htodl(map->name.ident); in getBagLocked() local
3947 if (!Res_INTERNALID(newName)) { in getBagLocked()
3950 if (grp->dynamicRefTable.lookupResourceId(&newName) != NO_ERROR) { in getBagLocked()
3952 (int) curOff, (int) newName); in getBagLocked()
3960 && (oldName=entries[curEntry].map.name.ident) < newName) { in getBagLocked()
3966 if ((!isInside) || oldName != newName) { in getBagLocked()
3989 curEntry, newName)); in getBagLocked()
3998 cur->map.name.ident = newName; in getBagLocked()