/tools/loganalysis/javatests/com/android/loganalysis/parser/ |
D | LogcatParserTest.java | 54 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 …]
|
D | MemHealthParserTest.java | 53 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 …]
|
D | TimingsLogParserTest.java | 105 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 …]
|
D | DumpsysProcessMeminfoParserTest.java | 57 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 …]
|
D | BugreportParserTest.java | 185 assertNotNull(bugreport.getSystemLog().getAnrs().get(0).getTrace()); in testParse() 235 assertEquals("value", bugreport.getCommandLine().get("key")); in testParse_command_line() 240 assertEquals("value1", bugreport.getCommandLine().get("key1")); in testParse_command_line() 241 assertEquals("value2", bugreport.getCommandLine().get("key2")); in testParse_command_line() 247 assertEquals("value=withequals", bugreport.getCommandLine().get("key1")); in testParse_command_line() 248 assertEquals("", bugreport.getCommandLine().get("key2")); in testParse_command_line() 253 assertEquals("value1", bugreport.getCommandLine().get("key1")); in testParse_command_line() 254 assertEquals("", bugreport.getCommandLine().get("key2")); in testParse_command_line() 255 assertNull(bugreport.getCommandLine().get("nonkey")); in testParse_command_line() 272 bugreport.getLastKmsg().getEvents().get(0).getStack()); in testParse_bootreason_kernel_good() [all …]
|
D | EventsLogParserTest.java | 92 transitionItems.get(0).getComponentName()); in testValidColdTransitionDelay() 94 transitionItems.get(0).getTransitionDelay()); in testValidColdTransitionDelay() 96 transitionItems.get(0).getStartingWindowDelay()); in testValidColdTransitionDelay() 98 transitionItems.get(0).getDateTime()); in testValidColdTransitionDelay() 121 transitionItems.get(0).getComponentName()); in testValidHotTransitionDelay() 123 transitionItems.get(0).getTransitionDelay()); in testValidHotTransitionDelay() 125 transitionItems.get(0).getDateTime()); in testValidHotTransitionDelay() 143 transitionItems.get(0).getStartingWindowDelay()); in testTransitionDelayOrder() 145 transitionItems.get(1).getStartingWindowDelay()); in testTransitionDelayOrder() 164 transitionItems.get(0).getComponentName()); in testDifferentAppTransitionDelay() [all …]
|
/tools/test/connectivity/acts_tests/tests/google/bt/pts/ |
D | GattPtsTest.py | 208 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/asuite/atest-py2/ |
D | module_info.py | 49 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/loganalysis/javatests/com/android/loganalysis/item/ |
D | GenericItemTest.java | 76 assertNull(attributes.get("string")); in testMergeAttributes() 77 assertNull(attributes.get("integer")); in testMergeAttributes() 80 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 assertEquals(mStringAttribute, 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() [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/abstract_devices/ |
D | bluetooth_device.py | 446 peer_info = self.peer_mapping.get(peer_identifier) 454 peer_info.get('bluetooth_gatt'), self.discovered_services_index, 458 peer_info.get('gatt_callback')) 476 peer_info = self.peer_mapping.get(peer_identifier) 484 peer_info.get('bluetooth_gatt'), self.discovered_services_index, 488 peer_info.get('gatt_callback')) 504 peer_info = self.peer_mapping.get(peer_identifier) 512 peer_info.get('bluetooth_gatt'), self.discovered_services_index, 516 peer_info.get('gatt_callback')) 536 peer_info = self.peer_mapping.get(peer_identifier) [all …]
|
/tools/asuite/atest/ |
D | module_info.py | 122 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP) 145 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP, '/') 146 out_dir = os.environ.get(constants.ANDROID_PRODUCT_OUT, root_dir) 159 os.environ.get(constants.ANDROID_PRODUCT_OUT), _MODULE_INFO) 276 if mod_name != mod_info.get(constants.MODULE_NAME, ''): 278 for path in mod_info.get(constants.MODULE_PATH, []): 317 modules.add(info.get(constants.MODULE_NAME)) 327 _modules.add(info.get(constants.MODULE_NAME)) 341 return info.get(constants.MODULE_PATH, []) 353 return [m.get(constants.MODULE_NAME) [all …]
|
D | atest_execution_info.py | 121 total_summary = result.get(_TOTAL_SUMMARY_KEY, {}) 124 test_result_url = result.get(_TEST_RESULT_LINK, '') 131 result.get(_ARGS_KEY, ''), 140 result.get(_ARGS_KEY, ''), 157 print("\natest {}".format(result.get(_ARGS_KEY, ''))) 158 test_result_url = result.get(_TEST_RESULT_LINK, '') 162 total_summary = result.get(_TOTAL_SUMMARY_KEY, {}) 165 fail_num = total_summary.get(_STATUS_FAILED_KEY) 171 test_runner = result.get(_TEST_RUNNER_KEY, {}) 173 test_dict = test_runner.get(runner_name, {}) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/tel/lab/ |
D | TelLabGFTDSDSInOutServiceTest.py | 278 loop = self.user_params.get("4g_dsds_io_cycle", 1) 295 loop = self.user_params.get("4g_dsds_io_cycle", 1) 312 loop = self.user_params.get("4g_dsds_io_cycle", 1) 329 loop = self.user_params.get("4g_dsds_io_cycle", 1) 346 loop = self.user_params.get("4g_dsds_io_cycle", 1) 363 loop = self.user_params.get("4g_dsds_io_cycle", 1) 381 loop = self.user_params.get("4g_dsds_io_cycle", 1) 398 loop = self.user_params.get("4g_dsds_io_cycle", 1) 416 loop = self.user_params.get("4g_dsds_io_cycle", 1) 433 loop = self.user_params.get("4g_dsds_io_cycle", 1) [all …]
|
/tools/acloud/internal/lib/ |
D | cvd_runtime_config.py | 116 self._x_res = self._config_dict.get(_CFG_KEY_X_RES) 117 self._y_res = self._config_dict.get(_CFG_KEY_Y_RES) 118 self._dpi = self._config_dict.get(_CFG_KEY_DPI) 119 crosvm_bin = self._config_dict.get(_CFG_KEY_CROSVM_BINARY) 125 self._instance_dir = self._config_dict.get(_CFG_KEY_INSTANCE_DIR) 126 self._vnc_port = self._config_dict.get(_CFG_KEY_VNC_PORT) 127 self._adb_port = (self._config_dict.get(_CFG_KEY_ADB_PORT) or 128 self._config_dict.get(_CFG_KEY_ADB_HOST_PORT)) 129 self._adb_ip_port = self._config_dict.get(_CFG_KEY_ADB_IP_PORT) 130 self._virtual_disk_paths = self._config_dict.get( [all …]
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/functional/ |
D | SoftApTest.py | 75 profile = config.get('profile', DEFAULT_AP_PROFILE) 76 ssid = config.get( 78 channel = config.get('channel', hostapd_constants.AP_DEFAULT_CHANNEL_2G) 79 security_mode = config.get('security_mode', None) 80 password = config.get('password', None) 107 ssid = config.get( 109 connectivity_mode = config.get('connectivity_mode', 111 operating_band = config.get('operating_band', OPERATING_BAND_2G) 112 security_type = config.get('security_type', SECURITY_OPEN) 113 password = config.get('password', '') [all …]
|
/tools/treble/build/sandbox/ |
D | config.py | 180 name = config_elem.get('name') 182 name=name, android_target=config_elem.get('android_target', name)) 185 android_target=config_elem.get('android_target', 187 name=config_elem.get('name', base_config.name), 188 allowed_projects_file=config_elem.get( 208 config.get('name'): config.get('value') 226 return base + [(goal.get('name'), set(goal.get('contexts').split(',')) 227 if goal.get('contexts') else None) 233 return base + [(goal.get('name'), set(goal.get('contexts').split(',')) 234 if goal.get('contexts') else None) [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ExtraFieldTest.java | 98 StoredEntry foo = zf.get("foo"); in readEntryWithNoExtraField() 126 StoredEntry foo = zf.get("foo"); in readSingleExtraField() 132 assertEquals(0x0A0B, segments.get(0).getHeaderId()); in readSingleExtraField() 134 segments.get(0).write(ByteBuffer.wrap(segData)); in readSingleExtraField() 173 StoredEntry foo = zf.get("foo"); in readMultipleExtraFields() 180 assertEquals(0x0A01, segments.get(0).getHeaderId()); in readMultipleExtraFields() 182 segments.get(0).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields() 185 assertEquals(0x0A02, segments.get(1).getHeaderId()); in readMultipleExtraFields() 187 segments.get(1).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields() 190 assertEquals(0x0A02, segments.get(2).getHeaderId()); in readMultipleExtraFields() [all …]
|
D | ZFileTest.java | 106 StoredEntry z = azf.get("z/"); in readAlmostEmptyZip() 119 StoredEntry e0 = azf.get("dir/"); in readZipWithTwoFilesOneDirectory() 123 StoredEntry e1 = azf.get("dir/inside"); in readZipWithTwoFilesOneDirectory() 132 StoredEntry e2 = azf.get("file.txt"); in readZipWithTwoFilesOneDirectory() 325 StoredEntry file2 = zf.get("file2"); 336 file2 = zf.get("file2"); 342 StoredEntry file2 = zf2.get("file2"); 365 StoredEntry file3 = zf.get("file3"); 377 file3 = zf.get("file3"); 383 StoredEntry file3 = zf2.get("file3"); [all …]
|
/tools/loganalysis/javatests/com/android/loganalysis/util/ |
D | RegexTrieTest.java | 102 assertEquals(NULL_LIST, groups.get(0)); in testGroups_fullMatch() 103 assertEquals(NULL_LIST, groups.get(1)); in testGroups_fullMatch() 108 assertEquals(NULL_LIST, groups.get(0)); in testGroups_fullMatch() 109 assertEquals(Arrays.asList("beta"), groups.get(1)); in testGroups_fullMatch() 114 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_fullMatch() 115 assertEquals(NULL_LIST, groups.get(1)); in testGroups_fullMatch() 120 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_fullMatch() 121 assertEquals(Arrays.asList("beta"), groups.get(1)); in testGroups_fullMatch() 133 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_partialMatch() 142 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_partialMatch() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | LazyDelegateByteSource.java | 69 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/test/connectivity/acts_tests/acts_contrib/test_utils/tel/ |
D | TelephonyBaseTest.py | 102 tries = int(self.user_params.get("telephony_auto_rerun", 1)) 128 if self.user_params.get("check_crash", True): 149 self.wifi_network_ssid = self.user_params.get( 150 "wifi_network_ssid") or self.user_params.get( 151 "wifi_network_ssid_2g") or self.user_params.get( 153 self.wifi_network_pass = self.user_params.get( 154 "wifi_network_pass") or self.user_params.get( 155 "wifi_network_pass_2g") or self.user_params.get( 159 self.qxdm_log = self.user_params.get("qxdm_log", True) 160 self.sdm_log = self.user_params.get("sdm_log", False) [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | CloseableDelegateByteSource.java | 68 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/framework/acts/controllers/ |
D | fuchsia_device.py | 217 self.sl4f_port = fd_conf_data.get("sl4f_port", 80) 218 self.ssh_port = fd_conf_data.get("ssh_port", 22) 219 self.ssh_config = fd_conf_data.get("ssh_config", None) 220 self.ssh_priv_key = fd_conf_data.get("ssh_priv_key", None) 221 self.authorized_file = fd_conf_data.get("authorized_file_loc", None) 222 self.serial_number = fd_conf_data.get("serial_number", None) 223 self.device_type = fd_conf_data.get("device_type", None) 224 self.product_type = fd_conf_data.get("product_type", None) 225 self.board_type = fd_conf_data.get("board_type", None) 226 self.build_number = fd_conf_data.get("build_number", None) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/netstack/ |
D | NetstackIfaceTest.py | 39 for item in interfaces.get("result"): 40 identifier = item.get('id') 70 if interfaces.get('error') is not None: 72 interfaces.get('error'))) 73 if len(interfaces.get('result')) < 1: 75 self.log.info("Interfaces found: {}".format(interfaces.get('result'))) 103 if (error := result.get('error')): 107 interface for interface in result.get('result') 108 if 'wlan' in interface.get('name') 122 if (error := result.get('error')): [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/lib_controllers/ |
D | wlan_policy_controller.py | 68 if not response.get('error'): 79 if response.get('error'): 83 if response.get('result') == 'Success': 92 if response.get('error'): 100 if response.get('error'): 140 if response.get('error'): 154 if start_response.get('error'): 167 if stop_response.get('error'): 282 if save_response.get('error'): 301 if remove_response.get('error'): [all …]
|