/cts/suite/audio_quality/lib/src/ |
D | GenericFactory.cpp | 26 TaskGeneric* GenericFactory::createTask(TaskGeneric::TaskType type) in createTask() 28 TaskGeneric* task; in createTask() 30 case TaskGeneric::ETaskBatch: in createTask() 33 case TaskGeneric::ETaskCase: in createTask() 36 case TaskGeneric::ETaskSequential: in createTask() 39 case TaskGeneric::ETaskProcess: in createTask() 42 case TaskGeneric::ETaskInput: in createTask() 45 case TaskGeneric::ETaskOutput: in createTask() 48 case TaskGeneric::ETaskSound: in createTask() 51 case TaskGeneric::ETaskSave: in createTask() [all …]
|
D | SignalProcessingImpl.cpp | 112 TaskGeneric::ExecutionResult SignalProcessingImpl::run( const android::String8& functionScript, in run() 124 return TaskGeneric::EResultError; in run() 135 return TaskGeneric::EResultError; in run() 139 return TaskGeneric::EResultError; in run() 153 return TaskGeneric::EResultError; in run() 161 return TaskGeneric::EResultError; in run() 165 return TaskGeneric::EResultError; in run() 169 return TaskGeneric::EResultError; in run() 171 if (header[3] == TaskGeneric::EResultError) { in run() 173 return (TaskGeneric::ExecutionResult)header[3]; in run() [all …]
|
D | BuiltinProcessing.cpp | 46 TaskGeneric::ExecutionResult BuiltinProcessing::rms_mva(void** inputs, void** outputs) in rms_mva() 64 TaskGeneric::ExecutionResult result = TaskGeneric::EResultOK; in rms_mva() 73 result = TaskGeneric::EResultPass; in rms_mva()
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskSequential.cpp | 25 : TaskGeneric(TaskGeneric::ETaskSequential), in TaskSequential() 38 TaskGeneric::ExecutionResult TaskSequential::run() in run() 45 return TaskGeneric::EResultError; in run() 49 TaskGeneric::ExecutionResult firstError(TaskGeneric::EResultOK); in run() 54 return TaskGeneric::EResultError; in run() 56 std::list<TaskGeneric*>::iterator i = getChildren().begin(); in run() 57 std::list<TaskGeneric*>::iterator end = getChildren().end(); in run() 59 TaskGeneric* child = *i; in run() 60 TaskGeneric::ExecutionResult result = child->run(); in run() 61 if ((result != TaskGeneric::EResultOK) && (firstError == TaskGeneric::EResultOK)) { in run() [all …]
|
D | TaskGeneric.cpp | 22 TaskGeneric::TaskGeneric(TaskType type): in TaskGeneric() function in TaskGeneric 29 bool deleteChildInstance(TaskGeneric* child, void* /*data*/) in deleteChildInstance() 35 TaskGeneric::~TaskGeneric() in ~TaskGeneric() 41 bool TaskGeneric::addChild(TaskGeneric* child) in addChild() 48 bool TaskGeneric::forEachChild(bool (*runForEachChild)(TaskGeneric* child, void* data), void* data) in forEachChild() 50 std::list<TaskGeneric*>::iterator i = mChildren.begin(); in forEachChild() 51 std::list<TaskGeneric*>::iterator end = mChildren.end(); in forEachChild() 60 TaskGeneric* TaskGeneric::getParent() in getParent() 65 TaskCase* TaskGeneric::getTestCase() in getTestCase() 67 TaskGeneric* task = this; in getTestCase() [all …]
|
D | ModelBuilder.cpp | 29 { TaskGeneric::ETaskSetup, true }, 30 { TaskGeneric::ETaskAction, true }, 31 { TaskGeneric::ETaskSave, false } 34 { TaskGeneric::ETaskSound, false }, 35 { TaskGeneric::ETaskProcess, false }, 36 { TaskGeneric::ETaskDownload, false } 39 { TaskGeneric::ETaskSequential, true } 42 { TaskGeneric::ETaskSequential, false }, 43 { TaskGeneric::ETaskInput, false }, 44 { TaskGeneric::ETaskOutput, false }, [all …]
|
D | TaskOutput.cpp | 25 : TaskAsync(TaskGeneric::ETaskOutput), in TaskOutput() 45 TaskGeneric::ExecutionResult TaskOutput::start() in start() 51 return TaskGeneric::EResultError; in start() 55 return TaskGeneric::EResultError; in start() 60 return TaskGeneric::EResultError; in start() 66 return TaskGeneric::EResultError; in start() 71 return TaskGeneric::EResultError; in start() 75 return TaskGeneric::EResultError; in start() 81 return TaskGeneric::EResultOK; in start() 84 TaskGeneric::ExecutionResult TaskOutput::complete() in complete() [all …]
|
D | TaskBatch.cpp | 27 :TaskGeneric(TaskGeneric::ETaskBatch) in TaskBatch() 38 bool TaskBatch::addChild(TaskGeneric* child) in addChild() 40 if (child->getType() != TaskGeneric::ETaskCase) { in addChild() 44 return TaskGeneric::addChild(child); in addChild() 47 bool runAlways(TaskGeneric* child, void* data) in runAlways() 53 TaskGeneric::ExecutionResult TaskBatch::run() in run() 63 bool result = TaskGeneric::forEachChild(runAlways, NULL); in run() 65 return TaskGeneric::EResultOK; in run()
|
D | TaskInput.cpp | 25 : TaskAsync(TaskGeneric::ETaskInput), in TaskInput() 49 TaskGeneric::ExecutionResult TaskInput::start() in start() 56 return TaskGeneric::EResultError; in start() 67 return TaskGeneric::EResultError; in start() 71 return TaskGeneric::EResultError; in start() 75 return TaskGeneric::EResultError; in start() 80 return TaskGeneric::EResultOK; in start() 83 TaskGeneric::ExecutionResult TaskInput::complete() in complete() 90 return TaskGeneric::EResultError; in complete() 100 return TaskGeneric::EResultError; in complete() [all …]
|
D | TaskDownload.cpp | 27 : TaskGeneric(TaskGeneric::ETaskDownload) in TaskDownload() 38 TaskGeneric::ExecutionResult TaskDownload::run() in run() 43 return TaskGeneric::EResultError; in run() 49 return TaskGeneric::EResultError; in run() 53 return TaskGeneric::EResultError; in run() 56 return TaskGeneric::EResultOK; in run()
|
D | TaskAsync.cpp | 23 : TaskGeneric(type), in TaskAsync() 37 TaskGeneric::ExecutionResult TaskAsync::run() in run() 42 return TaskGeneric::EResultError; in run() 44 TaskGeneric::ExecutionResult result = start(); in run() 45 if (result == TaskGeneric::EResultOK) { in run() 51 return TaskGeneric::EResultError; in run() 90 result = TaskGeneric::parseAttribute(name, value); in parseAttribute() 97 ASSERT(getParent()->getType() == TaskGeneric::ETaskSequential); in getParentSequential()
|
D | TaskSound.cpp | 29 : TaskGeneric(TaskGeneric::ETaskSound), in TaskSound() 49 return TaskGeneric::parseAttribute(name, value); in parseAttribute() 52 TaskGeneric::ExecutionResult TaskSound::run() in run() 57 return TaskGeneric::EResultError; in run() 62 return TaskGeneric::EResultError; in run() 67 return TaskGeneric::EResultError; in run() 101 return TaskGeneric::EResultError; in run() 105 return TaskGeneric::EResultError; in run() 110 return TaskGeneric::EResultError; in run() 114 return TaskGeneric::EResultOK; in run()
|
D | TaskMessage.cpp | 21 : TaskGeneric(TaskGeneric::ETaskMessage) in TaskMessage() 27 TaskGeneric::ExecutionResult TaskMessage::run() in run() 30 return TaskGeneric::EResultError; in run()
|
D | TaskCase.cpp | 35 : TaskGeneric(TaskGeneric::ETaskCase), in TaskCase() 56 bool TaskCase::addChild(TaskGeneric* child) in addChild() 58 if ((child->getType() != TaskGeneric::ETaskSetup) in addChild() 59 && (child->getType() != TaskGeneric::ETaskAction) in addChild() 60 && (child->getType() != TaskGeneric::ETaskSave)) { in addChild() 64 return TaskGeneric::addChild(child); in addChild() 306 TaskGeneric::ExecutionResult TaskCase::run() in run() 315 std::list<TaskGeneric*>::iterator i = getChildren().begin(); in run() 316 std::list<TaskGeneric*>::iterator end = getChildren().end(); in run() 317 TaskGeneric* setup = *i; in run() [all …]
|
/cts/suite/audio_quality/test/ |
D | TaskTest.cpp | 27 TaskGeneric* mTaskSetup; 28 TaskGeneric* mTaskAction; 29 TaskGeneric* mTaskSequential; 30 TaskGeneric* mTaskProcess; 31 TaskGeneric* mTaskInput; 32 TaskGeneric* mTaskOutput; 33 TaskGeneric* mTaskSound; 35 class TestTaskDummy: public TaskGeneric { 40 explicit TestTaskDummy(TaskGeneric::TaskType type) in TestTaskDummy() 41 : TaskGeneric(type) { in TestTaskDummy() [all …]
|
D | ModelBuilderTest.cpp | 29 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() 37 TaskGeneric* testCase = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() 45 TaskGeneric* testBatch = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() 53 TaskGeneric* task = mModelBuilder.parseTestDescriptionXml(xmlFile, true); in TEST_F() 61 TaskGeneric* task = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() 68 TaskGeneric* task = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() 75 TaskGeneric* task = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() 82 TaskGeneric* task = mModelBuilder.parseTestDescriptionXml(xmlFile); in TEST_F() 84 TaskGeneric::ExecutionResult result = task->run(); in TEST_F() 85 ASSERT_TRUE((result == TaskGeneric::EResultOK) || (result == TaskGeneric::EResultPass)); in TEST_F()
|
D | TaskCaseCommon.h | 31 inline TaskCase* getTaskCase(TaskGeneric*& setup, TaskGeneric*& action) in getTaskCase() 35 setup = factory.createTask(TaskGeneric::ETaskSetup); in getTaskCase() 37 action = factory.createTask(TaskGeneric::ETaskAction); in getTaskCase()
|
/cts/suite/audio_quality/lib/include/task/ |
D | TaskGeneric.h | 30 class TaskGeneric { 51 explicit TaskGeneric(TaskType type); 53 virtual ~TaskGeneric(); 79 virtual bool addChild(TaskGeneric* child); 84 TaskGeneric* getParent(); 88 void setParent(TaskGeneric* parent); 95 bool forEachChild(bool (*runForEachChild)(TaskGeneric* child, void* data), void* data); 103 inline std::list<TaskGeneric*>& getChildren() { in getChildren() 109 TaskGeneric* mParent; 110 std::list<TaskGeneric*> mChildren;
|
D | ModelBuilder.h | 43 virtual TaskGeneric* parseTestDescriptionXml(const android::String8& xmlFileName, 47 TaskGeneric::TaskType type; 52 virtual bool parseAttributes(const tinyxml2::XMLElement& elem, TaskGeneric& task); 53 virtual TaskGeneric* parseGeneric(const tinyxml2::XMLElement& elem, int tableIndex); 60 TaskGeneric::TaskType type; 65 static const int PARSING_TABLE_SIZE = TaskGeneric::ETaskInvalidLast - 2;
|
D | TaskBatch.h | 24 class TaskBatch: public TaskGeneric { 28 virtual bool addChild(TaskGeneric* child); 29 virtual TaskGeneric::ExecutionResult run();
|
D | TaskAsync.h | 28 class TaskAsync: public TaskGeneric { 32 virtual TaskGeneric::ExecutionResult run(); 34 virtual TaskGeneric::ExecutionResult start() = 0; 35 virtual TaskGeneric::ExecutionResult complete() = 0;
|
D | TaskSequential.h | 27 class TaskSequential: public TaskGeneric { 31 virtual TaskGeneric::ExecutionResult run(); 44 TaskGeneric::ExecutionResult runAsyncTasksQueued();
|
D | TaskDownload.h | 26 class TaskDownload: public TaskGeneric { 30 virtual TaskGeneric::ExecutionResult run();
|
D | TaskSave.h | 24 class TaskSave: public TaskGeneric { 28 virtual TaskGeneric::ExecutionResult run();
|
/cts/suite/audio_quality/lib/include/ |
D | GenericFactory.h | 31 virtual TaskGeneric* createTask(TaskGeneric::TaskType type);
|