Home
last modified time | relevance | path

Searched refs:DeviceType (Results 1 – 25 of 50) sorted by relevance

12

/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DDevice.java48 @DeviceType private int mType = DEVICE_TYPE_UNKNOWN;
68 public Builder setType(@DeviceType int type) { in setType()
93 @DeviceType private final int mType;
100 private Device(String manufacturer, String model, @DeviceType int type) { in Device()
101 validateIntDefValue(type, Device.VALID_TYPES, DeviceType.class.getSimpleName()); in Device()
126 @DeviceType
190 public @interface DeviceType {} annotation in Device
/packages/modules/Connectivity/remoteauth/service/java/com/android/server/remoteauth/connectivity/
DDiscoveryFilter.java39 public @interface DeviceType {} annotation in DiscoveryFilter
41 private @DeviceType int mDeviceType;
46 @DeviceType int deviceType, @Nullable String deviceName, @Nullable String peerAddress) { in DiscoveryFilter()
57 public @DeviceType int getDeviceType() { in getDeviceType()
81 private @DeviceType int mDeviceType;
98 public Builder setDeviceType(@DeviceType int deviceType) { in setDeviceType()
DCdmConnectivityManager.java19 import static com.android.server.remoteauth.connectivity.DiscoveryFilter.DeviceType;
110 private String getDeviceProfileFromType(@DeviceType int deviceType) { in getDeviceProfileFromType()
/packages/modules/Bluetooth/system/gd/hci/
Denum_helper.h28 enum DeviceType { UNKNOWN = 0, BR_EDR = 1, LE = 2, DUAL = 3 }; enum
36 template <typename T, typename std::enable_if<std::is_same_v<T, hci::DeviceType>, int>::type = 0>
37 std::optional<hci::DeviceType> FromLegacyConfigString(const std::string& str) { in FromLegacyConfigString()
42 if (*raw_value < hci::DeviceType::UNKNOWN || *raw_value > hci::DeviceType::DUAL) { in FromLegacyConfigString()
45 return static_cast<hci::DeviceType>(*raw_value); in FromLegacyConfigString()
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DPresenceDevice.java45 DeviceType.UNKNOWN,
46 DeviceType.PHONE,
47 DeviceType.TABLET,
48 DeviceType.DISPLAY,
49 DeviceType.LAPTOP,
50 DeviceType.TV,
51 DeviceType.WATCH,
53 public @interface DeviceType { annotation in PresenceDevice
114 @DeviceType
373 public Builder setDeviceType(@DeviceType int deviceType) { in setDeviceType()
/packages/modules/Bluetooth/system/gd/security/record/
Dsecurity_record_storage.cc33 if (*device.GetDeviceType() == hci::DeviceType::LE) { in SetClassicData()
44 if (*device.GetDeviceType() == hci::DeviceType::BR_EDR) { in SetLeData()
118 mutation.Add(device.SetDeviceType(hci::DeviceType::BR_EDR)); in SaveSecurityRecords()
120 mutation.Add(device.SetDeviceType(hci::DeviceType::DUAL)); in SaveSecurityRecords()
122 mutation.Add(device.SetDeviceType(hci::DeviceType::LE)); in SaveSecurityRecords()
124 mutation.Add(device.SetDeviceType(hci::DeviceType::LE)); in SaveSecurityRecords()
139 …auto address_type = (device.GetDeviceType() == hci::DeviceType::BR_EDR) ? hci::AddressType::PUBLIC… in LoadSecurityRecords()
144 if (device.GetDeviceType() != hci::DeviceType::LE) { in LoadSecurityRecords()
147 if (device.GetDeviceType() != hci::DeviceType::BR_EDR) { in LoadSecurityRecords()
/packages/modules/Bluetooth/system/gd/storage/
Dconfig_cache_test.cc294 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST()
306 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST()
312 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST()
322 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST()
334 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST()
340 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST()
351 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::DUAL)))); in TEST()
363 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST()
369 std::to_string(bluetooth::hci::DeviceType::BR_EDR)); in TEST()
379 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::LE)))); in TEST()
[all …]
Ddevice.cc32 using hci::DeviceType;
101 device_type == DeviceType::LE || device_type == DeviceType::DUAL, in Le()
110 device_type == DeviceType::BR_EDR || device_type == DeviceType::DUAL, in Classic()
Ddevice_test.cc28 using bluetooth::hci::DeviceType;
132 mutation.Add(device.SetDeviceType(DeviceType::BR_EDR)); in TEST()
135 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::BR_EDR))); in TEST()
138 mutation.Add(device.SetDeviceType(DeviceType::LE)); in TEST()
141 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::DUAL))); in TEST()
156 mutation.Add(device.SetDeviceType(DeviceType::BR_EDR)); in TEST()
159 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::BR_EDR))); in TEST()
172 mutation.Add(device.SetDeviceType(DeviceType::LE)); in TEST()
175 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::LE))); in TEST()
188 mutation.Add(device.SetDeviceType(DeviceType::DUAL)); in TEST()
[all …]
Ddevice.h192 DeviceType, hci::DeviceType, BTIF_STORAGE_KEY_DEV_TYPE, {
193 return static_cast<hci::DeviceType>(
194 value | GetDeviceType().value_or(hci::DeviceType::UNKNOWN));
Dconfig_cache.cc456 device_type_iter->second == std::to_string(hci::DeviceType::DUAL)) { in FixDeviceTypeInconsistencyInSection()
467 hci::DeviceType device_type = hci::DeviceType::BR_EDR; in FixDeviceTypeInconsistencyInSection()
477 device_type = hci::DeviceType::DUAL; in FixDeviceTypeInconsistencyInSection()
479 device_type = hci::DeviceType::BR_EDR; in FixDeviceTypeInconsistencyInSection()
481 device_type = hci::DeviceType::LE; in FixDeviceTypeInconsistencyInSection()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pWfdInfo.java59 public @interface DeviceType {} annotation in WifiP2pWfdInfo
279 public boolean setR2DeviceType(@DeviceType int deviceType) { in setR2DeviceType()
299 @DeviceType
309 @DeviceType
321 public boolean setDeviceType(@DeviceType int deviceType) { in setDeviceType()
/packages/modules/Virtualization/vmbase/example/src/
Dpci.rs26 DeviceType, Transport,
49 DeviceType::Block => { in check_pci()
54 DeviceType::Console => { in check_pci()
58 DeviceType::Socket => { in check_pci()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DDeviceGridState.java19 import static com.android.launcher3.InvariantDeviceProfile.DeviceType;
53 private final @DeviceType int mDeviceType;
81 public @DeviceType int getDeviceType() { in getDeviceType()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DDeviceInfoHelper.java31 import android.health.connect.datatypes.Device.DeviceType;
222 @DeviceType private final int mDeviceType;
224 DeviceInfo(String manufacturer, String model, @DeviceType int deviceType) { in DeviceInfo()
/packages/modules/Uwb/generic_ranging/src/com/android/ranging/generic/ranging/
DUwbAdapter.java75 DeviceType deviceType) in UwbAdapter()
90 ? (deviceType == DeviceType.CONTROLEE) ? Optional.of( in UwbAdapter()
365 public enum DeviceType {
/packages/modules/NeuralNetworks/common/types/src/
DTypeUtils.cpp333 std::ostream& operator<<(std::ostream& os, const DeviceType& deviceType) { in operator <<()
335 case DeviceType::UNKNOWN: in operator <<()
337 case DeviceType::OTHER: in operator <<()
339 case DeviceType::CPU: in operator <<()
341 case DeviceType::GPU: in operator <<()
343 case DeviceType::ACCELERATOR: in operator <<()
/packages/modules/Virtualization/rialto/src/
Dmain.rs44 transport::{pci::bus::PciRoot, DeviceType, Transport},
196 .find(|t| DeviceType::Socket == t.device_type()) in find_socket_device()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DRecordInternal.java234 @Device.DeviceType
240 public RecordInternal<T> setDeviceType(@Device.DeviceType int deviceType) { in setDeviceType()
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalDevice.cpp116 DeviceType Device::getType() const { in getType()
117 return DeviceType::CPU; in getType()
DCanonicalDevice.h45 DeviceType getType() const override;
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java89 public @interface DeviceType {} annotation in InvariantDeviceProfile
134 public @DeviceType int deviceType;
267 @DeviceType int defaultDeviceType = defaultInfo.getDeviceType(); in InvariantDeviceProfile()
276 @DeviceType int deviceType = myInfo.getDeviceType(); in InvariantDeviceProfile()
340 @DeviceType int deviceType = displayInfo.getDeviceType(); in initGrid()
366 @DeviceType int deviceType) { in initGrid()
525 String gridName, @DeviceType int deviceType, boolean allowDisabledGrid) { in getPredefinedDeviceProfiles()
707 Info displayInfo, ArrayList<DisplayOption> points, @DeviceType int deviceType) { in invDistWeightedInterpolate()
1038 public boolean isEnabled(@DeviceType int deviceType) { in isEnabled()
/packages/modules/Virtualization/pvmfw/src/
Dinstance.rs29 use virtio_drivers::transport::{pci::bus::PciRoot, DeviceType, Transport};
179 .filter(|t| DeviceType::Block == t.device_type()) in find_instance_img()
/packages/modules/Uwb/generic_ranging/tests/multidevices/snippet/
DGenericRangingSnippet.java205 uwbAdapter = new UwbAdapter(mContext, mExecutor, UwbAdapter.DeviceType.CONTROLEE); in startUwbRanging()
208 uwbAdapter = new UwbAdapter(mContext, mExecutor, UwbAdapter.DeviceType.CONTROLLER); in startUwbRanging()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DIDevice.h92 virtual DeviceType getType() const = 0;

12