Home
last modified time | relevance | path

Searched refs:supportedOperations (Results 1 – 25 of 32) sorted by relevance

12

/aosp12/packages/apps/Gallery2/src/com/android/photos/
H A DMultiChoiceManager.java133 private void updateActionItemVisibilities(Menu menu, int supportedOperations) { in updateActionItemVisibilities() argument
142 editItem.setVisible((supportedOperations & MediaObject.SUPPORT_EDIT) > 0); in updateActionItemVisibilities()
143 deleteItem.setVisible((supportedOperations & MediaObject.SUPPORT_DELETE) > 0); in updateActionItemVisibilities()
144 shareItem.setVisible((supportedOperations & MediaObject.SUPPORT_SHARE) > 0); in updateActionItemVisibilities()
145 cropItem.setVisible((supportedOperations & MediaObject.SUPPORT_CROP) > 0); in updateActionItemVisibilities()
146 trimItem.setVisible((supportedOperations & MediaObject.SUPPORT_TRIM) > 0); in updateActionItemVisibilities()
147 muteItem.setVisible((supportedOperations & MediaObject.SUPPORT_MUTE) > 0); in updateActionItemVisibilities()
148 setAsItem.setVisible((supportedOperations & MediaObject.SUPPORT_SETAS) > 0); in updateActionItemVisibilities()
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DVtsHalNeuralnetworks.cpp49 std::vector<bool> supportedOperations; in createPreparedModel() local
50 const auto supportedCallStatus = device->getSupportedOperations(model, &supportedOperations); in createPreparedModel()
52 ASSERT_NE(0ul, supportedOperations.size()); in createPreparedModel()
54 supportedOperations.begin(), supportedOperations.end(), [](bool v) { return v; }); in createPreparedModel()
/aosp12/packages/modules/NeuralNetworks/driver/sample_aidl/
H A DSampleDriverFull.cpp47 const aidl_hal::Model& model, std::vector<bool>* supportedOperations) { in getSupportedOperations() argument
54 *supportedOperations = std::vector<bool>(count, true); in getSupportedOperations()
57 supportedOperations->at(i) = !isExtensionOperationType(operation.type); in getSupportedOperations()
H A DSampleDriverPartial.cpp39 const aidl_hal::Model& model, std::vector<bool>* supportedOperations) { in getSupportedOperations() argument
45 *supportedOperations = getSupportedOperationsImpl(canonicalModel.value()); in getSupportedOperations()
H A DSampleDriverFull.h34 std::vector<bool>* supportedOperations) override;
H A DSampleDriverPartial.h42 std::vector<bool>* supportedOperations) override;
/aosp12/packages/modules/NeuralNetworks/driver/sample/
H A DLimitedSupportDevice.cpp94 const auto supportedOperations = NN_TRY(kSupportedOperationsFunction(model)); in prepareModel() local
96 if (!std::all_of(supportedOperations.begin(), supportedOperations.end(), id)) { in prepareModel()
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/src/
H A DCallbacks.cpp42 ErrorStatus status, const hidl_vec<bool>& supportedOperations) { in supportedOperationsCallback() argument
44 return supportedOperations; in supportedOperationsCallback()
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestMemoryDomain.cpp80 TestDriverLatest(const char* name, std::set<V1_3::OperationType> supportedOperations, in TestDriverLatest() argument
83 kSupportedOperations(std::move(supportedOperations)), in TestDriverLatest()
256 std::set<V1_3::OperationType> supportedOperations, in createAndRegisterDriver() argument
261 new TestDriverLatest(name, supportedOperations, AllocateReturn::NOT_SUPPORTED); in createAndRegisterDriver()
267 new TestDriverLatest(name, std::move(supportedOperations), allocateReturn))); in createAndRegisterDriver()
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/src/
H A DCallbacks.cpp73 ErrorStatus status, const hidl_vec<bool>& supportedOperations) { in supportedOperationsCallback() argument
75 return supportedOperations; in supportedOperationsCallback()
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/
H A DDevice.cpp207 std::vector<bool> supportedOperations; in getSupportedOperations() local
208 const auto ret = kDevice->getSupportedOperations(aidlModel, &supportedOperations); in getSupportedOperations()
211 return supportedOperations; in getSupportedOperations()
H A DInvalidDevice.cpp106 std::vector<bool>* supportedOperations) { in getSupportedOperations() argument
110 *supportedOperations = std::vector<bool>(model.main.operations.size(), false); in getSupportedOperations()
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
H A DCallbacks.h39 ErrorStatus status, const hidl_vec<bool>& supportedOperations);
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
H A DCallbacks.h46 ErrorStatus status, const hidl_vec<bool>& supportedOperations);
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
H A DInvalidDevice.h47 std::vector<bool>* supportedOperations) override;
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/test/
H A DMockDevice.h43 (const Model& model, std::vector<bool>* supportedOperations), (override));
H A DDeviceTest.cpp506 const auto& supportedOperations = result.value(); in TEST() local
507 EXPECT_EQ(supportedOperations.size(), kSimpleModel.main.operations.size()); in TEST()
508 EXPECT_THAT(supportedOperations, Each(testing::IsTrue())); in TEST()
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/include/
H A DShimDevice.h52 std::vector<bool>* supportedOperations) override;
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/test/
H A DDeviceTest.cpp316 const auto& supportedOperations = result.value(); in TEST() local
317 EXPECT_EQ(supportedOperations.size(), kSimpleModel.main.operations.size()); in TEST()
318 EXPECT_THAT(supportedOperations, Each(testing::IsTrue())); in TEST()
/aosp12/hardware/interfaces/neuralnetworks/1.1/utils/test/
H A DDeviceTest.cpp326 const auto& supportedOperations = result.value(); in TEST() local
327 EXPECT_EQ(supportedOperations.size(), kSimpleModel.main.operations.size()); in TEST()
328 EXPECT_THAT(supportedOperations, Each(testing::IsTrue())); in TEST()
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/
H A DShimDevice.cpp477 std::vector<bool>* supportedOperations) { in getSupportedOperations() argument
479 supportedOperations->resize(numOperations); in getSupportedOperations()
497 std::copy(supportedOps.get(), supportedOps.get() + numOperations, supportedOperations->begin()); in getSupportedOperations()
/aosp12/hardware/interfaces/neuralnetworks/1.0/
H A DIDevice.hal50 * @return supportedOperations A list of supported operations, where true
58 generates (ErrorStatus status, vec<bool> supportedOperations);
/aosp12/hardware/interfaces/neuralnetworks/1.1/
H A DIDevice.hal55 * @return supportedOperations A list of supported operations, where true
63 generates (ErrorStatus status, vec<bool> supportedOperations);
/aosp12/packages/modules/NeuralNetworks/runtime/
H A DManager.cpp303 std::vector<bool>& supportedOperations = result.value(); in getSupportedOperations() local
306 return supportedOperations; in getSupportedOperations()
310 for (size_t operationIndex = 0; operationIndex < supportedOperations.size(); operationIndex++) { in getSupportedOperations()
311 if (!supportedOperations[operationIndex]) { in getSupportedOperations()
336 supportedOperations[operationIndex] = false; in getSupportedOperations()
341 return supportedOperations; in getSupportedOperations()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DPhotoPage.java774 int supportedOperations = mCurrentPhoto.getSupportedOperations(); in updateMenuOperations() local
776 supportedOperations ^= MediaObject.SUPPORT_EDIT; in updateMenuOperations()
779 supportedOperations &= MediaObject.SUPPORT_DELETE; in updateMenuOperations()
783 supportedOperations &= ~MediaObject.SUPPORT_EDIT; in updateMenuOperations()
786 MenuExecutor.updateMenuOperation(menu, supportedOperations); in updateMenuOperations()

12