Home
last modified time | relevance | path

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

/aosp12/packages/services/Mtp/src/com/android/mtp/
H A 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()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothProfileManager.java130 if (CollectionUtils.isEmpty(supportedList)) { in updateLocalProfiles()
134 if (mA2dpProfile == null && supportedList.contains(BluetoothProfile.A2DP)) { in updateLocalProfiles()
140 if (mA2dpSinkProfile == null && supportedList.contains(BluetoothProfile.A2DP_SINK)) { in updateLocalProfiles()
146 if (mHeadsetProfile == null && supportedList.contains(BluetoothProfile.HEADSET)) { in updateLocalProfiles()
162 if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) { in updateLocalProfiles()
168 if (mMapProfile == null && supportedList.contains(BluetoothProfile.MAP)) { in updateLocalProfiles()
173 if (mOppProfile == null && supportedList.contains(BluetoothProfile.OPP)) { in updateLocalProfiles()
186 if (mHidProfile == null && supportedList.contains(BluetoothProfile.HID_HOST)) { in updateLocalProfiles()
198 if (mPanProfile == null && supportedList.contains(BluetoothProfile.PAN)) { in updateLocalProfiles()
204 if (mPbapProfile == null && supportedList.contains(BluetoothProfile.PBAP)) { in updateLocalProfiles()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DAccessibilityHearingAidPreferenceController.java175 final List<Integer> supportedList = mBluetoothAdapter.getSupportedProfiles(); in isHearingAidProfileSupported() local
176 if (supportedList.contains(BluetoothProfile.HEARING_AID)) { in isHearingAidProfileSupported()