Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 747) sorted by relevance

12345678910>>...30

/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DMemHealthParserTest.java53 assertNotNull(processes.get("com.google.android.gm")); in testOneForegroundProc()
54 Map<String, Long> process = processes.get("com.google.android.gm"); in testOneForegroundProc()
55 assertEquals(10910, process.get("native_avg").longValue()); in testOneForegroundProc()
56 assertEquals(8011, process.get("dalvik_avg").longValue()); in testOneForegroundProc()
57 assertEquals(90454, process.get("pss_avg").longValue()); in testOneForegroundProc()
58 assertEquals(11136, process.get("native_peak").longValue()); in testOneForegroundProc()
59 assertEquals(9812, process.get("dalvik_peak").longValue()); in testOneForegroundProc()
60 assertEquals(95161, process.get("pss_peak").longValue()); in testOneForegroundProc()
61 assertEquals(8223, process.get("summary_java_heap_avg").longValue()); in testOneForegroundProc()
62 assertEquals(3852, process.get("summary_native_heap_avg").longValue()); in testOneForegroundProc()
[all …]
DDumpsysProcessMeminfoParserTest.java57 dump.get(DumpsysProcessMeminfoItem.NATIVE).get(DumpsysProcessMeminfoItem.MAX)); in testDumpsysProcessMeminfoParser()
60 dump.get(DumpsysProcessMeminfoItem.DALVIK).get(DumpsysProcessMeminfoItem.MAX)); in testDumpsysProcessMeminfoParser()
62 dump.get(DumpsysProcessMeminfoItem.OTHER) in testDumpsysProcessMeminfoParser()
66 dump.get(DumpsysProcessMeminfoItem.TOTAL).get(DumpsysProcessMeminfoItem.MAX)); in testDumpsysProcessMeminfoParser()
69 dump.get(DumpsysProcessMeminfoItem.TOTAL).get(DumpsysProcessMeminfoItem.PSS)); in testDumpsysProcessMeminfoParser()
71 Long.valueOf(3662L), dump.get("Dalvik Other").get(DumpsysProcessMeminfoItem.PSS)); in testDumpsysProcessMeminfoParser()
72 assertEquals(Long.valueOf(111L), dump.get("GL mtrack").get(DumpsysProcessMeminfoItem.PSS)); in testDumpsysProcessMeminfoParser()
75 dump.get("GL mtrack").get(DumpsysProcessMeminfoItem.SWAPPABLE_PSS)); in testDumpsysProcessMeminfoParser()
78 dump.get("GL mtrack").get(DumpsysProcessMeminfoItem.SHARED_DIRTY)); in testDumpsysProcessMeminfoParser()
81 dump.get("GL mtrack").get(DumpsysProcessMeminfoItem.SHARED_CLEAN)); in testDumpsysProcessMeminfoParser()
[all …]
DTimingsLogParserTest.java105 assertEquals("ZygoteStartTime", items.get(0).getName()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
106 assertEquals(5000.0, items.get(0).getDuration()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
108 assertEquals("BootToAnimEnd", items.get(1).getName()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
109 assertEquals(20320.0, items.get(1).getDuration()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
111 assertEquals("FakeServiceStartTime", items.get(2).getName()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
112 assertEquals(6942.0, items.get(2).getDuration()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
114 assertEquals("ZygoteToApp", items.get(3).getName()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
115 assertEquals(12728.0, items.get(3).getDuration()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
117 assertEquals("BootToAppStart", items.get(4).getName()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
118 assertEquals(22474.0, items.get(4).getDuration()); in testParseGenericTiming_multiplePattern_oneOccurrenceEach()
[all …]
DLogcatParserTest.java54 assertEquals(312, logcat.getAnrs().get(0).getPid().intValue()); in testParse_anr()
55 assertEquals(366, logcat.getAnrs().get(0).getTid().intValue()); in testParse_anr()
56 assertEquals("", logcat.getAnrs().get(0).getLastPreamble()); in testParse_anr()
57 assertEquals("", logcat.getAnrs().get(0).getProcessPreamble()); in testParse_anr()
58 assertEquals(parseTime("2012-04-25 17:17:08.445"), logcat.getAnrs().get(0).getEventTime()); in testParse_anr()
78 assertEquals(1234, logcat.getAnrs().get(0).getPid().intValue()); in testParse_anr_pid()
79 assertNull(logcat.getAnrs().get(0).getTid()); in testParse_anr_pid()
80 assertEquals("", logcat.getAnrs().get(0).getLastPreamble()); in testParse_anr_pid()
81 assertEquals("", logcat.getAnrs().get(0).getProcessPreamble()); in testParse_anr_pid()
82 assertEquals(parseTime("2012-04-25 17:17:08.445"), logcat.getAnrs().get(0).getEventTime()); in testParse_anr_pid()
[all …]
DWakelockParserTest.java51 wakelock.getWakeLocks(WakeLockCategory.KERNEL_WAKELOCK).get(0).getName()); in testKernelWakelockParser()
53 get(0).getHeldTime()); in testKernelWakelockParser()
55 get(0).getLockedCount()); in testKernelWakelockParser()
74 get(0).getName()); in testPartialWakelockParser()
76 get(0).getProcessUID()); in testPartialWakelockParser()
78 get(0).getHeldTime()); in testPartialWakelockParser()
80 get(0).getLockedCount()); in testPartialWakelockParser()
99 get(0).getName()); in testPartialWakelockParserOnOldFormat()
101 get(0).getProcessUID()); in testPartialWakelockParserOnOldFormat()
103 get(0).getHeldTime()); in testPartialWakelockParserOnOldFormat()
[all …]
/tools/test/connectivity/acts/tests/google/fuchsia/netstack/
DNetstackIfaceTest.py40 for item in interfaces.get("result"):
41 identifier = item.get('id')
71 if interfaces.get('error') is not None:
73 interfaces.get('error')))
74 if len(interfaces.get('result')) < 1:
76 self.log.info("Interfaces found: {}".format(interfaces.get('result')))
97 if interfaces.get('error') is not None:
99 interfaces.get('error')))
100 for item in interfaces.get("result"):
101 identifier = item.get('id')
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DPsParserTest.java46 assertEquals("First process user name did not match", "root", psInfo.get(0).getUser()); in testNewerValidPsOutput()
47 assertEquals("First process id did not match", 1, psInfo.get(0).getPid()); in testNewerValidPsOutput()
48 assertEquals("First process name did not match", "init", psInfo.get(0).getName()); in testNewerValidPsOutput()
49 assertEquals("Second process user name did not match", "root", psInfo.get(1).getUser()); in testNewerValidPsOutput()
50 assertEquals("Second process id did not match", 2, psInfo.get(1).getPid()); in testNewerValidPsOutput()
51 assertEquals("Second process name did not match", "[kthreadd]", psInfo.get(1).getName()); in testNewerValidPsOutput()
65 assertEquals("First process user name did not match", "root", psInfo.get(0).getUser()); in testOlderValidPsOutput()
66 assertEquals("First process id did not match", 1, psInfo.get(0).getPid()); in testOlderValidPsOutput()
67 assertEquals("First process name did not match", "init", psInfo.get(0).getName()); in testOlderValidPsOutput()
68 assertEquals("Second process user name did not match", "root", psInfo.get(1).getUser()); in testOlderValidPsOutput()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DStrictShardHelperTest.java158 assertNotEquals(test, mConfig.getTests().get(0)); in testShardConfig_internal_shardIndex()
189 assertSame(test, mConfig.getTests().get(0)); in testShardConfig_internal_shardIndex_notShardable_shard0()
294 assertTrue(res.get(0) instanceof ITestSuite); in testMergeSuite_shard0()
295 assertEquals("module3", ((ITestSuite) res.get(0)).getDirectModule().getId()); in testMergeSuite_shard0()
296 assertEquals(2, ((ITestSuite) res.get(0)).getDirectModule().numTests()); in testMergeSuite_shard0()
298 assertTrue(res.get(1) instanceof ITestSuite); in testMergeSuite_shard0()
299 assertEquals("module1", ((ITestSuite) res.get(1)).getDirectModule().getId()); in testMergeSuite_shard0()
300 assertEquals(1, ((ITestSuite) res.get(1)).getDirectModule().numTests()); in testMergeSuite_shard0()
302 assertTrue(res.get(2) instanceof ITestSuite); in testMergeSuite_shard0()
303 assertEquals("module2", ((ITestSuite) res.get(2)).getDirectModule().getId()); in testMergeSuite_shard0()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleSplitterTest.java77 initialPreparers.get(0), in testSplitModule_configNotShardable()
78 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotShardable()
80 assertSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotShardable()
113 initialPreparers.get(0), in testSplitModule_configNotStrictShardable_dynamic()
114 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotStrictShardable_dynamic()
116 assertNotSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotStrictShardable_dynamic()
148 initialPreparers.get(0), in testSplitModule_configNotStrictShardable_notDynamic()
149 res.get(0).getTargetPreparerForDevice(DEFAULT_DEVICE).get(0)); in testSplitModule_configNotStrictShardable_notDynamic()
151 assertSame(test, res.get(0).getTests().get(0)); in testSplitModule_configNotStrictShardable_notDynamic()
177 initialPreparers.get(0), in testSplitModule_noIntraModuleSharding()
[all …]
/tools/tradefederation/core/atest/
Dmodule_info.py49 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
63 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP, '/')
64 out_dir = os.environ.get(constants.ANDROID_PRODUCT_OUT, root_dir)
77 os.environ.get(constants.ANDROID_PRODUCT_OUT), _MODULE_INFO)
124 if mod_name != mod_info.get(constants.MODULE_NAME, ''):
126 for path in mod_info.get(constants.MODULE_PATH, []):
141 info = self.name_to_module_info.get(name)
143 return info.get(constants.MODULE_PATH, [])
155 return [m.get(constants.MODULE_NAME)
156 for m in self.path_to_module_info.get(rel_module_path, [])]
[all …]
/tools/asuite/atest/
Dmodule_info.py51 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
65 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP, '/')
66 out_dir = os.environ.get(constants.ANDROID_PRODUCT_OUT, root_dir)
79 os.environ.get(constants.ANDROID_PRODUCT_OUT), _MODULE_INFO)
126 if mod_name != mod_info.get(constants.MODULE_NAME, ''):
128 for path in mod_info.get(constants.MODULE_PATH, []):
143 info = self.name_to_module_info.get(name)
145 return info.get(constants.MODULE_PATH, [])
157 return [m.get(constants.MODULE_NAME)
158 for m in self.path_to_module_info.get(rel_module_path, [])]
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DFlashingResourcesParserTest.java58 MultiMap<String, String> result = fullInfo.get(null); in testParseAndroidInfo()
61 List<String> boards = result.get(FlashingResourcesParser.BOARD_KEY); in testParseAndroidInfo()
63 assertEquals("board1", boards.get(0)); in testParseAndroidInfo()
64 assertEquals("board2", boards.get(1)); in testParseAndroidInfo()
65 List<String> bootloaders = result.get(FlashingResourcesParser.BOOTLOADER_VERSION_KEY); in testParseAndroidInfo()
66 assertEquals("1.0.1", bootloaders.get(0)); in testParseAndroidInfo()
82 MultiMap<String, String> result = fullInfo.get(null); in testParseAndroidInfo_withConstraint()
85 List<String> boards = result.get(FlashingResourcesParser.BOARD_KEY); in testParseAndroidInfo_withConstraint()
87 assertEquals("board1", boards.get(0)); in testParseAndroidInfo_withConstraint()
88 assertEquals("board2", boards.get(1)); in testParseAndroidInfo_withConstraint()
[all …]
/tools/acloud/internal/lib/
Dcvd_runtime_config.py98 self._x_res = self._config_dict.get(_CFG_KEY_X_RES)
99 self._y_res = self._config_dict.get(_CFG_KEY_Y_RES)
100 self._dpi = self._config_dict.get(_CFG_KEY_DPI)
101 adb_connector = self._config_dict.get(_CFG_KEY_ADB_CONNECTOR_BINARY)
107 self._instance_dir = self._config_dict.get(_CFG_KEY_INSTANCE_DIR)
108 self._vnc_port = self._config_dict.get(_CFG_KEY_VNC_PORT)
109 self._adb_port = self._config_dict.get(_CFG_KEY_ADB_PORT)
110 self._adb_ip_port = self._config_dict.get(_CFG_KEY_ADB_IP_PORT)
111 self._virtual_disk_paths = self._config_dict.get(
114 ins_cfg = self._config_dict.get(_CFG_KEY_INSTANCES)
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DLazyDelegateByteSource.java69 private CloseableByteSource get() throws IOException { in get() method in LazyDelegateByteSource
71 CloseableByteSource r = delegate.get(); in get()
87 return get().asCharSource(charset); in asCharSource()
95 return get().openBufferedStream(); in openBufferedStream()
101 return get().slice(offset, length); in slice()
109 return get().isEmpty(); in isEmpty()
114 return get().size(); in size()
119 return get().copyTo(output); in copyTo()
124 return get().copyTo(sink); in copyTo()
129 return get().read(); in read()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DCloseableDelegateByteSource.java68 private synchronized ByteSource get() { in get() method in CloseableDelegateByteSource
100 return get().asCharSource(charset); in asCharSource()
105 return get().openBufferedStream(); in openBufferedStream()
110 return get().slice(offset, length); in slice()
115 return get().isEmpty(); in isEmpty()
120 return get().size(); in size()
125 return get().copyTo(output); in copyTo()
130 return get().copyTo(sink); in copyTo()
135 return get().read(); in read()
140 return get().read(processor); in read()
[all …]
/tools/test/connectivity/acts/tests/google/fuchsia/logging/
DFuchsiaLoggingTest.py30 if result.get("error") is None:
31 signals.TestPass(result.get("result"))
33 signals.TestFailure(result.get("error"))
37 if result.get("error") is None:
38 signals.TestPass(result.get("result"))
40 signals.TestFailure(result.get("error"))
44 if result.get("error") is None:
45 signals.TestPass(result.get("result"))
47 signals.TestFailure(result.get("error"))
/tools/test/connectivity/acts/tests/google/fuchsia/hwinfo/
DHwinfoTest.py45 if result.get("error") is None:
47 signals.TestPass(result.get("result"))
49 signals.TestFailure(result.get("error"))
69 if result.get("error") is None:
71 signals.TestPass(result.get("result"))
73 signals.TestFailure(result.get("error"))
93 if result.get("error") is None:
95 signals.TestPass(result.get("result"))
97 signals.TestFailure(result.get("error"))
/tools/tradefederation/core/tests/src/com/android/tradefed/util/zip/
DMergedZipEntryCollectionTest.java51 assertEquals(2, collections.get(0).getZipEntries().size()); in testMergeZipEntries_smallGap()
52 assertEquals(10, collections.get(0).getStartOffset()); in testMergeZipEntries_smallGap()
53 assertEquals(22598, collections.get(0).getEndOffset()); in testMergeZipEntries_smallGap()
74 assertEquals(1, collections.get(0).getZipEntries().size()); in testMergeZipEntries_largeGap()
75 assertEquals(10, collections.get(0).getStartOffset()); in testMergeZipEntries_largeGap()
76 assertEquals(10280, collections.get(0).getEndOffset()); in testMergeZipEntries_largeGap()
77 assertEquals(18472, collections.get(1).getStartOffset()); in testMergeZipEntries_largeGap()
78 assertEquals(28742, collections.get(1).getEndOffset()); in testMergeZipEntries_largeGap()
102 assertEquals(11, collections.get(0).getZipEntries().size()); in testMergeZipEntries_smallGapPercent()
103 assertEquals(10, collections.get(0).getStartOffset()); in testMergeZipEntries_smallGapPercent()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DGenericItemTest.java80 assertNull(attributes.get("string")); in testMergeAttributes()
81 assertNull(attributes.get("integer")); in testMergeAttributes()
84 assertNull(attributes.get("string")); in testMergeAttributes()
85 assertNull(attributes.get("integer")); in testMergeAttributes()
88 assertNull(attributes.get("string")); in testMergeAttributes()
89 assertNull(attributes.get("integer")); in testMergeAttributes()
92 assertEquals(mStringAttribute, attributes.get("string")); in testMergeAttributes()
93 assertNull(attributes.get("integer")); in testMergeAttributes()
96 assertEquals(mStringAttribute, attributes.get("string")); in testMergeAttributes()
97 assertNull(attributes.get("integer")); in testMergeAttributes()
[all …]
DProcrankItemTest.java42 assertTrue(output.get(ProcrankItem.LINES) instanceof JSONArray); in testToJson()
44 assertEquals("foo\nbar", output.get(ProcrankItem.TEXT)); in testToJson()
49 assertTrue(lines.get(0) instanceof JSONObject); in testToJson()
53 assertEquals(0, line.get(ProcrankItem.PID)); in testToJson()
54 assertEquals("process0", line.get(ProcrankItem.PROCESS_NAME)); in testToJson()
55 assertEquals(1, line.get(ProcrankItem.VSS)); in testToJson()
56 assertEquals(2, line.get(ProcrankItem.RSS)); in testToJson()
57 assertEquals(3, line.get(ProcrankItem.PSS)); in testToJson()
58 assertEquals(4, line.get(ProcrankItem.USS)); in testToJson()
DDvmLockSampleItemTest.java47 assertEquals("android.support.test.aupt", output.get(DvmLockSampleItem.PROCESS_NAME)); in testToJson()
48 assertEquals(false, output.get(DvmLockSampleItem.SENSITIVITY_FLAG)); in testToJson()
49 …assertEquals("Instr: android.support.test.aupt", output.get(DvmLockSampleItem.WAITING_THREAD_NAME)… in testToJson()
50 assertEquals(75, output.get(DvmLockSampleItem.WAIT_TIME)); in testToJson()
51 assertEquals("AccessibilityCache.java", output.get(DvmLockSampleItem.WAITING_SOURCE_FILE)); in testToJson()
52 assertEquals(256, output.get(DvmLockSampleItem.WAITING_SOURCE_LINE)); in testToJson()
53 assertEquals("-", output.get(DvmLockSampleItem.OWNER_FILE_NAME)); in testToJson()
54 assertEquals(96, output.get(DvmLockSampleItem.OWNER_ACQUIRE_SOURCE_LINE)); in testToJson()
55 assertEquals(15, output.get(DvmLockSampleItem.SAMPLE_PERCENTAGE)); in testToJson()
/tools/test/connectivity/acts/tests/google/bt/pts/
DGattPtsTest.py208 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
214 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
220 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
226 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
232 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
238 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
244 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
250 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
256 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
262 gatt_test_database.GATT_SERVER_DB_MAPPING.get('LARGE_DB_1'))
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DProcessMaxMemoryCollector.java77 Map<String, Long> procPss = mMemoryData.get(device).mProcPss; in collect()
78 Map<String, Long> procUss = mMemoryData.get(device).mProcUss; in collect()
89 item.get(DumpsysProcessMeminfoItem.TOTAL) in collect()
90 .get(DumpsysProcessMeminfoItem.PSS); in collect()
92 item.get(DumpsysProcessMeminfoItem.TOTAL) in collect()
93 .get(DumpsysProcessMeminfoItem.PRIVATE_DIRTY); in collect()
100 if (mPssMemoryPerProcess.get(device) == null) { in collect()
103 if (mPssMemoryPerProcess.get(device).get(proc) == null) { in collect()
104 mPssMemoryPerProcess.get(device).put(proc, NumericValues.newBuilder()); in collect()
106 mPssMemoryPerProcess.get(device).get(proc).addNumericValue(pss); in collect()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationXmlParserTest.java66 configDef.getObjectClassMap().get("test").get(0).mClassName); in testParse()
67 assertEquals("junit.framework.TestCase:1:opName", configDef.getOptionList().get(0).name); in testParse()
68 assertEquals("val", configDef.getOptionList().get(0).value); in testParse()
111 configDef.getObjectClassMap().get("test").get(0).mClassName); in testParse_globalOption()
113 assertEquals("opName", configDef.getOptionList().get(0).name); in testParse_globalOption()
114 assertEquals("val", configDef.getOptionList().get(0).value); in testParse_globalOption()
138 configDef.getObjectClassMap().get("test").get(0).mClassName); in testParse_multiple()
139 …ertEquals("com.android.tradefed.testtype.HostTest:1:class", configDef.getOptionList().get(0).name); in testParse_multiple()
140 assertEquals("val1", configDef.getOptionList().get(0).value); in testParse_multiple()
144 configDef.getObjectClassMap().get("test").get(1).mClassName); in testParse_multiple()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGoogleBenchmarkResultParserTest.java119 assertEquals("5", resultTest1.get("cpu_time").getMeasurements().getSingleString()); in testParseSimpleFile()
120 assertEquals("5", resultTest1.get("real_time").getMeasurements().getSingleString()); in testParseSimpleFile()
121 assertEquals("BM_one", resultTest1.get("name").getMeasurements().getSingleString()); in testParseSimpleFile()
123 "109451958", resultTest1.get("iterations").getMeasurements().getSingleString()); in testParseSimpleFile()
128 assertEquals("11", resultTest2.get("cpu_time").getMeasurements().getSingleString()); in testParseSimpleFile()
129 assertEquals("1", resultTest2.get("real_time").getMeasurements().getSingleString()); in testParseSimpleFile()
130 assertEquals("BM_two", resultTest2.get("name").getMeasurements().getSingleString()); in testParseSimpleFile()
131 assertEquals("50906784", resultTest2.get("iterations").getMeasurements().getSingleString()); in testParseSimpleFile()
136 assertEquals("60", resultTest3.get("cpu_time").getMeasurements().getSingleString()); in testParseSimpleFile()
137 assertEquals("60", resultTest3.get("real_time").getMeasurements().getSingleString()); in testParseSimpleFile()
[all …]

12345678910>>...30