/development/tools/logblame/ |
D | test_logs.py | 11 expected = [ logs.LogLine(None, "03-29 00:46:58.872", "1000", "1815", "1816", "I", "", 16 check_parsing(expected, text) 21 expected = [ logs.LogLine(None, "03-29 00:46:58.872", "1000", "1815", "1816", "I", "", 25 check_parsing(expected, text) 31 expected = [ logs.LogLine(None, "03-29 00:46:58.872", "1000", "1815", "1816", "I", "abcd", 38 check_parsing(expected, text) 43 expected = [ logs.LogLine(None, "03-29 00:46:58.872", "1000", "1815", "1816", "I", "abcd", 51 check_parsing(expected, text) 56 expected = [ logs.LogLine(None, "03-29 00:46:58.872", "1000", "1815", "1816", "I", "abcd", 63 check_parsing(expected, text) [all …]
|
D | test_ps.py | 17 expected = [ 25 if actual != expected: 27 print expected 55 expected = [ 62 if actual != expected: 64 print expected
|
D | test_analyze.py | 6 def test_ParseDuration(s, expected): argument 8 if actual != expected: 9 raise Exception("expected %s, actual %s" % (expected, actual))
|
/development/tools/winscope/src/viewers/common/ |
D | properties_tree_generator_test.ts | 25 const expected: PropertiesTreeNode = { constant 30 expect(actual).toEqual(expected); 37 const expected: PropertiesTreeNode = { constant 42 expect(actual).toEqual(expected); 49 const expected: PropertiesTreeNode = { constant 54 expect(actual).toEqual(expected); 61 const expected: PropertiesTreeNode = { constant 66 expect(actual).toEqual(expected); 73 const expected: PropertiesTreeNode = { constant 78 expect(actual).toEqual(expected); [all …]
|
D | tree_generator_test.ts | 55 const expected: HierarchyTreeNode = new HierarchyTreeBuilder() constant 80 expect(generator.generateTree()).toEqual(expected); 84 const expected: HierarchyTreeNode = new HierarchyTreeBuilder() constant 118 expect(tree).toEqual(expected); 148 const expected: HierarchyTreeNode = new HierarchyTreeBuilder() constant 191 expect(newDiffTree).toEqual(expected);
|
/development/tools/checkcolor/src/test/java/com/google/checkcolor/lint/ |
D | HardcodedColorDetectorTest.java | 57 …String expected = "res/layout/selector.xml:4: Error: Using hardcoded colors is not allowed [Hardco… 68 assertEquals(expected, result); 73 …String expected = "res/layout/layout_battery.xml:13: Error: Using hardcoded colors is not allowed … 106 assertEquals(expected, result); 111 …String expected = "res/values/pxsp.xml:6: Error: Using hardcoded colors is not allowed [HardcodedC… 127 assertEquals(expected, result); 132 …String expected = "res/values/colors.xml:3: Error: Using hardcoded colors is not allowed [Hardcode… 167 assertEquals(expected, result); 172 …String expected = "res/values/colors.xml:3: Error: Using hardcoded colors is not allowed [Hardcode… 181 assertEquals(expected, result); [all …]
|
/development/tools/winscope/src/parsers/ |
D | parser_surface_flinger_dump_test.ts | 38 const expected = [new Timestamp(TimestampType.ELAPSED, 0n)]; constant 39 expect(parser.getTimestamps(TimestampType.ELAPSED)).toEqual(expected); 43 const expected = [new Timestamp(TimestampType.REAL, 0n)]; constant 44 expect(parser.getTimestamps(TimestampType.REAL)).toEqual(expected); 67 const expected = [new Timestamp(TimestampType.ELAPSED, 0n)]; constant 68 expect(parser.getTimestamps(TimestampType.ELAPSED)).toEqual(expected);
|
D | parser_transitions_wm_test.ts | 40 const expected = [ constant 45 expect(timestamps.slice(0, 3)).toEqual(expected); 49 const expected = [ constant 59 expect(timestamps.slice(0, 3)).toEqual(expected);
|
D | parser_transitions_shell_test.ts | 40 const expected = [ constant 45 expect(timestamps.slice(0, 3)).toEqual(expected); 49 const expected = [ constant 59 expect(timestamps.slice(0, 3)).toEqual(expected);
|
D | parser_window_manager_dump_test.ts | 34 const expected = [new Timestamp(TimestampType.ELAPSED, 0n)]; constant 35 expect(parser.getTimestamps(TimestampType.ELAPSED)).toEqual(expected); 39 const expected = [new Timestamp(TimestampType.REAL, 0n)]; constant 40 expect(parser.getTimestamps(TimestampType.REAL)).toEqual(expected);
|
D | parser_window_manager_test.ts | 35 const expected = [ constant 40 expect(parser.getTimestamps(TimestampType.ELAPSED)!.slice(0, 3)).toEqual(expected); 44 const expected = [ constant 49 expect(parser.getTimestamps(TimestampType.REAL)!.slice(0, 3)).toEqual(expected); 77 const expected = [ constant 82 expect(parser.getTimestamps(TimestampType.ELAPSED)).toEqual(expected);
|
D | traces_parser_transitions_test.ts | 42 const expected = [ constant 47 expect(timestamps.slice(0, 3)).toEqual(expected); 51 const expected = [ constant 61 expect(timestamps.slice(0, 3)).toEqual(expected);
|
D | traces_parser_cujs_test.ts | 39 const expected = [ constant 44 expect(timestamps.slice(0, 3)).toEqual(expected); 48 const expected = [ constant 58 expect(timestamps.slice(0, 3)).toEqual(expected);
|
D | parser_view_capture_test.ts | 35 const expected = [ constant 40 expect(parser.getTimestamps(TimestampType.ELAPSED)!.slice(0, 3)).toEqual(expected); 44 const expected = [ constant 49 expect(parser.getTimestamps(TimestampType.REAL)!.slice(0, 3)).toEqual(expected);
|
D | parser_transactions_test.ts | 38 const expected = [ constant 43 expect(timestamps.slice(0, 3)).toEqual(expected); 51 const expected = [ constant 56 expect(timestamps.slice(0, 3)).toEqual(expected); 97 const expected = [ constant 102 expect(timestamps.slice(0, 3)).toEqual(expected);
|
D | parser_input_method_service_test.ts | 36 const expected = [new Timestamp(TimestampType.ELAPSED, 16578752896n)]; constant 37 expect(parser.getTimestamps(TimestampType.ELAPSED)).toEqual(expected); 41 const expected = [new Timestamp(TimestampType.REAL, 1659107091180519857n)]; constant 42 expect(parser.getTimestamps(TimestampType.REAL)).toEqual(expected);
|
D | parser_screen_recording_test.ts | 40 const expected = [ constant 45 expect(timestamps.slice(0, 3)).toEqual(expected); 53 const expected = [ constant 58 expect(timestamps.slice(0, 3)).toEqual(expected);
|
D | parser_accessibility_test.ts | 34 const expected = [ constant 39 expect(parser.getTimestamps(TimestampType.ELAPSED)!.slice(0, 3)).toEqual(expected); 43 const expected = [ constant 48 expect(parser.getTimestamps(TimestampType.REAL)!.slice(0, 3)).toEqual(expected);
|
D | parser_screen_recording_legacy_test.ts | 40 let expected = [ variable 45 expect(timestamps.slice(0, 3)).toEqual(expected); 47 expected = [ 52 expect(timestamps.slice(timestamps.length - 3, timestamps.length)).toEqual(expected);
|
D | parser_input_method_clients_test.ts | 38 const expected = [ constant 43 expect(parser.getTimestamps(TimestampType.ELAPSED)!.slice(0, 3)).toEqual(expected); 47 const expected = [ constant 52 expect(parser.getTimestamps(TimestampType.REAL)!.slice(0, 3)).toEqual(expected);
|
D | parser_protolog_test.ts | 61 const expected = [ constant 66 expect(timestamps.slice(0, 3)).toEqual(expected); 73 const expected = [ constant 78 expect(timestamps.slice(0, 3)).toEqual(expected);
|
/development/samples/ApiDemos/tests/src/com/example/android/apis/os/ |
D | MorseCodeConverterTest.java | 46 private void assertArraysEqual(long[] expected, long[] actual) { in assertArraysEqual() argument 47 assertEquals("Unexpected array length.", expected.length, actual.length); in assertArraysEqual() 48 for (int i = 0; i < expected.length; i++) { in assertArraysEqual() 49 long expectedLong = expected[i]; in assertArraysEqual()
|
/development/tools/repo_diff/service/repodiff/mappers/ |
D | mappers_test.go | 17 expected := e.DiffRow{ 29 assert.Equal(t, expected, *diffRow, "Entities should be identical") 37 expected := e.CommitRow{ 45 assert.Equal(t, expected, *commitRow, "Entities should be identical") 58 expected := []interface{}{ 64 assert.Equal(t, expected, cols, "Columns should be equal")
|
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/ |
D | TestHelper.java | 29 public void assertSourceEquals(String expected, String actual) { in assertSourceEquals() argument 30 String en = expected.replaceAll("[\\s]+", " ").trim(); in assertSourceEquals() 34 … String.format("Source comparison failure: expected:<%s> but was:<%s>", expected, actual), in assertSourceEquals()
|
/development/tools/repo_diff/service/repodiff/interactors/ |
D | strings_test.go | 66 expected := []string{ 70 assert.Equal(t, expected, diff, "Discard of s2 from s1") 84 expected := []string{ 91 assert.Equal(t, expected, union, "Union of s2 and s1")
|