Home
last modified time | relevance | path

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

/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/bluetooth/
DBluetoothNameDialogFragment.java89 String deviceName = mLocalAdapter.getName(); in onCreateDialog() local
91 deviceName = savedInstanceState.getString(KEY_NAME, deviceName); in onCreateDialog()
97 .setView(createDialogView(deviceName)) in onCreateDialog()
101 String deviceName = mDeviceNameView.getText().toString(); in onCreateDialog()
102 setDeviceName(deviceName); in onCreateDialog()
113 private void setDeviceName(String deviceName) { in setDeviceName() argument
114 Log.d(TAG, "Setting device name to " + deviceName); in setDeviceName()
115 mLocalAdapter.setName(deviceName); in setDeviceName()
124 private View createDialogView(String deviceName) { in createDialogView() argument
132 mDeviceNameView.setText(deviceName); // set initial value before adding listener in createDialogView()
DDeviceProfilesSettings.java125 String deviceName = mCachedDevice.getName(); in onCreate() local
126 mDeviceNamePref.setSummary(deviceName); in onCreate()
127 mDeviceNamePref.setText(deviceName); in onCreate()
306 String deviceName = mCachedDevice.getName(); in refresh() local
307 mDeviceNamePref.setSummary(deviceName); in refresh()
308 mDeviceNamePref.setText(deviceName); in refresh()
DBluetoothPermissionRequest.java101 String deviceName = mDevice != null ? mDevice.getAliasName() : null; in onReceive() local
104 context.getString(R.string.bluetooth_connection_notif_message, deviceName), in onReceive()
DBluetoothPairingDialog.java177 private View createPinEntryView(String deviceName) { in createPinEntryView() argument
211 String messageText = getString(messageId1, deviceName); in createPinEntryView()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java402 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog() local
404 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
408 deviceName, mConnectedDevices - 1); in onCreateDialog()
410 msg = getActivity().getString(R.string.wifi_p2p_disconnect_message, deviceName); in onCreateDialog()
421 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog() local
423 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
427 .setMessage(getActivity().getString(stringId, deviceName)) in onCreateDialog()
438 } else if (mThisDevice != null && !TextUtils.isEmpty(mThisDevice.deviceName)) { in onCreateDialog()
439 mDeviceNameText.setText(mThisDevice.deviceName); in onCreateDialog()
440 mDeviceNameText.setSelection(0, mThisDevice.deviceName.length()); in onCreateDialog()
[all …]
DWifiP2pPeer.java51 if (TextUtils.isEmpty(device.deviceName)) { in onBindView()
54 setTitle(device.deviceName); in onBindView()
80 if (device.deviceName != null) { in compareTo()
81 return device.deviceName.compareToIgnoreCase(other.device.deviceName); in compareTo()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppManager.java311 String deviceName; in getDeviceName() local
313 deviceName = BluetoothOppPreference.getInstance(mContext).getName(device); in getDeviceName()
315 if (deviceName == null && mAdapter != null) { in getDeviceName()
316 deviceName = device.getName(); in getDeviceName()
319 if (deviceName == null) { in getDeviceName()
320 deviceName = mContext.getString(R.string.unknown_device); in getDeviceName()
323 return deviceName; in getDeviceName()
DBluetoothOppTransferAdapter.java98 String deviceName = BluetoothOppManager.getInstance(context).getDeviceName(remoteDevice); in bindView() local
99 tv.setText(deviceName); in bindView()
107 tv.setText(BluetoothOppUtility.getStatusDescription(mContext, status, deviceName)); in bindView()
DBluetoothOppReceiver.java103 String deviceName = mOppManager.getDeviceName(remoteDevice); in onReceive() local
108 deviceName); in onReceive()
110 toastMsg = context.getString(R.string.bt_toast_4, deviceName); in onReceive()
DBluetoothOppUtility.java262 public static String getStatusDescription(Context context, int statusCode, String deviceName) { in getStatusDescription() argument
283 ret = context.getString(R.string.bt_sm_2_1, deviceName); in getStatusDescription()
/packages/apps/Nfc/src/com/android/nfc/handover/
DConfirmConnectActivity.java39 String deviceName = mDevice.getName() != null ? mDevice.getName() : ""; in onCreate() local
40 String confirmString = String.format(res.getString(R.string.confirm_pairing), deviceName); in onCreate()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java1914 String deviceName = mCurrentDevice.getName(); in getCurrentDeviceName() local
1915 if (deviceName == null) { in getCurrentDeviceName()
1918 return deviceName; in getCurrentDeviceName()