/cts/suite/audio_quality/lib/include/task/ |
D | TaskCase.h | 41 bool getCaseName(android::String8& name) const; 43 bool registerBuffer(const android::String8& name, android::sp<Buffer>& buffer); 45 bool updateBuffer(const android::String8& name, android::sp<Buffer>& buffer); 47 android::sp<Buffer> findBuffer(const android::String8& name); 48 typedef std::pair<android::String8, android::sp<Buffer> > BufferPair; 50 std::list<BufferPair>* findAllBuffers(const android::String8& re); 106 bool registerValue(const android::String8& name, Value& val); 107 bool updateValue(const android::String8& name, Value& val); 108 bool findValue(const android::String8& name, Value& val); 109 typedef std::pair<android::String8, Value> ValuePair; [all …]
|
D | TaskGeneric.h | 93 virtual bool parseAttribute(const android::String8& name, const android::String8& value); 100 void registerSupportedStringAttributes(const android::String8* keys[]); 101 bool addStringAttribute(const android::String8& key, const android::String8& value); 102 bool findStringAttribute(const android::String8& key, android::String8& value) const; 112 std::set<android::String8> mAllowedStringAttributes; 113 std::map<android::String8, android::String8> mStringAttributes;
|
D | TaskProcess.h | 37 virtual bool parseAttribute(const android::String8& name, const android::String8& value); 62 android::String8 mName; // buit-in function or script name 71 Param(ParamType type, android::String8& string); 74 android::String8& getParamString(); 82 android::String8 mString;
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskCase.cpp | 30 static const android::String8 STR_NAME("name"); 31 static const android::String8 STR_VERSION("version"); 32 static const android::String8 STR_DESCRIPTION("description"); 38 const android::String8* list[] = {&STR_NAME, &STR_VERSION, &STR_DESCRIPTION, NULL}; in TaskCase() 47 bool TaskCase::getCaseName(android::String8& name) const in getCaseName() 68 typename std::map<android::String8, T>& map, in registerGeneric() argument 69 const android::String8& name, T& data) in registerGeneric() 71 typename std::map<android::String8, T>::iterator it; in registerGeneric() 82 template <typename T> bool findGeneric(typename std::map<android::String8, T>& map, in findGeneric() argument 83 const android::String8& name, T& data) in findGeneric() [all …]
|
D | TaskGeneric.cpp | 104 bool TaskGeneric::parseAttribute(const android::String8& name, const android::String8& value) in parseAttribute() 116 void TaskGeneric::registerSupportedStringAttributes(const android::String8* keys[]) in registerSupportedStringAttributes() 125 bool TaskGeneric::addStringAttribute(const android::String8& key, const android::String8& value) in addStringAttribute() 127 std::set<android::String8, android::String8>::iterator it = mAllowedStringAttributes.find(key); in addStringAttribute() 135 bool TaskGeneric::findStringAttribute(const android::String8& key, android::String8& value) const in findStringAttribute() 137 std::map<android::String8, android::String8>::const_iterator it = mStringAttributes.find(key); in findStringAttribute()
|
D | TaskBatch.cpp | 22 static const android::String8 STR_NAME("name"); 23 static const android::String8 STR_VERSION("version"); 24 static const android::String8 STR_DESCRIPTION("description"); 29 const android::String8* list[] = {&STR_NAME, &STR_VERSION, &STR_DESCRIPTION, NULL}; in TaskBatch() 55 android::String8 name; in run() 56 android::String8 version; in run()
|
D | TaskSave.cpp | 32 static const android::String8 STR_FILE("file"); 33 static const android::String8 STR_REPORT("report"); 38 const android::String8* list[] = {&STR_FILE, &STR_REPORT, NULL}; in TaskSave() 49 android::String8 fileValue; in handleFile() 55 std::unique_ptr<std::vector<android::String8> > list(StringUtil::split(fileValue, ',')); in handleFile() 56 std::vector<android::String8>* listp = list.get(); in handleFile() 62 android::String8 dirName; in handleFile() 67 android::String8 caseName; in handleFile() 89 android::String8 fileName(dirName); in handleFile() 102 android::String8 reportValue; in handleReport() [all …]
|
D | TaskSound.cpp | 25 static const android::String8 STR_ID("id"); 26 static const android::String8 STR_TYPE("type"); 32 const android::String8* list[] = {&STR_ID, &STR_TYPE, NULL}; in TaskSound() 41 bool TaskSound::parseAttribute(const android::String8& name, const android::String8& value) in parseAttribute() 54 android::String8 id; in run() 59 android::String8 type; in run() 64 std::unique_ptr<std::vector<android::String8> > tokens(StringUtil::split(type, ':')); in run()
|
/cts/suite/audio_quality/lib/src/ |
D | SimpleScriptExec.cpp | 30 android::String8 script("test_description/conf/check_conf.py"); in checkPythonEnv() 31 android::String8 param; in checkPythonEnv() 32 android::String8 result; in checkPythonEnv() 37 android::String8 rePattern; in checkPythonEnv() 41 bool SimpleScriptExec::checkIfPassed(const android::String8& str, const android::String8& reMatch, in checkIfPassed() 44 android::String8 match; in checkIfPassed() 66 bool SimpleScriptExec::runScript(const android::String8& script, const android::String8& param, in runScript() 67 android::String8& result) in runScript() 70 android::String8 command; in runScript()
|
D | StringUtil.cpp | 24 std::vector<android::String8>* StringUtil::split(const android::String8& str, char delimiter) in split() 26 std::vector<android::String8>* tokens = new std::vector<android::String8>(); in split() 42 android::String8 StringUtil::substr(const android::String8& str, size_t pos, size_t n) in substr() 47 android::String8 resultDummy; in substr() 53 android::String8 result(str.string() + pos, n); in substr() 57 int StringUtil::compare(const android::String8& str, const char* other) in compare() 62 bool StringUtil::endsWith(const android::String8& str, const char* other) in endsWith()
|
D | Adb.cpp | 21 Adb::Adb(const android::String8& device) in Adb() 34 android::String8 command; in setPortForwarding() 44 bool Adb::launchClient(const android::String8& clientBinary, const android::String8& component) in launchClient() 46 android::String8 command; in launchClient() 64 int Adb::executeCommand(const android::String8& command) in executeCommand() 66 android::String8 adbCommand; in executeCommand()
|
D | SimpleScriptExec.h | 40 static bool runScript(const android::String8& script, const android::String8& param, 41 android::String8& result); 52 static bool checkIfPassed(const android::String8& str, const android::String8& reMatch,
|
D | Adb.h | 27 explicit Adb(const android::String8& device); 31 bool launchClient(const android::String8& clientBinary, const android::String8& component); 33 int executeCommand(const android::String8& command); 36 android::String8 mDevice;
|
/cts/suite/audio_quality/test/ |
D | TaskCaseTest.cpp | 45 const android::String8 BUFFER1("buffer1"); in TEST_F() 46 const android::String8 BUFFER2("buffer2"); in TEST_F() 47 const android::String8 BUFFER3("buffer3"); in TEST_F() 48 const android::String8 BUFFER4("buffer4"); in TEST_F() 57 const android::String8 NO_SUCH_BUFFER("no_such_buffer"); in TEST_F() 60 const android::String8 RE("buffer[1-2]"); in TEST_F() 81 const android::String8 V1("v1"); in TEST_F() 82 const android::String8 V2("v2"); in TEST_F() 83 const android::String8 V3("v3"); in TEST_F() 84 const android::String8 V4("v4"); in TEST_F() [all …]
|
D | StringUtilTest.cpp | 26 android::String8 str("hello"); in TEST_F() 32 android::String8 str("hello there"); in TEST_F() 34 android::String8 sub1 = StringUtil::substr(str, 0, 5); in TEST_F() 37 android::String8 sub2 = StringUtil::substr(str, 10, 5); in TEST_F() 40 android::String8 sub3 = StringUtil::substr(str, 6, 5); in TEST_F() 43 android::String8 sub4 = StringUtil::substr(str, 100, 5); in TEST_F() 48 android::String8 str("hello there"); in TEST_F() 55 android::String8 str("hello:there:break:this:"); in TEST_F() 56 std::vector<android::String8>* tokens = StringUtil::split(str, ':'); in TEST_F() 65 android::String8 str2("::::"); in TEST_F() [all …]
|
D | TaskTest.cpp | 20 static const android::String8 AAA("aaa"); 21 static const android::String8 BBB("bbb"); 45 const android::String8* list[] = {&AAA, &BBB, NULL}; in TestTaskDummy() 57 bool addStringAttributePublic(const android::String8& key, android::String8& value){ in addStringAttributePublic() 60 bool findStringAttributePublic(const android::String8& key, android::String8& value){ in findStringAttributePublic() 114 android::String8 aaaVal("aaa_val"); in TEST_F() 115 android::String8 bbbVal("bbb_val"); in TEST_F() 116 android::String8 read; in TEST_F() 120 const android::String8 CCC("ccc"); in TEST_F() 126 const android::String8 VERSION("version"); in TEST_F() [all …]
|
D | TaskSequentialTest.cpp | 42 const android::String8 REPEAT("repeat"); in TEST_F() 43 const android::String8 N_10("10"); in TEST_F() 44 const android::String8 INDEX("index"); in TEST_F() 45 const android::String8 I("i"); in TEST_F() 46 const android::String8 NO_SUCH_THING("no_such_thing"); in TEST_F() 47 const android::String8 SHOULD_FAIL("should_fail"); in TEST_F() 52 const android::String8 RE(".*"); in TEST_F()
|
D | ModelBuilderTest.cpp | 28 android::String8 xmlFile("test_description/test/no_attrib.xml"); in TEST_F() 36 android::String8 xmlFile("test_description/host_speaker_calibration.xml"); in TEST_F() 44 android::String8 xmlFile("test_description/all_playback.xml"); in TEST_F() 52 android::String8 xmlFile("test_description/all_playback.xml"); in TEST_F() 60 android::String8 xmlFile("test_description/test/missing_mandatory.xml"); in TEST_F() 67 android::String8 xmlFile("test_description/test/unknown_element.xml"); in TEST_F() 74 android::String8 xmlFile("test_description/test/wrong_attrib.xml"); in TEST_F() 81 android::String8 xmlFile("test_description/test/test_rms_vma.xml"); in TEST_F()
|
D | TaskProcessTest.cpp | 35 const android::String8 REPEAT("repeat"); in SetUp() 36 const android::String8 N_10("10"); in SetUp() 37 const android::String8 INDEX("index"); in SetUp() 38 const android::String8 I("i"); in SetUp()
|
D | SimpleScriptExecTest.cpp | 32 android::String8 pass1("___CTS_AUDIO_PASS___"); in TEST_F() 33 android::String8 match1; in TEST_F() 36 android::String8 fail1; in TEST_F()
|
/cts/suite/audio_quality/lib/include/ |
D | StringUtil.h | 32 static std::vector<android::String8>* split(const android::String8& str, char delimiter); 34 static android::String8 substr(const android::String8& str, size_t pos, size_t n); 35 static int compare(const android::String8& str, const char* other); 36 static bool endsWith(const android::String8& str, const char* other);
|
/cts/tests/tests/drm/lib/ |
D | TestPlugin.h | 31 DrmConstraints* onGetConstraints(int uniqueId, const String8* path, int action); 33 DrmMetadata* onGetMetadata(int uniqueId, const String8* path); 41 bool onCanHandle(int uniqueId, const String8& path); 46 const String8& rightsPath, const String8& contentPath); 50 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd); 52 int onGetDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 54 int onCheckRightsStatus(int uniqueId, const String8& path, int action); 62 int uniqueId, const String8& path, int action, const ActionDescription& description); 64 status_t onRemoveRights(int uniqueId, const String8& path);
|
D | TestPlugin.cpp | 55 DrmMetadata* TestPlugIn::onGetMetadata(int uniqueId, const String8* path) { in onGetMetadata() 60 int uniqueId, const String8* path, int action) { in onGetConstraints() 87 const String8& rightsPath, const String8& contentPath) { in onSaveRights() 95 bool TestPlugIn::onCanHandle(int uniqueId, const String8& path) { in onCanHandle() 99 String8 TestPlugIn::onGetOriginalMimeType(int uniqueId, const String8& path, int fd) { in onGetOriginalMimeType() 100 return String8("video/none"); in onGetOriginalMimeType() 104 int uniqueId, const String8& path, const String8& mimeType) { in onGetDrmObjectType() 108 int TestPlugIn::onCheckRightsStatus(int uniqueId, const String8& path, int action) { in onCheckRightsStatus() 123 bool TestPlugIn::onValidateAction(int uniqueId, const String8& path, in onValidateAction() 128 status_t TestPlugIn::onRemoveRights(int uniqueId, const String8& path) { in onRemoveRights()
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioHardware.cpp | 36 android::String8 script("test_description/conf/detect_usb_audio.py"); in detectAudioHw() 41 android::String8 param("MobilePre Track"); in detectAudioHw() 42 android::String8 resultStr; in detectAudioHw() 48 android::String8 match("[ \t]+([A-Za-z0-9_]+)[ \t]+([0-9]+)"); in detectAudioHw() 66 android::String8 product = StringUtil::substr(resultStr, pmatch[1].rm_so, in detectAudioHw() 69 android::String8 cardNumber = StringUtil::substr(resultStr, pmatch[2].rm_so, in detectAudioHw() 109 bool AudioHardware::startPlaybackOrRecordById(const android::String8& id, TaskCase* testCase) in startPlaybackOrRecordById()
|
/cts/suite/audio_quality/executable/src/ |
D | main.cpp | 41 android::String8 reportDirPath = in ~CleanupStatics() 43 android::String8 zipFilename = reportDirPath.getPathLeaf(); in ~CleanupStatics() 44 android::String8 command = android::String8::format("cd %s;zip -r ../%s.zip *", in ~CleanupStatics() 85 android::String8 xmlFile(argv[optind]); in main() 87 android::String8 dirName; in main() 99 android::String8 strSerial(serial); in main() 124 android::String8 deviceInfo; in main()
|