Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DRenameDocumentUiTest.java29 private final String newName = "kitties.log"; field in RenameDocumentUiTest
92 bots.main.setDialogText(newName); in testRenameFile_OkButton()
97 bots.directory.waitForDocument(newName); in testRenameFile_OkButton()
108 bots.main.setDialogText(newName); in testRenameFile_Enter()
113 bots.directory.waitForDocument(newName); in testRenameFile_Enter()
135 bots.main.setDialogText(newName); in testRenameFile_Cancel()
140 bots.directory.assertDocumentsAbsent(newName); in testRenameFile_Cancel()
148 String newName = "Dir123"; in testRenameDir() local
153 bots.main.setDialogText(newName); in testRenameDir()
158 bots.directory.assertDocumentsPresent(newName); in testRenameDir()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRuleNameDialog.java52 void onOk(String newName, Fragment parent); in onOk() argument
94 final String newName = trimmedText(editText); in onCreateDialog()
95 if (TextUtils.isEmpty(newName)) { in onCreateDialog()
99 && originalRuleName.equals(newName)) { in onCreateDialog()
102 mPositiveClickListener.onOk(newName, getTargetFragment()); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/users/
DProfileUpdateReceiver.java55 final String newName = Utils.getMeProfileName(context, false /* partial name */); in copyProfileName() local
56 if (newName != null && newName.length() > 0 && !isCurrentNameInteresting(context, um)) { in copyProfileName()
57 um.setUserName(userId, newName); in copyProfileName()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileDataDialogFragment.java103 final String newName = (currentSubInfo == null) in onCreateDialog() local
110 .setTitle(context.getString(R.string.sim_change_data_title, newName)) in onCreateDialog()
112 newName, previousName)) in onCreateDialog()
114 context.getString(R.string.sim_change_data_ok, newName), in onCreateDialog()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileDataTogglePreferenceController.java197 String newName = (newSubInfo == null) in getConfirmMultisimEnableDialog() local
202 .setTitle(getContext().getString(R.string.sim_change_data_title, newName)) in getConfirmMultisimEnableDialog()
204 newName, previousName)) in getConfirmMultisimEnableDialog()
205 .setPositiveButton(getContext().getString(R.string.sim_change_data_ok, newName), in getConfirmMultisimEnableDialog()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothDevicesService.java97 public void renameDevice(BluetoothDevice device, String newName) { in renameDevice() argument
98 BluetoothDevicesService.this.renameDevice(device, newName); in renameDevice()
223 private void renameDevice(BluetoothDevice device, String newName) { in renameDevice() argument
225 device.setAlias(newName); in renameDevice()
DBluetoothActionFragment.java148 final String newName = action.getTitle() != null ? action.getTitle().toString() : ""; in onGuidedActionEditedAndProceed() local
153 if (!TextUtils.equals(existingName, newName) && !TextUtils.isEmpty(newName)) { in onGuidedActionEditedAndProceed()
DLocalBluetoothDeviceProvider.java51 public void renameDevice(BluetoothDevice device, String newName) { in renameDevice() argument
54 provider.renameDevice(device, newName); in renameDevice()
DBluetoothDeviceProvider.java42 void renameDevice(BluetoothDevice device, String newName); in renameDevice() argument
/packages/apps/OneTimeInitializer/src/com/android/onetimeinitializer/
DOneTimeInitializer.java122 final ComponentName newName = new ComponentName("com.android.dialer", in updateDialtactsLauncher() local
124 intent.setComponent(newName); in updateDialtactsLauncher()
131 Log.i(TAG, "Updated " + componentName + " to " + newName); in updateDialtactsLauncher()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintSettings.java711 private void renameFingerPrint(int fingerId, String newName) { in renameFingerPrint() argument
712 mFingerprintManager.rename(fingerId, mUserId, newName); in renameFingerPrint()
713 if (!TextUtils.isEmpty(newName)) { in renameFingerPrint()
714 mFingerprintsRenaming.put(fingerId, newName); in renameFingerPrint()
838 final String newName = in onCreateDialog()
841 if (!TextUtils.equals(newName, name)) { in onCreateDialog()
842 Log.d(TAG, "rename " + name + " to " + newName); in onCreateDialog()
850 newName); in onCreateDialog()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelDataManagerTest.java338 String newName = testChannelInfo.name + "_test"; in testChannelListChanged() local
339 mContentProvider.simulateUpdate(testChannelId, newName); in testChannelListChanged()
351 assertThat(updatedChannel.getDisplayName()).isEqualTo(newName); in testChannelListChanged()
368 assertThat(removedChannel.getDisplayName()).isEqualTo(newName); in testChannelListChanged()
541 public void simulateUpdate(long channelId, String newName) { in simulateUpdate() argument
544 builder.setName(newName); in simulateUpdate()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DNetworkNamePreferenceController.java65 private void notifyNameChange(String newName) { in notifyNameChange() argument
67 intent.putExtra(KEY_NETWORK_NAME, newName); in notifyNameChange()
/packages/services/Telephony/src/com/android/phone/
DSimPhonebookProvider.java475 String newName = Strings.nullToEmpty(values.getAsString(SimRecords.NAME)); in insertSimRecord() local
497 boolean success = updateRecord(args, emptyRecord, args.pin2, newName, newPhoneNumber); in insertSimRecord()
581 String newName = Strings.nullToEmpty(values.getAsString(SimRecords.NAME)); in updateSimRecordsItem() local
596 if (!updateRecord(args, record, args.pin2, newName, newPhoneNumber)) { in updateSimRecordsItem()
666 String newName, String newPhone) { in updateRecord() argument
669 values.put(STR_NEW_TAG, newName); in updateRecord()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarMultiUserTestBase.java240 StringBuilder newName = new StringBuilder(NEW_USER_NAME_PREFIX).append(getTestName()); in getNewUserName() local
242 newName.append('.').append(name); in getNewUserName()
244 return newName.toString(); in getNewUserName()
/packages/apps/Messaging/src/com/android/messaging/util/
DFileUtil.java43 final String newName = String.format(Locale.US, numberedFileNameFormat, i); in getNewFile() local
44 File testFile = new File(directory, newName); in getNewFile()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DUserPresetsAdapter.java165 String newName = editText.getText().toString(); in updateActionFromEditText() local
166 if (newName.length() > 0) { in updateActionFromEditText()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java210 String newName = initGrid(context, gridName); in InvariantDeviceProfile() local
211 if (newName == null || !newName.equals(gridName)) { in InvariantDeviceProfile()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java548 final String newName = new String(val); in devicePropertyChangedCallback() local
549 if (newName.equals(device.mName)) { in devicePropertyChangedCallback()
553 device.mName = newName; in devicePropertyChangedCallback()