Home
last modified time | relevance | path

Searched refs:supportedList (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDeviceRecord.java46 static boolean isSupported(@Nullable int[] supportedList, int code) { in isSupported() argument
47 if (supportedList == null) { in isSupported()
50 for (int i = 0; i < supportedList.length; i++) { in isSupported()
51 if (supportedList[i] == code) { in isSupported()
58 static boolean isPartialReadSupported(@Nullable int[] supportedList, long fileSize) { in isPartialReadSupported() argument
59 if (isSupported(supportedList, MtpConstants.OPERATION_GET_PARTIAL_OBJECT_64)) { in isPartialReadSupported()
64 isSupported(supportedList, MtpConstants.OPERATION_GET_PARTIAL_OBJECT)) { in isPartialReadSupported()
70 static boolean isWritingSupported(@Nullable int[] supportedList) { in isWritingSupported() argument
71 return isSupported(supportedList, MtpConstants.OPERATION_SEND_OBJECT_INFO) && in isWritingSupported()
72 isSupported(supportedList, MtpConstants.OPERATION_SEND_OBJECT); in isWritingSupported()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManager.java128 List<Integer> supportedList = BluetoothAdapter.getDefaultAdapter().getSupportedProfiles(); in updateLocalProfiles() local
129 if (CollectionUtils.isEmpty(supportedList)) { in updateLocalProfiles()
133 if (mA2dpProfile == null && supportedList.contains(BluetoothProfile.A2DP)) { in updateLocalProfiles()
139 if (mA2dpSinkProfile == null && supportedList.contains(BluetoothProfile.A2DP_SINK)) { in updateLocalProfiles()
145 if (mHeadsetProfile == null && supportedList.contains(BluetoothProfile.HEADSET)) { in updateLocalProfiles()
153 if (mHfpClientProfile == null && supportedList.contains(BluetoothProfile.HEADSET_CLIENT)) { in updateLocalProfiles()
161 if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) { in updateLocalProfiles()
167 if (mMapProfile == null && supportedList.contains(BluetoothProfile.MAP)) { in updateLocalProfiles()
172 if (mOppProfile == null && supportedList.contains(BluetoothProfile.OPP)) { in updateLocalProfiles()
178 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles()
[all …]