Home
last modified time | relevance | path

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

123

/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/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/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/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/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()
DBluetoothSummaryUpdater.java93 String deviceName = null; in getConnectedDeviceSummary() local
105 deviceName = device.getName(); in getConnectedDeviceSummary()
112 if (deviceName == null) { in getConnectedDeviceSummary()
122 : mContext.getString(R.string.bluetooth_connected_summary, deviceName); in getConnectedDeviceSummary()
/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()
108 private View createDialogView(String deviceName) { in createDialogView() argument
117 mDeviceNameView.setText(deviceName); // Set initial value before adding listener. in createDialogView()
118 if (!TextUtils.isEmpty(deviceName)) { in createDialogView()
119 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()
DBluetoothSummaryUpdater.java93 String deviceName = null; in getConnectedDeviceSummary() local
105 deviceName = device.getName(); in getConnectedDeviceSummary()
112 if (deviceName == null) { in getConnectedDeviceSummary()
122 : mContext.getString(R.string.bluetooth_connected_summary, deviceName); in getConnectedDeviceSummary()
DLocalBluetoothPreferences.java61 String deviceAddress, String deviceName) { in shouldShowDialogInForeground() argument
119 if (!TextUtils.isEmpty(deviceName)) { in shouldShowDialogInForeground()
123 if (deviceName.equals(packagedKeyboardName)) { in shouldShowDialogInForeground()
/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/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/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java235 String deviceName = d.getName(); in dump() local
236 if (deviceName == null) { in dump()
237 deviceName = ""; in dump()
238 } else if (deviceName.length() > 14) { in dump()
239 deviceName = deviceName.substring(0, 11).concat("..."); in dump()
249 d.getAddress(), deviceName, (Integer) value, absoluteVolume)); in dump()
/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/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.getAliasName(); 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/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DInputDeviceResultTask.java106 final String deviceName = device.getName(); in buildPhysicalKeyboardSearchResults() local
107 final int wordDiff = SearchQueryUtils.getWordDifference(deviceName, mQuery); in buildPhysicalKeyboardSearchResults()
112 PHYSICAL_KEYBOARD_FRAGMENT, deviceName, screenTitle); in buildPhysicalKeyboardSearchResults()
114 .setTitle(deviceName) in buildPhysicalKeyboardSearchResults()
116 .setDataKey(deviceName) in buildPhysicalKeyboardSearchResults()

123