Home
last modified time | relevance | path

Searched refs:deviceName (Results 1 – 25 of 90) sorted by relevance

1234

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java76 String deviceName = usbDevice.getDeviceName();
79 MtpDevice mtpDevice = mDevices.get(deviceName);
92 mDevices.remove(deviceName);
93 mRequestPermissionDevices.remove(deviceName);
94 mIgnoredDevices.remove(deviceName);
100 mRequestPermissionDevices.remove(deviceName);
115 mIgnoredDevices.add(deviceName);
186 String deviceName = usbDevice.getDeviceName(); in openDeviceLocked() local
190 if (isCamera(usbDevice) && !mIgnoredDevices.contains(deviceName) in openDeviceLocked()
191 && !mRequestPermissionDevices.contains(deviceName)) { in openDeviceLocked()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DDeviceNamePreferenceController.java69 final CharSequence deviceName = getSummary(); in displayPreference() local
70 mPreference.setSummary(deviceName); in displayPreference()
71 mPreference.setText(deviceName.toString()); in displayPreference()
105 public boolean isTextValid(String deviceName) { in isTextValid() argument
109 return mWifiDeviceNameTextValidator.isTextValid(deviceName); in isTextValid()
127 private void setDeviceName(String deviceName) { in setDeviceName() argument
128 mDeviceName = deviceName; in setDeviceName()
129 setSettingsGlobalDeviceName(deviceName); in setDeviceName()
130 setBluetoothDeviceName(deviceName); in setDeviceName()
131 setTetherSsidName(deviceName); in setDeviceName()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DDeviceNamePreferenceController.java69 final CharSequence deviceName = getSummary(); in displayPreference() local
70 mPreference.setSummary(deviceName); in displayPreference()
71 mPreference.setText(deviceName.toString()); in displayPreference()
105 public boolean isTextValid(String deviceName) { in isTextValid() argument
109 return mWifiDeviceNameTextValidator.isTextValid(deviceName); in isTextValid()
127 private void setDeviceName(String deviceName) { in setDeviceName() argument
128 mDeviceName = deviceName; in setDeviceName()
129 setSettingsGlobalDeviceName(deviceName); in setDeviceName()
130 setBluetoothDeviceName(deviceName); in setDeviceName()
131 setTetherSsidName(deviceName); in setDeviceName()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java73 String deviceName = usbDevice.getDeviceName();
76 MtpDevice mtpDevice = mDevices.get(deviceName);
89 mDevices.remove(deviceName);
90 mRequestPermissionDevices.remove(deviceName);
91 mIgnoredDevices.remove(deviceName);
97 mRequestPermissionDevices.remove(deviceName);
112 mIgnoredDevices.add(deviceName);
184 String deviceName = usbDevice.getDeviceName(); in openDeviceLocked() local
188 if (isCamera(usbDevice) && !mIgnoredDevices.contains(deviceName) in openDeviceLocked()
189 && !mRequestPermissionDevices.contains(deviceName)) { in openDeviceLocked()
[all …]
/packages/modules/NetworkStack/src/android/net/util/
DHostnameTransliterator.java88 public String transliterate(@NonNull String deviceName) { in transliterate() argument
89 if (deviceName == null) return null; in transliterate()
91 if (!deviceName.matches("\\p{ASCII}*")) return null; in transliterate()
92 deviceName = maybeRemoveRedundantSymbols(deviceName); in transliterate()
93 if (TextUtils.isEmpty(deviceName)) return null; in transliterate()
94 return deviceName.length() > MAX_DNS_LABEL_LENGTH in transliterate()
95 ? deviceName.substring(0, MAX_DNS_LABEL_LENGTH) : deviceName; in transliterate()
98 String hostname = maybeRemoveRedundantSymbols(mTransliterator.transliterate(deviceName)); in transliterate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothNameDialogFragment.java79 abstract protected void setDeviceName(String deviceName); in setDeviceName() argument
83 String deviceName = getDeviceName(); in onCreateDialog() local
85 deviceName = savedInstanceState.getString(KEY_NAME, deviceName); in onCreateDialog()
90 .setView(createDialogView(deviceName)) in onCreateDialog()
115 private View createDialogView(String deviceName) { in createDialogView() argument
123 mDeviceNameView.setText(deviceName); // set initial value before adding listener in createDialogView()
124 if (!TextUtils.isEmpty(deviceName)) { in createDialogView()
125 mDeviceNameView.setSelection(deviceName.length()); in createDialogView()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRenameDialogFragment.java73 protected abstract void setDeviceName(String deviceName); in setDeviceName() argument
78 String deviceName = getDeviceName(); in onCreateDialog() local
80 deviceName = savedInstanceState.getString(KEY_NAME, deviceName); in onCreateDialog()
84 .setView(createDialogView(deviceName)) in onCreateDialog()
112 private View createDialogView(String deviceName) { in createDialogView() argument
121 mDeviceNameView.setText(deviceName); // Set initial value before adding listener. in createDialogView()
122 if (!TextUtils.isEmpty(deviceName)) { in createDialogView()
123 mDeviceNameView.setSelection(deviceName.length()); in createDialogView()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothNameDialogFragment.java79 abstract protected void setDeviceName(String deviceName); in setDeviceName() argument
83 String deviceName = getDeviceName(); in onCreateDialog() local
85 deviceName = savedInstanceState.getString(KEY_NAME, deviceName); in onCreateDialog()
90 .setView(createDialogView(deviceName)) in onCreateDialog()
115 private View createDialogView(String deviceName) { in createDialogView() argument
123 mDeviceNameView.setText(deviceName); // set initial value before adding listener in createDialogView()
124 if (!TextUtils.isEmpty(deviceName)) { in createDialogView()
125 mDeviceNameView.setSelection(deviceName.length()); in createDialogView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothAccessoryFragment.java104 public static BluetoothAccessoryFragment newInstance(String deviceAddress, String deviceName, in newInstance() argument
107 prepareArgs(b, deviceAddress, deviceName, deviceImgId); in newInstance()
113 public static void prepareArgs(Bundle b, String deviceAddress, String deviceName, in prepareArgs() argument
116 b.putString(ARG_ACCESSORY_NAME, deviceName); in prepareArgs()
237 private void renameDevice(String deviceName) { in renameDevice() argument
238 mDeviceName = deviceName; in renameDevice()
240 mDevice.setAlias(deviceName); in renameDevice()
241 getPreferenceScreen().setTitle(deviceName); in renameDevice()
242 setTitle(deviceName); in renameDevice()
324 public static void prepareArgs(@NonNull Bundle args, String deviceName, in prepareArgs() argument
[all …]
DBluetoothAccessoryActivity.java35 String deviceName; in createSettingsFragment() local
40 deviceName = bundle.getString(EXTRA_ACCESSORY_NAME); in createSettingsFragment()
43 deviceName = getString(R.string.accessory_options); in createSettingsFragment()
48 getArguments(deviceAddress, deviceName, deviceImgId)); in createSettingsFragment()
52 public static Bundle getArguments(String deviceAddress, String deviceName, int deviceImgId) { in getArguments() argument
55 b.putString(EXTRA_ACCESSORY_NAME, deviceName); in getArguments()
/packages/services/Car/evs/sampleDriver/
DEvsEnumerator.cpp154 std::string deviceName("/dev/"); in enumerateDevices() local
155 deviceName += entry->d_name; in enumerateDevices()
157 if (sCameraList.find(deviceName) != sCameraList.end()) { in enumerateDevices()
158 ALOGI("%s has been added already.", deviceName.c_str()); in enumerateDevices()
160 } else if(qualifyCaptureDevice(deviceName.c_str())) { in enumerateDevices()
161 sCameraList.emplace(deviceName, deviceName.c_str()); in enumerateDevices()
335 bool EvsEnumerator::qualifyCaptureDevice(const char* deviceName) { in qualifyCaptureDevice() argument
346 FileHandleWrapper fd = open(deviceName, O_RDWR, 0); in qualifyCaptureDevice()
DVideoCapture.cpp36 bool VideoCapture::open(const char* deviceName) { in open() argument
39 mDeviceFd = ::open(deviceName, O_RDWR, 0); in open()
41 ALOGE("failed to open device %s (%d = %s)", deviceName, errno, strerror(errno)); in open()
49 ALOGE("failed to get device caps for %s (%d = %s)", deviceName, errno, strerror(errno)); in open()
55 ALOGI("Open Device: %s (fd=%d)", deviceName, mDeviceFd); in open()
88 ALOGE("Streaming capture not supported by %s.", deviceName); in open()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/activity/
DAddAssociatedDeviceFragment.java42 static AddAssociatedDeviceFragment newInstance(@NonNull String deviceName) { in newInstance() argument
44 bundle.putString(DEVICE_NAME_KEY, deviceName); in newInstance()
59 String deviceName = bundle.getString(DEVICE_NAME_KEY); in onViewCreated() local
61 setDeviceNameForAssociation(selectTextView, deviceName); in onViewCreated()
64 private void setDeviceNameForAssociation(TextView textView, String deviceName) { in setDeviceNameForAssociation() argument
69 String selectText = getString(R.string.associated_device_select_device, deviceName); in setDeviceNameForAssociation()
DAssociationActivity.java174 private void showAddAssociatedDeviceFragment(String deviceName) { in showAddAssociatedDeviceFragment() argument
175 AddAssociatedDeviceFragment fragment = AddAssociatedDeviceFragment.newInstance(deviceName); in showAddAssociatedDeviceFragment()
287 static RemoveDeviceDialogFragment newInstance(@NonNull String deviceName, in newInstance() argument
290 bundle.putString(DEVICE_NAME_KEY, deviceName); in newInstance()
300 String deviceName = bundle.getString(DEVICE_NAME_KEY); in onCreateDialog() local
301 String title = getString(R.string.remove_associated_device_title, deviceName); in onCreateDialog()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseManager.java197 String deviceName = AdapterService.getAdapterService().getName(); in startAdvertisingSet() local
198 byte[] advDataBytes = AdvertiseHelper.advertiseDataToBytes(advertiseData, deviceName); in startAdvertisingSet()
199 byte[] scanResponseBytes = AdvertiseHelper.advertiseDataToBytes(scanResponse, deviceName); in startAdvertisingSet()
200 byte[] periodicDataBytes = AdvertiseHelper.advertiseDataToBytes(periodicData, deviceName); in startAdvertisingSet()
267 String deviceName = AdapterService.getAdapterService().getName(); in setAdvertisingData() local
269 AdvertiseHelper.advertiseDataToBytes(data, deviceName)); in setAdvertisingData()
273 String deviceName = AdapterService.getAdapterService().getName(); in setScanResponseData() local
275 AdvertiseHelper.advertiseDataToBytes(data, deviceName)); in setScanResponseData()
288 String deviceName = AdapterService.getAdapterService().getName(); in setPeriodicAdvertisingData() local
290 AdvertiseHelper.advertiseDataToBytes(data, deviceName)); in setPeriodicAdvertisingData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pSettings.java470 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog() local
472 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
476 deviceName, mConnectedDevices - 1); in onCreateDialog()
478 msg = getActivity().getString(R.string.wifi_p2p_disconnect_message, deviceName); in onCreateDialog()
489 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog() local
491 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
495 .setMessage(getActivity().getString(stringId, deviceName)) in onCreateDialog()
506 } else if (mThisDevice != null && !TextUtils.isEmpty(mThisDevice.deviceName)) { in onCreateDialog()
507 mDeviceNameText.setText(mThisDevice.deviceName); in onCreateDialog()
508 mDeviceNameText.setSelection(0, mThisDevice.deviceName.length()); in onCreateDialog()
DWifiP2pPeer.java45 if (TextUtils.isEmpty(device.deviceName)) { in WifiP2pPeer()
48 setTitle(device.deviceName); in WifiP2pPeer()
80 if (device.deviceName != null) { in compareTo()
81 return device.deviceName.compareToIgnoreCase(other.device.deviceName); in compareTo()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java467 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog() local
469 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
473 deviceName, mConnectedDevices - 1); in onCreateDialog()
475 msg = getActivity().getString(R.string.wifi_p2p_disconnect_message, deviceName); in onCreateDialog()
486 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog() local
488 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
492 .setMessage(getActivity().getString(stringId, deviceName)) in onCreateDialog()
503 } else if (mThisDevice != null && !TextUtils.isEmpty(mThisDevice.deviceName)) { in onCreateDialog()
504 mDeviceNameText.setText(mThisDevice.deviceName); in onCreateDialog()
505 mDeviceNameText.setSelection(0, mThisDevice.deviceName.length()); in onCreateDialog()
DWifiP2pPeer.java45 if (TextUtils.isEmpty(device.deviceName)) { in WifiP2pPeer()
48 setTitle(device.deviceName); in WifiP2pPeer()
80 if (device.deviceName != null) { in compareTo()
81 return device.deviceName.compareToIgnoreCase(other.device.deviceName); in compareTo()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DP2pDiscovery.java45 String deviceName = device.deviceName; in toPrinter() local
46 if (deviceName.trim().isEmpty()) { in toPrinter()
47 deviceName = device.deviceAddress; in toPrinter()
49 return new DiscoveredPrinter(path, deviceName, path, null); in toPrinter()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java283 String deviceName = d.getName(); in dump() local
284 if (deviceName == null) { in dump()
285 deviceName = ""; in dump()
286 } else if (deviceName.length() > 14) { in dump()
287 deviceName = deviceName.substring(0, 11).concat("..."); in dump()
297 d.getAddress(), deviceName, (Integer) value, absoluteVolume)); in dump()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DRemoteDeviceNameDialogFragmentTest.java75 AlertDialog startDialog(String deviceName) { in startDialog() argument
76 when(mCachedDevice.getName()).thenReturn(deviceName); in startDialog()
84 String deviceName = "ABC Corp Headphones"; in deviceNameDisplayIsCorrect() local
85 AlertDialog dialog = startDialog(deviceName); in deviceNameDisplayIsCorrect()
87 assertThat(editText.getText().toString()).isEqualTo(deviceName); in deviceNameDisplayIsCorrect()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java337 String deviceName = null; in getDeviceName() local
340 deviceName = device.getAlias(); in getDeviceName()
341 if (deviceName == null) { in getDeviceName()
342 deviceName = BluetoothOppPreference.getInstance(mContext).getName(device); in getDeviceName()
346 if (deviceName == null) { in getDeviceName()
347 deviceName = mContext.getString(R.string.unknown_device); in getDeviceName()
350 return deviceName; in getDeviceName()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceSettings.java53 public void setDeviceName(String deviceName) { in setDeviceName() argument
54 mDeviceName = deviceName; in setDeviceName()
133 String deviceName, ComponentName handler, boolean aoap) { in constructSettings() argument
135 settings.setDeviceName(deviceName); in constructSettings()
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DConversationNotificationInfo.java66 @NonNull String deviceName, @NonNull String deviceId, in createConversationNotificationInfo()
80 return new ConversationNotificationInfo(deviceName, deviceId, in createConversationNotificationInfo()
88 private ConversationNotificationInfo(@Nullable String deviceName, String deviceId, in ConversationNotificationInfo() argument
104 this.mDeviceName = deviceName; in ConversationNotificationInfo()

1234