/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/samples/AconfigDemo/tests/unittests/ |
D | StaticContentUnitTests.java | 56 StringBuilder expected = new StringBuilder(); in staticContent_enable_staticFlag_disable_thirdFlag() local 57 expected.append("The flag: appendStaticContent is ON!!\n\n"); in staticContent_enable_staticFlag_disable_thirdFlag() 58 expected.append("The flag: thirdFlag is OFF!!\n\n"); in staticContent_enable_staticFlag_disable_thirdFlag() 59 expected.append("The flag: read only flag static is OFF!!\n\n"); in staticContent_enable_staticFlag_disable_thirdFlag() 60 assertEquals("Expected message", expected.toString(), ret); in staticContent_enable_staticFlag_disable_thirdFlag() 69 StringBuilder expected = new StringBuilder(); in staticContent_enable_thirdFlag_with_default() local 70 expected.append("The flag: appendStaticContent is OFF!!\n\n"); in staticContent_enable_thirdFlag_with_default() 71 expected.append("The flag: thirdFlag is ON!!\n\n"); in staticContent_enable_thirdFlag_with_default() 72 expected.append("The flag: read only flag static is OFF!!\n\n"); in staticContent_enable_thirdFlag_with_default() 73 assertEquals("Expected message", expected.toString(), ret); in staticContent_enable_thirdFlag_with_default()
|
/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/events/ |
D | parser_eventlog_test.ts | 51 const expected = [ constant 56 expect(timestamps.slice(0, 3)).toEqual(expected); 62 const expected = new PropertyTreeBuilder() constant 79 expect(entry).toEqual(expected); 100 const expected = [ constant 105 expect(timestamps).toEqual(expected); 111 const expected = new PropertyTreeBuilder() constant 125 expect(entry).toEqual(expected);
|
D | traces_parser_cujs_test.ts | 41 const expected = [ constant 49 expect(timestamps.slice(0, 3)).toEqual(expected); 55 const expected = new PropertyTreeBuilder() constant 84 expect(entry).toEqual(expected);
|
/development/scripts/ |
D | gdbclient_test.py | 27 …def merge_compare(self, base: dict[str, Any], to_add: dict[str, Any] | None, expected: dict[str, A… 30 self.assertEqual(actual, expected, f'base={base}, to_add={to_add}') 35 expected = { 'foo' : 1 } 36 self.merge_compare(base, to_add, expected) 41 expected = { 'foo' : 1, 'bar' : 2 } 42 self.merge_compare(base, to_add, expected) 47 expected = { 'foo' : 2 } 48 self.merge_compare(base, to_add, expected) 53 expected = { 'foo' : [1, 2, 3, 4] } 54 self.merge_compare(base, to_add, expected) [all …]
|
/development/tools/winscope/src/parsers/surface_flinger/legacy/ |
D | parser_surface_flinger_dump_test.ts | 47 const expected = [TimestampConverterUtils.makeElapsedTimestamp(0n)]; constant 48 expect(parser.getTimestamps()).toEqual(expected); 57 const expected = [TimestampConverterUtils.makeElapsedTimestamp(0n)]; constant 58 expect(parserWithTimezoneInfo.getTimestamps()).toEqual(expected); 85 const expected = [TimestampConverterUtils.makeElapsedTimestamp(0n)]; constant 86 expect(parser.getTimestamps()).toEqual(expected);
|
/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")
|
D | csv_test.go | 23 expected := []string{ 31 assert.Equal(t, expected, csvRow, "Strings should be equal")
|
/development/samples/ApiDemos/tests/src/com/example/android/apis/os/ |
D | MorseCodeConverterTest.java | 47 private void assertArraysEqual(long[] expected, long[] actual) { in assertArraysEqual() argument 48 assertEquals("Unexpected array length.", expected.length, actual.length); in assertArraysEqual() 49 for (int i = 0; i < expected.length; i++) { in assertArraysEqual() 50 long expectedLong = expected[i]; in assertArraysEqual()
|
/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/winscope/src/parsers/screen_recording/ |
D | parser_screen_recording_legacy_test.ts | 47 let expected = [ variable 52 expect(timestamps.slice(0, 3)).toEqual(expected); 54 expected = [ 60 expected,
|
/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")
|
/development/samples/AconfigDemo/tests/src/com/example/android/aconfig/demo/ |
D | InjectedContentTests.java | 38 StringBuilder expected = new StringBuilder(); in testInjectedContentFlagOn() local 39 expected.append("The flag: appendInjectedContent is ON!!\n\n"); in testInjectedContentFlagOn() 40 … assertEquals("Get appendInjectedContent", expected.toString(), injectedContent.getContent()); in testInjectedContentFlagOn()
|
/development/tools/winscope/src/parsers/legacy/ |
D | parser_common_test.ts | 61 const expected = [ constant 67 expected, 94 const expected = [ constant 99 expect(parser.getTimestamps()).toEqual(expected);
|
/development/tools/winscope/src/parsers/window_manager/ |
D | parser_window_manager_test.ts | 52 const expected = [ constant 58 expected, 91 const expected = [ constant 96 expect(parser.getTimestamps()).toEqual(expected);
|
/development/tools/repo_diff/service/repodiff/constants/ |
D | constants_test.go | 10 expected := "00000000-0000-0000-0000-000000000000" 11 assert.Equal(t, expected, NullUUID().String(), "Null UUID should be deterministic")
|
/development/tools/winscope/src/parsers/transactions/legacy/ |
D | parser_transactions_test.ts | 50 const expected = [ constant 55 expect(timestamps.slice(0, 3)).toEqual(expected); 138 const expected = [ constant 143 expect(timestamps.slice(0, 3)).toEqual(expected);
|
/development/samples/Vault/tests/src/com/example/android/vault/ |
D | VaultProviderTest.java | 86 try { mProvider.queryDocument(dir, null); } catch (Exception expected) { } in testDeleteDirectory() 87 try { mProvider.queryDocument(dirfile, null); } catch (Exception expected) { } in testDeleteDirectory() 88 try { mProvider.queryDocument(dirdir, null); } catch (Exception expected) { } in testDeleteDirectory() 89 try { mProvider.queryDocument(dirdirfile, null); } catch (Exception expected) { } in testDeleteDirectory()
|
/development/tools/winscope/src/trace_processor/ |
D | query_result.ts | 209 function isCompatible(actual: CellType, expected: ColumnType|null): boolean { 212 return expected === NUM_NULL || expected === STR_NULL || 213 expected === BLOB_NULL || expected === LONG_NULL; 215 return expected === NUM || expected === NUM_NULL || expected === LONG || 216 expected === LONG_NULL; 218 return expected === NUM || expected === NUM_NULL; 220 return expected === STR || expected === STR_NULL; 222 return expected === BLOB || expected === BLOB_NULL;
|
/development/tools/winscope/src/parsers/transitions/legacy/ |
D | traces_parser_transitions_test.ts | 46 const expected = [ constant 52 expect(timestamps).toEqual(expected);
|
D | parser_transitions_wm_test.ts | 45 const expected = constant 47 timestamps.forEach((timestamp) => expect(timestamp).toEqual(expected));
|
D | parser_transitions_shell_test.ts | 45 const expected = [ constant 53 expect(timestamps).toEqual(expected);
|