Home
last modified time | relevance | path

Searched refs:getSupportedOperations (Results 1 – 25 of 90) sorted by relevance

1234

/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/test/
H A DDeviceTest.cpp300 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 DMockDevice.h38 MOCK_METHOD(Return<void>, getSupportedOperations,
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DCameraShortcutImage.java31 public int getSupportedOperations() { in getSupportedOperations() method in CameraShortcutImage
32 return super.getSupportedOperations() | SUPPORT_CAMERA_SHORTCUT; in getSupportedOperations()
H A DEmptyAlbumImage.java31 public int getSupportedOperations() { in getSupportedOperations() method in EmptyAlbumImage
32 return super.getSupportedOperations() | SUPPORT_BACK; in getSupportedOperations()
H A DUnlockImage.java31 public int getSupportedOperations() { in getSupportedOperations() method in UnlockImage
32 return super.getSupportedOperations() | SUPPORT_UNLOCK; in getSupportedOperations()
H A DFilterTypeSet.java121 public int getSupportedOperations() { in getSupportedOperations() method in FilterTypeSet
130 if ((item.getSupportedOperations() & SUPPORT_DELETE) != 0) { in delete()
H A DClusterAlbum.java122 public int getSupportedOperations() { in getSupportedOperations() method in ClusterAlbum
131 if ((item.getSupportedOperations() & SUPPORT_DELETE) != 0) { in delete()
H A DLocalMergeAlbum.java78 supported &= mSources[i].getSupportedOperations(); in updateData()
195 public int getSupportedOperations() { in getSupportedOperations() method in LocalMergeAlbum
/aosp12/hardware/interfaces/neuralnetworks/utils/common/test/
H A DResilientDeviceTest.cpp249 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 DMockDevice.h37 MOCK_METHOD(GeneralResult<std::vector<bool>>, getSupportedOperations, (const Model& model),
/aosp12/hardware/interfaces/neuralnetworks/1.1/utils/test/
H A DDeviceTest.cpp82 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 DDeviceTest.cpp490 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 DDevice.cpp125 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 DPhotoPage.java341 … && (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 DSinglePhotoDataAdapter.java59 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 DDevice.cpp127 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 DSampleDriverFull.h33 ndk::ScopedAStatus getSupportedOperations(const aidl_hal::Model& model,
H A DSampleDriverPartial.h41 ndk::ScopedAStatus getSupportedOperations(const aidl_hal::Model& model,
H A DSampleDriverFull.cpp46 ndk::ScopedAStatus SampleDriverFull::getSupportedOperations( in getSupportedOperations() function in android::nn::sample_driver::SampleDriverFull
H A DSampleDriverPartial.cpp38 ndk::ScopedAStatus SampleDriverPartial::getSupportedOperations( in getSupportedOperations() function in android::nn::sample_driver::SampleDriverPartial
/aosp12/hardware/interfaces/neuralnetworks/1.0/
H A DIDevice.hal39 * 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 DDeviceTest.cpp94 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 DIDevice.aidl41 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 DIDevice.aidl41 boolean[] getSupportedOperations(in android.hardware.neuralnetworks.Model model); in getSupportedOperations() method
/aosp12/packages/modules/NeuralNetworks/driver/sample/
H A DCanonicalDevice.h52 GeneralResult<std::vector<bool>> getSupportedOperations(const Model& model) const override;

1234