Home
last modified time | relevance | path

Searched refs:deviceName (Results 1 – 19 of 19) 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/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/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
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()
47 return SettingsFragment.newInstance(deviceAddress, deviceName, deviceImgId); in createSettingsFragment()
52 public static SettingsFragment newInstance(String deviceAddress, String deviceName, in newInstance() argument
56 b.putString(EXTRA_ACCESSORY_NAME, deviceName); in newInstance()
67 String deviceName = args.getString(EXTRA_ACCESSORY_NAME); in onPreferenceStartInitialScreen() local
70 BluetoothAccessoryFragment.newInstance(deviceAddress, deviceName, deviceImgId)); in onPreferenceStartInitialScreen()
DBluetoothAccessoryFragment.java100 public static BluetoothAccessoryFragment newInstance(String deviceAddress, String deviceName, in newInstance() argument
103 prepareArgs(b, deviceAddress, deviceName, deviceImgId); in newInstance()
109 public static void prepareArgs(Bundle b, String deviceAddress, String deviceName, in prepareArgs() argument
112 b.putString(ARG_ACCESSORY_NAME, deviceName); in prepareArgs()
320 public static void prepareArgs(@NonNull Bundle args, String deviceName, in prepareArgs() argument
322 args.putString(ARG_ACCESSORY_NAME, deviceName); in prepareArgs()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothNameDialogFragment.java92 String deviceName = mLocalAdapter.getName(); in onCreateDialog() local
94 deviceName = savedInstanceState.getString(KEY_NAME, deviceName); in onCreateDialog()
99 .setView(createDialogView(deviceName)) in onCreateDialog()
103 String deviceName = mDeviceNameView.getText().toString(); in onCreateDialog()
104 setDeviceName(deviceName); in onCreateDialog()
115 private void setDeviceName(String deviceName) { in setDeviceName() argument
116 Log.d(TAG, "Setting device name to " + deviceName); in setDeviceName()
117 mLocalAdapter.setName(deviceName); in setDeviceName()
126 private View createDialogView(String deviceName) { in createDialogView() argument
134 mDeviceNameView.setText(deviceName); // set initial value before adding listener in createDialogView()
DLocalBluetoothPreferences.java66 String deviceAddress, String deviceName) { in shouldShowDialogInForeground() argument
121 if (!TextUtils.isEmpty(deviceName)) { in shouldShowDialogInForeground()
125 if (deviceName.equals(packagedKeyboardName)) { in shouldShowDialogInForeground()
DDeviceProfilesSettings.java102 final EditText deviceName = (EditText) mRootView.findViewById(R.id.name); in onCreateDialog() local
103 deviceName.setText(mCachedDevice.getName(), TextView.BufferType.EDITABLE); in onCreateDialog()
116 EditText deviceName = (EditText) mRootView.findViewById(R.id.name); in onClick() local
117 mCachedDevice.setName(deviceName.getText().toString()); in onClick()
DBluetoothPairingRequest.java68 String deviceName = device != null ? device.getName() : null; in onReceive() local
70 context, deviceAddress, deviceName); in onReceive()
DBluetoothPermissionRequest.java110 String deviceName = mDevice != null ? mDevice.getName() : null; in onReceive() local
118 context, deviceAddress, deviceName)) { in onReceive()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPeer.java43 if (TextUtils.isEmpty(device.deviceName)) { in WifiP2pPeer()
46 setTitle(device.deviceName); in WifiP2pPeer()
78 if (device.deviceName != null) { in compareTo()
79 return device.deviceName.compareToIgnoreCase(other.device.deviceName); in compareTo()
DWifiP2pSettings.java432 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog() local
434 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
438 deviceName, mConnectedDevices - 1); in onCreateDialog()
440 msg = getActivity().getString(R.string.wifi_p2p_disconnect_message, deviceName); in onCreateDialog()
451 String deviceName = TextUtils.isEmpty(mSelectedWifiPeer.device.deviceName) ? in onCreateDialog() local
453 mSelectedWifiPeer.device.deviceName; in onCreateDialog()
457 .setMessage(getActivity().getString(stringId, deviceName)) in onCreateDialog()
468 } else if (mThisDevice != null && !TextUtils.isEmpty(mThisDevice.deviceName)) { in onCreateDialog()
469 mDeviceNameText.setText(mThisDevice.deviceName); in onCreateDialog()
470 mDeviceNameText.setSelection(0, mThisDevice.deviceName.length()); in onCreateDialog()
[all …]
/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.java283 public static String getStatusDescription(Context context, int statusCode, String deviceName) { in getStatusDescription() argument
304 ret = context.getString(R.string.bt_sm_2_1, deviceName); in getStatusDescription()
/packages/apps/Nfc/src/com/android/nfc/handover/
DConfirmConnectActivity.java41 String deviceName = mDevice.getName() != null ? mDevice.getName() : ""; in onCreate() local
42 String confirmString = String.format(res.getString(R.string.confirm_pairing), deviceName); in onCreate()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DPhysicalKeyboardFragment.java384 @Nullable final String deviceName, in HardKeyboardDeviceInfo()
386 mDeviceName = deviceName != null ? deviceName : ""; in HardKeyboardDeviceInfo()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java2596 String deviceName = mCurrentDevice.getName(); in getCurrentDeviceName() local
2597 if (deviceName == null) { in getCurrentDeviceName()
2600 return deviceName; in getCurrentDeviceName()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java3286 String deviceName = device.getName(); in getCurrentDeviceName() local
3287 if (deviceName == null) { in getCurrentDeviceName()
3290 return deviceName; in getCurrentDeviceName()