/packages/modules/Bluetooth/system/bta/test/gatt/ |
D | database_builder_sample_device_test.cc | 232 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_1_CHAR_1_UUID); in TEST() 233 EXPECT_EQ(service->characteristics[1].uuid, SERVICE_1_CHAR_2_UUID); in TEST() 234 EXPECT_EQ(service->characteristics[2].uuid, SERVICE_1_CHAR_3_UUID); in TEST() 241 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_3_CHAR_1_UUID); in TEST() 242 EXPECT_EQ(service->characteristics[0].descriptors[0].uuid, in TEST() 247 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_4_CHAR_1_UUID); in TEST() 248 EXPECT_EQ(service->characteristics[1].uuid, SERVICE_4_CHAR_2_UUID); in TEST() 249 EXPECT_EQ(service->characteristics[2].uuid, SERVICE_4_CHAR_3_UUID); in TEST() 250 EXPECT_EQ(service->characteristics[3].uuid, SERVICE_4_CHAR_4_UUID); in TEST() 251 EXPECT_EQ(service->characteristics[4].uuid, SERVICE_4_CHAR_5_UUID); in TEST() [all …]
|
D | database_builder_test.cc | 92 ASSERT_EQ(service->characteristics[0].uuid, SERVICE_1_CHAR_1_UUID); in TEST() 93 ASSERT_EQ(service->characteristics[0].declaration_handle, 0x0002); in TEST() 94 ASSERT_EQ(service->characteristics[0].value_handle, 0x0003); in TEST() 95 ASSERT_EQ(service->characteristics[0].properties, 0x02); in TEST() 97 ASSERT_EQ(service->characteristics[0].descriptors[0].uuid, in TEST() 99 ASSERT_EQ(service->characteristics[0].descriptors[0].handle, 0x0004); in TEST()
|
/packages/modules/Bluetooth/system/bta/gatt/ |
D | database_builder.cc | 106 service->characteristics.emplace_back(Characteristic{ in AddCharacteristic() 122 if (service->characteristics.empty()) { in AddDescriptor() 128 Characteristic* char_node = &service->characteristics.front(); in AddDescriptor() 129 for (auto it = service->characteristics.begin(); in AddDescriptor() 130 it != service->characteristics.end(); it++) { in AddDescriptor() 166 if (!service || service->characteristics.empty()) { in NextDescriptorRangeToExplore() 170 for (auto it = service->characteristics.cbegin(); in NextDescriptorRangeToExplore() 171 it != service->characteristics.cend(); it++) { in NextDescriptorRangeToExplore() 180 if (next != service->characteristics.end()) in NextDescriptorRangeToExplore() 202 Characteristic* char_node = &service->characteristics.front(); in FindDescriptorByHandle() [all …]
|
D | database.cc | 79 for (const Characteristic& c : service.characteristics) { in ToString() 116 for (const Characteristic& charac : service.characteristics) { in Serialize() 191 current_service_it->characteristics.emplace_back(Characteristic{ in Deserialize() 200 current_service_it->characteristics.back().descriptors.emplace_back( in Deserialize() 207 current_service_it->characteristics.back().descriptors.emplace_back( in Deserialize() 226 for (const Characteristic& c : service.characteristics) { in Hash() 276 for (const Characteristic& c : service.characteristics) { in Hash()
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | ConfigManager.cpp | 370 int32_t err = add_camera_metadata_entry(aCamera->characteristics, in constructCameraMetadata() 383 int32_t err = add_camera_metadata_entry(aCamera->characteristics, in constructCameraMetadata() 392 << get_camera_metadata_entry_count(aCamera->characteristics) in constructCameraMetadata() 394 << get_camera_metadata_entry_capacity(aCamera->characteristics) in constructCameraMetadata() 396 << get_camera_metadata_data_count(aCamera->characteristics) in constructCameraMetadata() 398 << get_camera_metadata_data_capacity(aCamera->characteristics) in constructCameraMetadata() 409 << get_camera_metadata_entry_count(aCamera->characteristics) in constructCameraMetadata() 411 << get_camera_metadata_entry_capacity(aCamera->characteristics) in constructCameraMetadata() 413 << get_camera_metadata_data_count(aCamera->characteristics) in constructCameraMetadata() 415 << get_camera_metadata_data_capacity(aCamera->characteristics) in constructCameraMetadata() [all …]
|
D | ConfigManager.h | 59 characteristics(nullptr) { in CameraInfo() 67 if (characteristics != nullptr) { in allocate() 72 characteristics = allocate_camera_metadata(entry_cap, data_cap); in allocate() 73 return characteristics != nullptr; in allocate() 97 camera_metadata_t *characteristics; variable
|
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/ |
D | ConfigManager.cpp | 336 add_camera_metadata_entry(aCamera->characteristics, in constructCameraMetadata() 349 add_camera_metadata_entry(aCamera->characteristics, tag, entry.first, entry.second); in constructCameraMetadata() 355 << get_camera_metadata_entry_count(aCamera->characteristics) << " / " in constructCameraMetadata() 356 << get_camera_metadata_entry_capacity(aCamera->characteristics) in constructCameraMetadata() 358 << get_camera_metadata_data_count(aCamera->characteristics) << " / " in constructCameraMetadata() 359 << get_camera_metadata_data_capacity(aCamera->characteristics) in constructCameraMetadata() 369 << get_camera_metadata_entry_count(aCamera->characteristics) << " / " in constructCameraMetadata() 370 << get_camera_metadata_entry_capacity(aCamera->characteristics) << " entries and " in constructCameraMetadata() 371 << get_camera_metadata_data_count(aCamera->characteristics) << " / " in constructCameraMetadata() 372 << get_camera_metadata_data_capacity(aCamera->characteristics) in constructCameraMetadata() [all …]
|
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | gatt.py | 57 self.characteristics = None 93 self.characteristics = None 309 self.characteristics = getCharacteristicsForServiceUuid(self.services, service_uuid) 325 assert self.characteristics is not None 327 assert all(handle in list(map(lambda char: char.handle, self.characteristics))\ 352 self.characteristics = getCharacteristicsRange(self.services,\ 364 assert self.characteristics is not None 366 for characteristic in self.characteristics: 383 assert self.characteristics is not None 384 assert len(self.characteristics) == 0 [all …]
|
/packages/modules/Bluetooth/system/service/common/android/bluetooth/ |
D | bluetooth_gatt_service.cc | 41 std::vector<BluetoothGattCharacteristic> characteristics; in writeToParcel() local 42 for (const auto& chrc : characteristics_) characteristics.push_back(chrc); in writeToParcel() 44 status = parcel->writeParcelableVector(characteristics); in writeToParcel() 69 std::vector<BluetoothGattCharacteristic> characteristics; in readFromParcel() local 70 status = parcel->readParcelableVector(&characteristics); in readFromParcel() 73 for (const auto& chrc : characteristics) characteristics_.push_back(chrc); in readFromParcel()
|
/packages/apps/Camera2/src/com/android/camera/one/config/ |
D | OneCameraFeatureConfigCreator.java | 61 public CaptureSupportLevel apply(CameraCharacteristics characteristics) { in buildCaptureModuleDetector() 65 getCaptureSupportLevelOverride(characteristics, contentResolver); in buildCaptureModuleDetector() 71 Integer supportedLevel = characteristics in buildCaptureModuleDetector() 112 if (supportsReprocessing(characteristics)) { in buildCaptureModuleDetector() 133 private static boolean supportsReprocessing(CameraCharacteristics characteristics) { 134 Integer maxNumInputStreams = characteristics.get( 144 int[] capabilities = characteristics.get(
|
/packages/modules/Bluetooth/system/service/common/bluetooth/ |
D | service.h | 30 const std::vector<Characteristic>& characteristics, in Service() argument 35 characteristics_(characteristics), in Service() 48 const std::vector<Characteristic>& characteristics() const { in characteristics() function 51 std::vector<Characteristic>& characteristics() { return characteristics_; } in characteristics() function
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | PublishConfig.java | 215 public void assertValid(Characteristics characteristics, boolean rttSupported) in assertValid() argument 233 if (characteristics != null) { in assertValid() 234 int maxServiceNameLength = characteristics.getMaxServiceNameLength(); in assertValid() 239 int maxServiceSpecificInfoLength = characteristics.getMaxServiceSpecificInfoLength(); in assertValid() 245 int maxMatchFilterLength = characteristics.getMaxMatchFilterLength(); in assertValid() 253 && characteristics.isInstantCommunicationModeSupported()) { in assertValid() 259 if (mSecurityConfig != null && (characteristics.getSupportedCipherSuites() in assertValid()
|
D | SubscribeConfig.java | 248 public void assertValid(Characteristics characteristics, boolean rttSupported) in assertValid() argument 263 if (characteristics != null) { in assertValid() 264 int maxServiceNameLength = characteristics.getMaxServiceNameLength(); in assertValid() 269 int maxServiceSpecificInfoLength = characteristics.getMaxServiceSpecificInfoLength(); in assertValid() 275 int maxMatchFilterLength = characteristics.getMaxMatchFilterLength(); in assertValid() 283 && characteristics.isInstantCommunicationModeSupported()) { in assertValid()
|
/packages/modules/Bluetooth/system/service/ |
D | gatt_server_old.cc | 106 std::unordered_map<int, Characteristic> characteristics; member 168 g_internal->characteristics[char_handle].uuid = id; in ServiceAddedCallback() 169 g_internal->characteristics[char_handle].blob_section = 0; in ServiceAddedCallback() 178 g_internal->characteristics[blob_attribute].notify = in ServiceAddedCallback() 182 g_internal->characteristics[control_attribute]; in ServiceAddedCallback() 215 g_internal->characteristics[attr_handle]; in RequestReadCallback() 266 g_internal->characteristics[attr_handle]; in RequestWriteCallback() 276 g_internal->characteristics[target_blob->second].blob_section = ch.blob[0]; in RequestWriteCallback() 636 internal_->characteristics[handle].notify = properties & kPropertyNotify; in AddCharacteristic() 709 Characteristic& ch = internal_->characteristics[attribute_id]; in SetCharacteristicValue() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | SimpleOneCameraFactory.java | 101 final OneCameraCharacteristics characteristics, in createOneCamera() argument 181 characteristics, in createOneCamera() 218 characteristics.isContinuousPictureAutoFocusSupported()) in createOneCamera() 248 float maxZoom = characteristics.getAvailableMaxDigitalZoom(); in createOneCamera() 249 List<Size> supportedPreviewSizes = characteristics.getSupportedPreviewSizes(); in createOneCamera() 250 OneCamera.Facing direction = characteristics.getCameraDirection(); in createOneCamera() 254 characteristics.getLensFocusRange(), direction) in createOneCamera()
|
D | ZslOneCameraFactory.java | 134 final OneCameraCharacteristics characteristics, in createOneCamera() argument 222 boolean isBackCamera = characteristics.getCameraDirection() == in createOneCamera() 232 characteristics, in createOneCamera() 321 float maxZoom = characteristics.getAvailableMaxDigitalZoom(); in createOneCamera() 322 List<Size> supportedPreviewSizes = characteristics.getSupportedPreviewSizes(); in createOneCamera() 323 OneCamera.Facing direction = characteristics.getCameraDirection(); in createOneCamera() 326 supportedPreviewSizes, characteristics.getLensFocusRange(), in createOneCamera()
|
D | OneCameraImpl.java | 319 OneCameraImpl(CameraDevice device, CameraCharacteristics characteristics, Size pictureSize) { in OneCameraImpl() argument 321 mCharacteristics = characteristics; in OneCameraImpl() 322 mLensRange = LensRangeCalculator.getDiopterToRatioCalculator(characteristics); in OneCameraImpl() 323 mDirectionProvider = new CameraDirectionProvider(characteristics); in OneCameraImpl() 324 mFullSizeAspectRatio = calculateFullSizeAspectRatio(characteristics); in OneCameraImpl() 751 private static float calculateFullSizeAspectRatio(CameraCharacteristics characteristics) { in calculateFullSizeAspectRatio() argument 753 characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in calculateFullSizeAspectRatio() 801 CameraCharacteristics characteristics, File dngFile) { in writeDngBytesAndClose() argument 802 try (DngCreator dngCreator = new DngCreator(characteristics, captureResult); in writeDngBytesAndClose()
|
/packages/services/Car/cpp/evs/sampleDriver/aidl/include/ |
D | ConfigManager.h | 60 CameraInfo() : characteristics(nullptr) {} in CameraInfo() 66 if (characteristics != nullptr) { in allocate() 71 characteristics = allocate_camera_metadata(entry_cap, data_cap); in allocate() 72 return characteristics != nullptr; in allocate() 95 camera_metadata_t* characteristics; variable
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/ |
D | MediaControlGattService.java | 1848 List<Pair<UUID, CharacteristicData>> characteristics = new ArrayList<>(); in getUuidCharacteristicList() local 1849 characteristics.add(new Pair<>(UUID_PLAYER_NAME, in getUuidCharacteristicList() 1853 characteristics.add(new Pair<>(UUID_PLAYER_ICON_OBJ_ID, in getUuidCharacteristicList() 1857 characteristics.add(new Pair<>(UUID_PLAYER_ICON_URL, in getUuidCharacteristicList() 1861 characteristics.add(new Pair<>(UUID_TRACK_CHANGED, in getUuidCharacteristicList() 1865 characteristics.add(new Pair<>(UUID_TRACK_TITLE, in getUuidCharacteristicList() 1869 characteristics.add(new Pair<>(UUID_TRACK_DURATION, in getUuidCharacteristicList() 1873 characteristics.add(new Pair<>(UUID_TRACK_POSITION, in getUuidCharacteristicList() 1878 characteristics.add(new Pair<>(UUID_PLAYBACK_SPEED, in getUuidCharacteristicList() 1883 characteristics.add(new Pair<>(UUID_SEEKING_SPEED, in getUuidCharacteristicList() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/focus/ |
D | LensRangeCalculator.java | 44 public static LinearScale getDiopterToRatioCalculator(CameraCharacteristics characteristics) { in getDiopterToRatioCalculator() argument 55 Float nearest = characteristics.get(CameraCharacteristics.LENS_INFO_MINIMUM_FOCUS_DISTANCE); in getDiopterToRatioCalculator() 56 Float hyperfocal = characteristics.get(CameraCharacteristics.LENS_INFO_HYPERFOCAL_DISTANCE); in getDiopterToRatioCalculator()
|
/packages/apps/Camera2/src_pd/com/android/camera/one/v2/ |
D | OneCameraCreator.java | 50 CameraCharacteristics characteristics, in create() argument 63 .getCaptureSupportLevel(characteristics); in create() 67 new OneCameraCharacteristicsImpl(characteristics); in create() 121 new OneCameraCharacteristicsImpl(characteristics), in create()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/ |
D | ImageRotationCalculatorImpl.java | 59 OneCameraCharacteristics characteristics) { in from() argument 60 int sensorOrientation = characteristics.getSensorOrientation(); in from() 61 OneCamera.Facing lensDirection = characteristics.getCameraDirection(); in from()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 757 Characteristics characteristics = cap.toPublicCharacteristics(); in testCapabilityTranslation() local 758 assertEquals(characteristics.getMaxServiceNameLength(), maxServiceName); in testCapabilityTranslation() 759 assertEquals(characteristics.getMaxServiceSpecificInfoLength(), maxServiceSpecificInfo); in testCapabilityTranslation() 760 assertEquals(characteristics.getMaxMatchFilterLength(), maxMatchFilter); in testCapabilityTranslation() 761 assertEquals(characteristics.getSupportedCipherSuites(), in testCapabilityTranslation() 763 assertEquals(characteristics.getNumberOfSupportedDataPaths(), 1); in testCapabilityTranslation() 764 assertEquals(characteristics.getNumberOfSupportedDataInterfaces(), 1); in testCapabilityTranslation() 765 assertEquals(characteristics.getNumberOfSupportedPublishSessions(), 2); in testCapabilityTranslation() 766 assertEquals(characteristics.getNumberOfSupportedSubscribeSessions(), 2); in testCapabilityTranslation() 768 assertEquals(characteristics.isInstantCommunicationModeSupported(), true); in testCapabilityTranslation()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/flashlight/ |
D | FlashlightSliceTest.java | 84 final CameraCharacteristics characteristics = in isFlashlightAvailable_nullSecureAttr_hasFlashUnit_returnTrue() local 86 final ShadowCameraCharacteristics shadowCharacteristics = Shadow.extract(characteristics); in isFlashlightAvailable_nullSecureAttr_hasFlashUnit_returnTrue() 90 mShadowCameraManager.addCamera("camera_id", characteristics); in isFlashlightAvailable_nullSecureAttr_hasFlashUnit_returnTrue()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | SelfManagedAnswerVideoCallScreen.java | 155 CameraCharacteristics characteristics; in getFrontFacingCameraSizes() local 157 characteristics = manager.getCameraCharacteristics(cameraId); in getFrontFacingCameraSizes() 166 if (characteristics.get(CameraCharacteristics.LENS_FACING) in getFrontFacingCameraSizes() 172 characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in getFrontFacingCameraSizes()
|