/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/test/ |
H A D | DeviceTest.cpp | 300 TEST(DeviceTest, getSupportedOperations) { in TEST() argument 308 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST() 311 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 329 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST() 332 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 343 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST() 348 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 359 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST() 364 const auto result = device->getSupportedOperations(kSimpleModel); in TEST()
|
H A D | MockDevice.h | 38 MOCK_METHOD(Return<void>, getSupportedOperations,
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | CameraShortcutImage.java | 31 public int getSupportedOperations() { in getSupportedOperations() method in CameraShortcutImage 32 return super.getSupportedOperations() | SUPPORT_CAMERA_SHORTCUT; in getSupportedOperations()
|
H A D | EmptyAlbumImage.java | 31 public int getSupportedOperations() { in getSupportedOperations() method in EmptyAlbumImage 32 return super.getSupportedOperations() | SUPPORT_BACK; in getSupportedOperations()
|
H A D | UnlockImage.java | 31 public int getSupportedOperations() { in getSupportedOperations() method in UnlockImage 32 return super.getSupportedOperations() | SUPPORT_UNLOCK; in getSupportedOperations()
|
H A D | FilterTypeSet.java | 121 public int getSupportedOperations() { in getSupportedOperations() method in FilterTypeSet 130 if ((item.getSupportedOperations() & SUPPORT_DELETE) != 0) { in delete()
|
H A D | ClusterAlbum.java | 122 public int getSupportedOperations() { in getSupportedOperations() method in ClusterAlbum 131 if ((item.getSupportedOperations() & SUPPORT_DELETE) != 0) { in delete()
|
H A D | LocalMergeAlbum.java | 78 supported &= mSources[i].getSupportedOperations(); in updateData() 195 public int getSupportedOperations() { in getSupportedOperations() method in LocalMergeAlbum
|
/aosp12/hardware/interfaces/neuralnetworks/utils/common/test/ |
H A D | ResilientDeviceTest.cpp | 249 TEST(ResilientDeviceTest, getSupportedOperations) { in TEST() argument 252 EXPECT_CALL(*mockDevice, getSupportedOperations(_)) in TEST() 257 const auto result = device->getSupportedOperations({}); in TEST() 267 EXPECT_CALL(*mockDevice, getSupportedOperations(_)).Times(1).WillOnce(kReturnGeneralFailure); in TEST() 270 const auto result = device->getSupportedOperations({}); in TEST() 280 EXPECT_CALL(*mockDevice, getSupportedOperations(_)).Times(1).WillOnce(kReturnDeadObject); in TEST() 284 const auto result = device->getSupportedOperations({}); in TEST() 294 EXPECT_CALL(*mockDevice, getSupportedOperations(_)).Times(1).WillOnce(kReturnDeadObject); in TEST() 296 EXPECT_CALL(*recoveredMockDevice, getSupportedOperations(_)) in TEST() 302 const auto result = device->getSupportedOperations({}); in TEST()
|
H A D | MockDevice.h | 37 MOCK_METHOD(GeneralResult<std::vector<bool>>, getSupportedOperations, (const Model& model),
|
/aosp12/hardware/interfaces/neuralnetworks/1.1/utils/test/ |
H A D | DeviceTest.cpp | 82 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(0); in createMockDevice() 310 TEST(DeviceTest, getSupportedOperations) { in TEST() argument 321 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 342 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 358 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 374 const auto result = device->getSupportedOperations(kSimpleModel); in TEST()
|
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
H A D | DeviceTest.cpp | 490 TEST(DeviceTest, getSupportedOperations) { in TEST() argument 494 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST() 501 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 515 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST() 520 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 531 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST() 536 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 547 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST() 552 const auto result = device->getSupportedOperations(kSimpleModel); in TEST()
|
/aosp12/hardware/interfaces/neuralnetworks/utils/adapter/src/ |
H A D | Device.cpp | 125 nn::GeneralResult<hidl_vec<bool>> getSupportedOperations(const nn::SharedDevice& device, in getSupportedOperations() function 128 return NN_TRY(device->getSupportedOperations(nnModel)); in getSupportedOperations() 387 Return<void> Device::getSupportedOperations(const V1_0::Model& model, in getSupportedOperations() function in android::hardware::neuralnetworks::adapter::Device 389 const auto result = adapter::getSupportedOperations(kDevice, model); in getSupportedOperations() 403 const auto result = adapter::getSupportedOperations(kDevice, model); in getSupportedOperations_1_1() 417 const auto result = adapter::getSupportedOperations(kDevice, model); in getSupportedOperations_1_2() 431 const auto result = adapter::getSupportedOperations(kDevice, model); in getSupportedOperations_1_3()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | PhotoPage.java | 341 … && (mCurrentPhoto.getSupportedOperations() & MediaObject.SUPPORT_ACTION) != 0) { in onCreate() 590 && (mCurrentPhoto.getSupportedOperations() & MediaItem.SUPPORT_EDIT) != 0 in canDisplayBottomControl() 680 if (current == null || (current.getSupportedOperations() in launchPhotoEditor() 702 if (current == null || (current.getSupportedOperations() in launchSimpleEditor() 736 if ((mCurrentPhoto.getSupportedOperations() & MediaObject.SUPPORT_ACTION) != 0 in updateUIForCurrentPhoto() 747 && (mCurrentPhoto.getSupportedOperations() & MediaItem.SUPPORT_SHARE) != 0) { in updateUIForCurrentPhoto() 774 int supportedOperations = mCurrentPhoto.getSupportedOperations(); in updateMenuOperations() 1140 int supported = item.getSupportedOperations(); in onSingleTapUp() 1496 } else if ((mCurrentPhoto.getSupportedOperations() & MediaObject.SUPPORT_SHARE) != 0) { in updatePanoramaUI()
|
H A D | SinglePhotoDataAdapter.java | 59 mHasFullImage = (item.getSupportedOperations() & in SinglePhotoDataAdapter() 231 return (mItem.getSupportedOperations() & MediaItem.SUPPORT_DELETE) != 0; in isDeletable()
|
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/src/ |
H A D | Device.cpp | 127 nn::GeneralResult<std::vector<bool>> Device::getSupportedOperations(const nn::Model& model) const { in getSupportedOperations() function in android::hardware::neuralnetworks::V1_0::utils::Device 137 const auto ret = kDevice->getSupportedOperations(hidlModel, cb); in getSupportedOperations()
|
/aosp12/packages/modules/NeuralNetworks/driver/sample_aidl/ |
H A D | SampleDriverFull.h | 33 ndk::ScopedAStatus getSupportedOperations(const aidl_hal::Model& model,
|
H A D | SampleDriverPartial.h | 41 ndk::ScopedAStatus getSupportedOperations(const aidl_hal::Model& model,
|
H A D | SampleDriverFull.cpp | 46 ndk::ScopedAStatus SampleDriverFull::getSupportedOperations( in getSupportedOperations() function in android::nn::sample_driver::SampleDriverFull
|
H A D | SampleDriverPartial.cpp | 38 ndk::ScopedAStatus SampleDriverPartial::getSupportedOperations( in getSupportedOperations() function in android::nn::sample_driver::SampleDriverPartial
|
/aosp12/hardware/interfaces/neuralnetworks/1.0/ |
H A D | IDevice.hal | 39 * getSupportedOperations indicates which operations of a model are fully 41 * any reason, getSupportedOperations must return false for that operation. 57 getSupportedOperations(Model model)
|
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/test/ |
H A D | DeviceTest.cpp | 94 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(0); in createMockDevice() 556 TEST(DeviceTest, getSupportedOperations) { in TEST() argument 567 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 588 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 604 const auto result = device->getSupportedOperations(kSimpleModel); in TEST() 620 const auto result = device->getSupportedOperations(kSimpleModel); in TEST()
|
/aosp12/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/ |
H A D | IDevice.aidl | 41 boolean[] getSupportedOperations(in android.hardware.neuralnetworks.Model model); in getSupportedOperations() method
|
/aosp12/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/ |
H A D | IDevice.aidl | 41 boolean[] getSupportedOperations(in android.hardware.neuralnetworks.Model model); in getSupportedOperations() method
|
/aosp12/packages/modules/NeuralNetworks/driver/sample/ |
H A D | CanonicalDevice.h | 52 GeneralResult<std::vector<bool>> getSupportedOperations(const Model& model) const override;
|