Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/photos/
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()
/packages/modules/NeuralNetworks/driver/sample_aidl/
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()
DSampleDriverPartial.cpp39 const aidl_hal::Model& model, std::vector<bool>* supportedOperations) { in getSupportedOperations() argument
45 *supportedOperations = getSupportedOperationsImpl(canonicalModel.value()); in getSupportedOperations()
DSampleDriverFull.h34 std::vector<bool>* supportedOperations) override;
DSampleDriverPartial.h42 std::vector<bool>* supportedOperations) override;
/packages/modules/NeuralNetworks/driver/sample/
DLimitedSupportDevice.cpp94 const auto supportedOperations = NN_TRY(kSupportedOperationsFunction(model)); in prepareModel() local
96 if (!std::all_of(supportedOperations.begin(), supportedOperations.end(), id)) { in prepareModel()
/packages/modules/NeuralNetworks/runtime/test/
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()
DTestPartitioningRandom.cpp600 const hardware::hidl_vec<bool>& supportedOperations) { in prepareModel_1_3() argument
602 if (std::all_of(supportedOperations.begin(), supportedOperations.end(), in prepareModel_1_3()
DTestPartitioning.cpp371 const hardware::hidl_vec<bool>& supportedOperations) { in prepareModel_1_3() argument
373 if (std::all_of(supportedOperations.begin(), supportedOperations.end(), in prepareModel_1_3()
/packages/modules/NeuralNetworks/runtime/
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()
/packages/modules/NeuralNetworks/shim_and_sl/
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()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
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()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimDevice.h52 std::vector<bool>* supportedOperations) override;