Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 56) sorted by relevance

123

/development/tools/logblame/
Dtest_logs.py11 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 …]
Dtest_ps.py17 expected = [
25 if actual != expected:
27 print expected
55 expected = [
62 if actual != expected:
64 print expected
Dtest_analyze.py6 def test_ParseDuration(s, expected): argument
8 if actual != expected:
9 raise Exception("expected %s, actual %s" % (expected, actual))
/development/samples/AconfigDemo/tests/unittests/
DStaticContentUnitTests.java56 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/
DHardcodedColorDetectorTest.java57 …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/
Dparser_eventlog_test.ts51 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);
Dtraces_parser_cujs_test.ts41 const expected = [ constant
49 expect(timestamps.slice(0, 3)).toEqual(expected);
55 const expected = new PropertyTreeBuilder() constant
84 expect(entry).toEqual(expected);
/development/scripts/
Dgdbclient_test.py27 …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/
Dparser_surface_flinger_dump_test.ts47 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/
Dmappers_test.go17 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")
Dcsv_test.go23 expected := []string{
31 assert.Equal(t, expected, csvRow, "Strings should be equal")
/development/samples/ApiDemos/tests/src/com/example/android/apis/os/
DMorseCodeConverterTest.java47 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/
DTestHelper.java29 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/
Dparser_screen_recording_legacy_test.ts47 let expected = [ variable
52 expect(timestamps.slice(0, 3)).toEqual(expected);
54 expected = [
60 expected,
/development/tools/repo_diff/service/repodiff/interactors/
Dstrings_test.go66 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/
DInjectedContentTests.java38 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/
Dparser_common_test.ts61 const expected = [ constant
67 expected,
94 const expected = [ constant
99 expect(parser.getTimestamps()).toEqual(expected);
/development/tools/winscope/src/parsers/window_manager/
Dparser_window_manager_test.ts52 const expected = [ constant
58 expected,
91 const expected = [ constant
96 expect(parser.getTimestamps()).toEqual(expected);
/development/tools/repo_diff/service/repodiff/constants/
Dconstants_test.go10 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/
Dparser_transactions_test.ts50 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/
DVaultProviderTest.java86 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/
Dquery_result.ts209 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/
Dtraces_parser_transitions_test.ts46 const expected = [ constant
52 expect(timestamps).toEqual(expected);
Dparser_transitions_wm_test.ts45 const expected = constant
47 timestamps.forEach((timestamp) => expect(timestamp).toEqual(expected));
Dparser_transitions_shell_test.ts45 const expected = [ constant
53 expect(timestamps).toEqual(expected);

123