/cts/suite/audio_quality/lib/src/task/ |
D | TaskSave.cpp | 37 const android::String8* list[] = {&STR_FILE, &STR_REPORT, NULL}; in TaskSave() local 38 registerSupportedStringAttributes(list); in TaskSave() 54 UniquePtr<std::vector<android::String8> > list(StringUtil::split(fileValue, ',')); in handleFile() local 55 std::vector<android::String8>* listp = list.get(); in handleFile() 78 UniquePtr<std::list<TaskCase::BufferPair> > buffers( in handleFile() 80 std::list<TaskCase::BufferPair>* buffersp = buffers.get(); in handleFile() 85 std::list<TaskCase::BufferPair>::iterator it = buffersp->begin(); in handleFile() 86 std::list<TaskCase::BufferPair>::iterator end = buffersp->end(); in handleFile() 107 UniquePtr<std::vector<android::String8> > list(StringUtil::split(reportValue, ',')); in handleReport() local 108 std::vector<android::String8>* listp = list.get(); in handleReport() [all …]
|
D | TaskProcess.cpp | 53 bool TaskProcess::prepareParams(std::vector<TaskProcess::Param>& list, in prepareParams() argument 60 size_t N = list.size(); in prepareParams() 85 if ((paramTypes != NULL) && paramTypes[i] && (list[i].getType() != EId)) { in prepareParams() 86 LOGE("mismatching types %d %d", paramTypes[i], list[i].getType()); in prepareParams() 89 if ((paramTypes != NULL) && !paramTypes[i] && (list[i].getType() == EId)) { in prepareParams() 90 LOGE("mismatching types %d %d", paramTypes[i], list[i].getType()); in prepareParams() 93 switch(list[i].getType()) { in prepareParams() 101 *(buffer.get()) = getTestCase()->findBuffer(list[i].getParamString()); in prepareParams() 116 if (!getTestCase()->findValue(list[i].getParamString(), *(valuesPtr[i].get()))) { in prepareParams() 117 LOGE("find %s failed", list[i].getParamString().string()); in prepareParams() [all …]
|
D | TaskCase.cpp | 38 const android::String8* list[] = {&STR_NAME, &STR_VERSION, &STR_DESCRIPTION, NULL}; in TaskCase() local 39 registerSupportedStringAttributes(list); in TaskCase() 110 template <typename T> typename std::list<std::pair<android::String8, T> >* findAllGeneric( in findAllGeneric() 119 typename std::list<std::pair<android::String8, T> >* list = NULL; in findAllGeneric() local 122 if (list == NULL) { // create only when found in findAllGeneric() 123 list = new std::list<std::pair<android::String8, T> >(); in findAllGeneric() 124 if (list == NULL) { in findAllGeneric() 130 list->push_back(match); in findAllGeneric() 134 return list; in findAllGeneric() 167 std::list<TaskCase::BufferPair>* TaskCase::findAllBuffers(const android::String8& re) in findAllBuffers() [all …]
|
D | TaskSequential.cpp | 56 std::list<TaskGeneric*>::iterator i = getChildren().begin(); in run() 57 std::list<TaskGeneric*>::iterator end = getChildren().end(); in run() 94 std::list<TaskAsync*>::iterator it; in queueAsyncTask() 105 std::list<TaskAsync*>::iterator i = mAsyncTasks.begin(); in runAsyncTasksQueued() 106 std::list<TaskAsync*>::iterator end = mAsyncTasks.end(); in runAsyncTasksQueued()
|
D | TaskDownload.cpp | 30 const android::String8* list[] = {&STR_ID, NULL}; in TaskDownload() local 31 registerSupportedStringAttributes(list); in TaskDownload()
|
D | TaskBatch.cpp | 29 const android::String8* list[] = {&STR_NAME, &STR_VERSION, &STR_DESCRIPTION, NULL}; in TaskBatch() local 30 registerSupportedStringAttributes(list); in TaskBatch()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebBackForwardListTest.java | 58 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testGetCurrentItem() local 60 assertNull(list.getCurrentItem()); in testGetCurrentItem() 61 assertEquals(0, list.getSize()); in testGetCurrentItem() 62 assertEquals(-1, list.getCurrentIndex()); in testGetCurrentItem() 63 assertNull(list.getItemAtIndex(-1)); in testGetCurrentItem() 64 assertNull(list.getItemAtIndex(2)); in testGetCurrentItem() 92 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in checkBackForwardList() local 93 if (list.getSize() != url.length) { in checkBackForwardList() 96 if (list.getCurrentIndex() != url.length - 1) { in checkBackForwardList() 100 WebHistoryItem item = list.getItemAtIndex(i); in checkBackForwardList()
|
D | WebHistoryItemTest.java | 93 WebBackForwardList list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() local 94 assertEquals(0, list.getSize()); in testWebHistoryItem() 105 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 106 assertEquals(1, list.getSize()); in testWebHistoryItem() 107 WebHistoryItem item = list.getCurrentItem(); in testWebHistoryItem() 117 list = mOnUiThread.copyBackForwardList(); in testWebHistoryItem() 118 assertEquals(2, list.getSize()); in testWebHistoryItem() 119 item = list.getCurrentItem(); in testWebHistoryItem()
|
/cts/suite/audio_quality/test/ |
D | TaskCaseTest.cpp | 61 std::list<TaskCase::BufferPair>* list = mTaskCase->findAllBuffers(RE); in TEST_F() local 62 ASSERT_TRUE(list != NULL); in TEST_F() 63 ASSERT_TRUE(((list->front().second.get() == buffer1.get()) && in TEST_F() 64 (list->back().second.get() == buffer2.get())) || in TEST_F() 65 ((list->front().second.get() == buffer2.get()) && in TEST_F() 66 (list->back().second.get() == buffer1.get()))); in TEST_F() 67 delete list; in TEST_F() 102 std::list<TaskCase::ValuePair>* list = mTaskCase->findAllValues(RE); in TEST_F() local 103 ASSERT_TRUE(list != NULL); in TEST_F() 104 ASSERT_TRUE(((list->front().second == val2) && (list->back().second == val3)) || in TEST_F() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecListTest.java | 351 List<CodecType> list = new ArrayList<CodecType>(16); in getRequiredCodecTypes() local 358 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_MPEG, false, 8000)); // mp3 in getRequiredCodecTypes() 359 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_MPEG, false, 48000)); // mp3 in getRequiredCodecTypes() 360 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_VORBIS, false, 8000)); in getRequiredCodecTypes() 361 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_VORBIS, false, 48000)); in getRequiredCodecTypes() 362 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_AAC, false, 8000)); in getRequiredCodecTypes() 363 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_AAC, false, 48000)); in getRequiredCodecTypes() 364 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_RAW, false, 8000)); in getRequiredCodecTypes() 365 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_RAW, false, 44100)); in getRequiredCodecTypes() 366 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_OPUS, false, 48000)); in getRequiredCodecTypes() [all …]
|
/cts/suite/audio_quality/lib/include/ |
D | Report.h | 52 void writeResult(std::list<StringPair>::const_iterator begin, 53 std::list<StringPair>::const_iterator end, bool passed); 57 std::list<StringPair> mPassedCases; 58 std::list<StringPair> mFailedCases;
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AdapterViewCtsActivity.java | 53 final List<String> list = new ArrayList<String>(); in getArrayAdapter() local 55 list.add("test:" + i); in getArrayAdapter() 57 return new ArrayAdapter<String>(this, R.layout.adapterview_layout, list); in getArrayAdapter()
|
D | ArrayAdapterTest.java | 66 List<String> list = new ArrayList<String>(); in testConstructor() local 67 list.add(STR1); in testConstructor() 68 list.add(STR2); in testConstructor() 70 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, list); in testConstructor() 72 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, R.id.text1, list); in testConstructor() 433 List<String> list = new ArrayList<String>(); in testAddAllCollection() local 434 list.add(""); in testAddAllCollection() 435 list.add("hello"); in testAddAllCollection() 436 list.add("android"); in testAddAllCollection() 437 list.add("!"); in testAddAllCollection() [all …]
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | DeviceInfoActivity.java | 314 public void addArray(String name, double[] list) { in addArray() argument 319 for (double value : checkArray(list)) { in addArray() 331 public void addArray(String name, long[] list) { in addArray() argument 336 for (long value : checkArray(list)) { in addArray() 348 public void addArray(String name, int[] list) { in addArray() argument 353 for (int value : checkArray(list)) { in addArray() 365 public void addArray(String name, boolean[] list) { in addArray() argument 370 for (boolean value : checkArray(list)) { in addArray() 382 public void addArray(String name, String[] list) { in addArray() argument 387 for (String value : checkArray(list)) { in addArray()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/ |
D | AllocationCache.java | 83 List<Allocation> list = mAllocationMap.get(key); in getOrCreateTyped() local 85 if (list != null && !list.isEmpty()) { in getOrCreateTyped() 86 Allocation alloc = list.remove(list.size() - 1); in getOrCreateTyped()
|
/cts/tests/tests/gesture/src/android/gesture/cts/ |
D | LineGestureStrokeHelper.java | 90 ArrayList<GesturePoint> list = new ArrayList<GesturePoint>(points.length); in createGestureStroke() local 92 list.add(point); in createGestureStroke() 94 return new GestureStroke(list); in createGestureStroke()
|
/cts/tests/ProcessTest/src/com/android/cts/process/ |
D | ProcessTest.java | 53 List<RunningAppProcessInfo> list = am.getRunningAppProcesses(); in testPid() local 54 assertEquals(-1, getPid(shareProcessName, list)); in testPid() 88 private int getPid(String processName, List<RunningAppProcessInfo> list) { in getPid() argument 89 for (RunningAppProcessInfo rai : list) { in getPid()
|
/cts/libs/vogar-expect/src/vogar/util/ |
D | Log.java | 44 public static void warn(String message, List<String> list) { in warn() argument 46 sLogoutput.warn(message, list); in warn()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputManagerTest.java | 52 private static TvInputInfo getInfoForClassName(List<TvInputInfo> list, String name) { in getInfoForClassName() argument 53 for (TvInputInfo info : list) { in getInfoForClassName() 94 List<TvInputInfo> list = mManager.getTvInputList(); in testGetTvInputList() local 97 getInfoForClassName(list, name)); in testGetTvInputList() 101 getInfoForClassName(list, name)); in testGetTvInputList()
|
/cts/suite/audio_quality/lib/src/ |
D | Report.cpp | 90 void Report::writeResult(std::list<StringPair>::const_iterator begin, in writeResult() 91 std::list<StringPair>::const_iterator end, bool passed) in writeResult() 93 std::list<StringPair>::const_iterator it; in writeResult()
|
/cts/tools/dasm/src/dasm/ |
D | Utils.java | 36 public static String[] splitRegList(String list) { in splitRegList() argument 38 if (list.length() > 0) in splitRegList() 39 result = list.split("[\\s]*,[\\s]*|[\\s]*\\.\\.[\\s]*"); in splitRegList()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | CursorWindowTest.java | 38 ArrayList<ArrayList<Integer>> list = createTestList(10, colsize); in testWriteCursorToWindow() local 39 MatrixCursor cursor = new MatrixCursor(colNames, list.size()); in testWriteCursorToWindow() 40 for (ArrayList<Integer> row : list) { in testWriteCursorToWindow() 49 for (int i = 0; i < list.size(); i++) { in testWriteCursorToWindow() 50 ArrayList<Integer> col = list.get(i); in testWriteCursorToWindow() 63 for (int i = 1; i < list.size(); i++) { in testWriteCursorToWindow() 64 ArrayList<Integer> col = list.get(i); in testWriteCursorToWindow() 411 ArrayList<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>(); in createTestList() local 416 list.add(col); in createTestList() 422 return list; in createTestList()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ActivityManager_RunningAppProcessInfoTest.java | 36 final List<RunningAppProcessInfo> list = am.getRunningAppProcesses(); in testRunningAppProcessInfo() local 37 final RunningAppProcessInfo rap = list.get(0); in testRunningAppProcessInfo()
|
D | LauncherActivityTest.java | 59 final List<ListItem> list = mActivity.makeListItems(); in testLaunchActivity() 60 assertTrue(list.size() > 0); in testLaunchActivity()
|
/cts/suite/audio_quality/lib/include/task/ |
D | TaskGeneric.h | 103 inline std::list<TaskGeneric*>& getChildren() { in getChildren() 110 std::list<TaskGeneric*> mChildren;
|