/tools/tradefederation/core/atest/test_runners/ |
D | event_handler.py | 80 self.state = CONNECTION_STATE.copy() 86 self.state['current_group'] = event_data['moduleName'] 87 self.state['last_failed'] = None 88 self.state['current_test'] = None 92 self.state['test_run_name'] = event_data.setdefault('runName', '') 93 self.state['current_group_total'] = event_data['testCount'] 94 self.state['test_count'] = 0 95 self.state['last_failed'] = None 96 self.state['current_test'] = None 101 self.state['current_test'] = name [all …]
|
/tools/asuite/atest/test_runners/ |
D | event_handler.py | 82 self.state = CONNECTION_STATE.copy() 88 self.state['current_group'] = event_data['moduleName'] 89 self.state['last_failed'] = None 90 self.state['current_test'] = None 94 self.state['test_run_name'] = event_data.setdefault('runName', '') 95 self.state['current_group_total'] = event_data['testCount'] 96 self.state['test_count'] = 0 97 self.state['last_failed'] = None 98 self.state['current_test'] = None 103 self.state['current_test'] = name [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | Javadoc.kt | 309 var state = STATE_TEXT in getBodyContents() variable 326 when (state) { in getBodyContents() 329 state = STATE_SLASH in getBodyContents() 347 state = STATE_TEXT in getBodyContents() 355 state = STATE_TEXT in getBodyContents() 363 state = STATE_TEXT in getBodyContents() 366 state = STATE_TEXT in getBodyContents() 371 state = STATE_CLOSE_TAG in getBodyContents() 380 state = STATE_TEXT in getBodyContents() 383 state = STATE_TEXT in getBodyContents() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/ |
D | cmw500.py | 193 def switch_lte_signalling(self, state): argument 200 if not isinstance(state, LteState): 203 state = state.value 205 cmd = 'SOURce:LTE:SIGN:CELL:STATe {}'.format(state) 212 if response == state + ',ADJ': 213 self._logger.info('LTE signalling is now {}.'.format(state)) 220 raise CmwError('Failed to turn {} LTE signalling.'.format(state)) 238 def use_carrier_specific(self, state): argument 244 cmd = 'CONFigure:LTE:SIGN:DMODe:UCSPECific {}'.format(state) 281 state = self.send_and_recv('FETCh:LTE:SIGN:PSWitched:STATe?') [all …]
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/ |
D | TraceMarkerEvent.kt | 23 override fun import(event: FtraceEvent, state: FtraceImporterState) { in <lambda>() 24 state.threadFor(event.pid, tgid, event.task).slicesBuilder.beginSlice { in <lambda>() 32 override fun import(event: FtraceEvent, state: FtraceImporterState) { in import() 33 state.threadFor(event.pid, event.tgid, event.task).slicesBuilder.endSlice { in import() 40 override fun import(event: FtraceEvent, state: FtraceImporterState) { in import() 41 state.threadFor(event.pid, tgid, event.task).process in import() 48 override fun import(event: FtraceEvent, state: FtraceImporterState) { in import() 49 state.processFor(tgid, event.task).asyncSlicesBuilder in import() 55 override fun import(event: FtraceEvent, state: FtraceImporterState) { in import() 56 state.processFor(tgid, event.task).asyncSlicesBuilder in import() [all …]
|
D | EventParserState.kt | 32 fun import(event: FtraceEvent, state: FtraceImporterState) in <lambda>() 36 override fun import(event: FtraceEvent, state: FtraceImporterState) {} in import() 39 typealias EventDetailsParser = (state: EventParserState, slice: DataSlice) -> FtraceEventDetails? 72 onParseDetails(funcName) { state, details -> in onParseDetailsWithMatch() method 73 state.ifMatches(patternMatcher, details) { in onParseDetailsWithMatch() 84 onParseDetails(funcName) { state, details -> in onParseDetailsWithMatch() method 85 state.ifMatches(patternMatcher, details) { in onParseDetailsWithMatch()
|
D | FtraceEvent.kt | 34 fun import(state: FtraceImporterState) { in <lambda>() 35 details.import(this, state) in <lambda>() 47 fun tryParseText(state: EventParserState, slice: DataSlice): FtraceEvent? { in <lambda>() 48 state.ifMatches(ftraceLineMatcher, slice) { in <lambda>() 58 details = state.detailsForText(function, slice(7)) in <lambda>() 61 state.ifMatches(cpuBufferStarted, slice) { in <lambda>()
|
D | SchedEvent.kt | 56 override fun import(event: FtraceEvent, state: FtraceImporterState) { in import() 57 val prevThread = state.threadFor(prevPid, task = prevComm) in import() 58 val nextThread = state.threadFor(nextPid, task = nextComm) in import() 59 val cpu = state.cpuFor(event.cpu) in import() 69 override fun import(event: FtraceEvent, state: FtraceImporterState) { in import() 70 val thread = state.threadFor(pid, task = comm) in import()
|
/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/ |
D | ClassName.kt | 44 var state = 0 in packageNameWithDefault() variable 55 when (state) { in packageNameWithDefault() 58 '/' -> state = INIT_SLASH in packageNameWithDefault() 60 state = IN_STRING in packageNameWithDefault() 64 state = IN_CHAR in packageNameWithDefault() 72 c == '*' -> state = BLOCK_COMMENT in packageNameWithDefault() 73 c == '/' && stripLineComments -> state = LINE_COMMENT in packageNameWithDefault() 75 state = INIT in packageNameWithDefault() 83 '\n' -> state = INIT in packageNameWithDefault() 88 '*' -> state = BLOCK_COMMENT_ASTERISK in packageNameWithDefault() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | FieldItem.kt | 293 var state = START in javaUnescapeString() variable 297 when (state) { in javaUnescapeString() 299 state = ESCAPE in javaUnescapeString() 306 state = START in javaUnescapeString() 310 state = START in javaUnescapeString() 314 state = START in javaUnescapeString() 318 state = START in javaUnescapeString() 322 state = START in javaUnescapeString() 326 state = START in javaUnescapeString() 330 state = START in javaUnescapeString() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZFile.java | 316 private ZipFileState state; field in ZFile 488 state = ZipFileState.CLOSED; in ZFile() 504 if (state != ZipFileState.CLOSED) { in ZFile() 520 if (state != ZipFileState.CLOSED) { in ZFile() 594 Preconditions.checkState(state != ZipFileState.CLOSED, "state == ZipFileState.CLOSED"); in readData() 709 Preconditions.checkState(state != ZipFileState.CLOSED, "state == ZipFileState.CLOSED"); in readEocd() 822 Preconditions.checkState(state != ZipFileState.CLOSED, "state == ZipFileState.CLOSED"); in readCentralDirectory() 885 Preconditions.checkState(state != ZipFileState.CLOSED, "state == ZipFileState.CLOSED"); in directOpen() 1330 Preconditions.checkState(state == ZipFileState.OPEN_RW, "state != ZipFileState.OPEN_RW"); in writeEntry() 1373 Preconditions.checkState(state == ZipFileState.OPEN_RW, "state != ZipFileState.OPEN_RW"); in computeCentralDirectory() [all …]
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | DeviceDescriptor.java | 52 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 55 this(serial, isStubDevice, state, product, productVariant, sdkVersion, buildId, in DeviceDescriptor() 59 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 68 state, in DeviceDescriptor() 86 DeviceAllocationState state, in DeviceDescriptor() argument 102 state, in DeviceDescriptor() 121 DeviceAllocationState state, in DeviceDescriptor() argument 137 state, in DeviceDescriptor() 157 DeviceAllocationState state, in DeviceDescriptor() argument 175 mState = state; in DeviceDescriptor() [all …]
|
/tools/test/connectivity/acts_tests/tests/google/ble/scan/ |
D | BleBackgroundScanTest.py | 234 state = self.scn_ad.droid.bluetoothGetLeState() 235 if state != bt_adapter_states['ble_on']: 238 bt_adapter_states['ble_on'], state)) 250 state = self.scn_ad.droid.bluetoothGetLeState() 251 if state != bt_adapter_states['off']: 254 bt_adapter_states['off'], state)) 262 state = self.scn_ad.droid.bluetoothGetLeState() 263 if state != bt_adapter_states['off']: 266 format(bt_adapter_states['off'], state)) 271 state = self.scn_ad.droid.bluetoothGetLeState() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/ |
D | mg3710a.py | 168 def set_modulation_state(self, state, sg=1): argument 179 cmd = "OUTP{}:MOD {}".format(sg, state) 194 def set_rf_output_state(self, state, sg=1): argument 205 cmd = "OUTP{} {}".format(sg, state) 246 def set_frequency_offset_state(self, state, sg=1): argument 257 cmd = "SOUR{}:FREQ:OFFS:STAT {}".format(sg, state) 299 def set_frequency_offset_multiplier_state(self, state, sg=1): argument 310 cmd = "SOUR{}:FREQ:MULT:STAT {}".format(sg, state) 467 def set_arb_state(self, state, sg=1): argument 478 cmd = "SOUR{}:RAD:ARB {}".format(sg, state) [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
D | tel_test_utils.py | 796 state = ad.adb.getprop("gsm.sim.state") 797 ad.log.info("gsm.sim.state = %s", state) 798 return state == SIM_STATE_READY or state == SIM_STATE_LOADED 808 for state in states: 809 if state != SIM_STATE_READY and state != SIM_STATE_LOADED: 851 for state in event_recv_list: 852 if state is False: 873 def _wait_for_bluetooth_in_state(log, ad, state, max_wait): argument 883 if bt_state == state: 887 bt_state, state) [all …]
|
D | tel_video_utils.py | 210 state = ad.droid.telecomCallVideoGetState(call) 221 }[state]: 224 if state == video_state: 226 log.info("Non-Video-State: {}".format(state)) 262 state = ad.droid.telecomCallVideoGetState(call) 273 }[state]: 276 if state == video_state: 278 ad.log.info("Non-Video-State: %s", state) 437 state = ad.droid.telecomCallVideoGetState(call) 438 if (state == VT_STATE_AUDIO_ONLY and is_call_hd(log, ad, call)): [all …]
|
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/ |
D | renderer.cpp | 43 state.numCircles = numCircles; in Renderer() 153 state.circles.resize(state.numCircles, Circle(RADIUS)); in initDisplay() 154 state.velocities.resize(state.numCircles); in initDisplay() 155 for (auto& v : state.velocities) { in initDisplay() 182 for (int i = 0; i < state.circles.size(); ++i) { in update() 183 auto& circle = state.circles[i]; in update() 184 Vec2& v = state.velocities[i]; in update() 223 for (int i = 0; i < state.circles.size(); ++i) { in draw() 224 auto& circle = state.circles[i]; in draw()
|
D | main.cpp | 102 void android_main(struct android_app* state) { in android_main() argument 105 LOGI("Running with SDK %d", state->activity->sdkVersion); in android_main() 108 state->userData = renderer.get(); in android_main() 109 state->onAppCmd = engine_handle_cmd; in android_main() 110 state->onInputEvent = engine_handle_input; in android_main() 125 source->process(state, source); in android_main() 129 if (state->destroyRequested != 0) { in android_main() 148 qualification.startLoop(state->activity); in android_main()
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveEmergencyBase.py | 119 for setting, state in self.default_settings.items(): 121 if values and values[-1] != state: 123 [CARRIER_OVERRIDE_CMD, setting, state])) 222 def set_ims_first(self, state): argument 226 if state in output: return 227 cmd = " ".join([CARRIER_OVERRIDE_CMD, IMS_FIRST, state]) 234 def set_allow_non_emergency_call(self, state): argument 239 if state in output: return 240 cmd = " ".join([CARRIER_OVERRIDE_CMD, ALLOW_NON_EMERGENCY_CALL, state]) 251 state = "true" if non_emergency_call_allowed else "false" [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/ |
D | relay.py | 106 def set(self, state): argument 122 if state is not RelayState.NO and state is not RelayState.NC: 125 (state, [state for state in RelayState])) 126 if self.get_status() != state: 127 self.relay_board.set(self.position, state)
|
/tools/test/connectivity/acts/framework/acts/test_utils/gnss/ |
D | gnss_test_utils.py | 270 def set_wifi_and_bt_scanning(ad, state=True): argument 279 if state: 362 def set_mobile_data(ad, state): argument 370 if state: 378 if state and out == 1: 380 elif not state and out == 0: 602 def start_gnss_by_gtw_gpstool(ad, state, type="gnss", bgdisplay=False): argument 612 if state and not bgdisplay: 615 elif state and bgdisplay: 618 if not state: [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | WaitDeviceRecovery.java | 132 TestDeviceState state = monitor.getDeviceState(); in recoverDevice() local 133 if (TestDeviceState.FASTBOOT.equals(state) || TestDeviceState.FASTBOOTD.equals(state)) { in recoverDevice() 138 monitor.getSerialNumber(), state)); in recoverDevice() 484 TestDeviceState state = monitor.getDeviceState(); in attemptDeviceUnavailableRecovery() local 485 if (TestDeviceState.FASTBOOT.equals(state) || TestDeviceState.FASTBOOTD.equals(state)) { in attemptDeviceUnavailableRecovery() 486 CLog.d("Device is in '%s' state skipping USB reset attempt.", state); in attemptDeviceUnavailableRecovery()
|
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/ |
D | monsoon.py | 107 def usb(self, state): argument 130 if isinstance(state, str): 131 normalized_state = state.lower() 133 elif state in states_dict.values(): 134 expected_state = state 139 'Expected any of %s.' % (repr(state), states_dict)) 156 state)
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | bt_test_utils.py | 353 state = profile_event['data']['state'] 355 if state == bt_profile_states['connected'] and \ 503 state = profile_event['data']['state'] 506 if state == bt_profile_states['disconnected'] and \ 1107 def log_energy_info(android_devices, state): argument 1117 return_string = "{} Energy info collection:\n".format(state) 1691 state=None, 1710 if state is None: 1717 if set([state]).issubset(all_states[-threshold:]): 1721 "Bluetooth state fails to normalize" if state is None else [all …]
|
/tools/test/connectivity/acts_tests/tests/google/bt/avrcp/ |
D | BtAvrcpPassthroughTest.py | 45 state = (self.dut.droid 47 assert_equal(state, PlaybackState.PLAY, 48 'Current playback state is not Play, is {}'.format(state)) 52 state = (self.dut.droid 54 assert_equal(state, PlaybackState.PAUSE, 55 'Current playback state is not Pause, is {}'.format(state))
|