/tools/asuite/atest/test_runners/ |
D | event_handler.py | 88 self.state = CONNECTION_STATE.copy() 96 self.state['current_group'] = event_data['moduleName'] 97 self.state['last_failed'] = None 98 self.state['current_test'] = None 103 self.state['test_run_name'] = event_data.setdefault('runName', '') 104 self.state['current_group_total'] = event_data['testCount'] 105 self.state['test_count'] = 0 106 self.state['last_failed'] = None 107 self.state['current_test'] = None 114 self.state['current_test'] = name [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 | 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 | 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 | 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/metalava-model-source/src/main/java/com/android/tools/lint/checks/infrastructure/ |
D | ClassName.kt | 47 var state = 0 in packageNameWithDefault() variable 60 when (state) { in packageNameWithDefault() 63 '/' -> state = INIT_SLASH in packageNameWithDefault() 65 state = IN_STRING in packageNameWithDefault() 69 state = IN_CHAR in packageNameWithDefault() 79 state = BLOCK_COMMENT in packageNameWithDefault() 81 c == '/' && stripLineComments -> state = LINE_COMMENT in packageNameWithDefault() 83 state = INIT in packageNameWithDefault() 91 '\n' -> state = INIT in packageNameWithDefault() 96 '*' -> state = BLOCK_COMMENT_ASTERISK in packageNameWithDefault() [all …]
|
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/ |
D | FieldItem.kt | 250 var state = START in javaUnescapeString() variable 254 when (state) { in javaUnescapeString() 257 state = ESCAPE in javaUnescapeString() 265 state = START in javaUnescapeString() 269 state = START in javaUnescapeString() 273 state = START in javaUnescapeString() 277 state = START in javaUnescapeString() 281 state = START in javaUnescapeString() 285 state = START in javaUnescapeString() 289 state = START in javaUnescapeString() [all …]
|
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/ |
D | Javadoc.kt | 317 var state = STATE_TEXT in getBodyContents() variable 334 when (state) { in getBodyContents() 337 state = STATE_SLASH in getBodyContents() 354 state = STATE_TEXT in getBodyContents() 362 state = STATE_TEXT in getBodyContents() 370 state = STATE_TEXT in getBodyContents() 373 state = STATE_TEXT in getBodyContents() 378 state = STATE_CLOSE_TAG in getBodyContents() 387 state = STATE_TEXT in getBodyContents() 390 state = STATE_TEXT in getBodyContents() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/ |
D | cmw500.py | 251 def switch_lte_signalling(self, state): argument 258 if not isinstance(state, LteState): 261 state = state.value 263 cmd = 'SOURce:LTE:SIGN:CELL:STATe {}'.format(state) 270 if response == state + ',ADJ': 271 self._logger.info('LTE signalling is now {}.'.format(state)) 278 raise CmwError('Failed to turn {} LTE signalling.'.format(state)) 280 def switch_scc_state(self, scc_index, state): argument 287 cmd = 'CALL:LTE:SIGN:SCC{}:ACTion {}'.format(scc_index, state.value) 289 self.wait_for_scc_state(scc_index, [state]) [all …]
|
D | cmx500.py | 272 state = self.dut.state.rrc_connection_state 273 return RrcConnectionState(state.value) 376 return self.dut.state.rrc.is_connected 383 def switch_lte_signalling(self, state): argument 390 if not isinstance(state, LteState): 394 self.set_bts_enabled(state.value == 'ON', self.primary_lte_cell) 397 'Unable to set LTE signalling to {},'.format(state.value) + 532 state = bts.wait_cell_enabled(self.cell_switch_on_timer, True) 533 if state: 540 state = bts.wait_cell_enabled(self.cell_switch_on_timer, False) [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/tel/ |
D | tel_utils.py | 488 def toggle_cell_data_roaming(ad, state): argument 502 state_int = {True: DATA_ROAMING_ENABLE, False: DATA_ROAMING_DISABLE}[state] 503 action_str = {True: "Enable", False: "Disable"}[state] 504 if ad.droid.connectivityCheckDataRoamingMode() == state: 505 ad.log.info("Data roaming is already in state %s", state) 508 ad.error.info("Fail to config data roaming into state %s", state) 510 if ad.droid.connectivityCheckDataRoamingMode() == state: 511 ad.log.info("Data roaming is configured into state %s", state) 514 ad.log.error("Data roaming is not configured into state %s", state) 607 def _wait_for_bluetooth_in_state(log, ad, state, max_wait): argument [all …]
|
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/ |
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()
|
D | renderer.cpp | 44 state.numCircles = numCircles; in Renderer() 154 state.circles.resize(state.numCircles, Circle(RADIUS)); in initDisplay() 155 state.velocities.resize(state.numCircles); in initDisplay() 156 for (auto& v : state.velocities) { in initDisplay() 183 for (int i = 0; i < state.circles.size(); ++i) { in update() 184 auto& circle = state.circles[i]; in update() 185 Vec2& v = state.velocities[i]; in update() 224 for (int i = 0; i < state.circles.size(); ++i) { in draw() 225 auto& circle = state.circles[i]; in draw()
|
/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/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | DeviceDescriptor.java | 55 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 58 this(serial, isStubDevice, state, product, productVariant, sdkVersion, buildId, in DeviceDescriptor() 62 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 71 state, in DeviceDescriptor() 92 DeviceAllocationState state, in DeviceDescriptor() argument 108 state, in DeviceDescriptor() 130 DeviceAllocationState state, in DeviceDescriptor() argument 146 state, in DeviceDescriptor() 169 DeviceAllocationState state, in DeviceDescriptor() argument 190 mState = state; in DeviceDescriptor() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/ |
D | mg3710a.py | 165 def set_modulation_state(self, state, sg=1): argument 176 cmd = "OUTP{}:MOD {}".format(sg, state) 191 def set_rf_output_state(self, state, sg=1): argument 202 cmd = "OUTP{} {}".format(sg, state) 243 def set_frequency_offset_state(self, state, sg=1): argument 254 cmd = "SOUR{}:FREQ:OFFS:STAT {}".format(sg, state) 296 def set_frequency_offset_multiplier_state(self, state, sg=1): argument 307 cmd = "SOUR{}:FREQ:MULT:STAT {}".format(sg, state) 464 def set_arb_state(self, state, sg=1): argument 475 cmd = "SOUR{}:RAD:ARB {}".format(sg, state) [all …]
|
/tools/netsim/rust/daemon/src/wireless/ |
D | uwb.rs | 54 state: AtomicBool, field 75 self.state.store(true, Ordering::SeqCst); in reset() 83 state: self.state.load(Ordering::SeqCst).into(), in get() 96 if let Some(patch_state) = chip.uwb().state { in patch() 97 self.state.store(patch_state, Ordering::SeqCst); in patch() 138 state: AtomicBool::new(true), in new() 165 let uwb_proto = ProtoRadio { state: false.into(), ..Default::default() }; in patch_chip_proto() 182 assert_eq!(radio.state, Some(false)); in test_uwb_patch_and_reset() 188 assert_eq!(radio.state, Some(true)); in test_uwb_patch_and_reset()
|
D | bluetooth.rs | 67 state: Option<bool>, in patch_state() 71 if let Some(state) = state { in patch_state() 73 let last_state: bool = enabled.swap(state, Ordering::SeqCst); in patch_state() 74 match (last_state, state) { in patch_state() 111 state: self.low_energy_enabled.load(Ordering::SeqCst).into(), in get() 118 state: self.classic_enabled.load(Ordering::SeqCst).into(), in get() 136 patch_state(&self.low_energy_enabled, chip.bt().low_energy.state, id, true); in patch() 137 patch_state(&self.classic_enabled, chip.bt().classic.state, id, false); in patch()
|
/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_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))
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | KeyguardControllerStateTest.java | 37 KeyguardControllerState state = KeyguardControllerState.create(testOutput); in testCreate_invalidOutput() local 38 Assert.assertNull(state); in testCreate_invalidOutput() 51 KeyguardControllerState state = KeyguardControllerState.create(testOutput); in testCreate() local 52 Assert.assertTrue(state.isKeyguardShowing()); in testCreate() 53 Assert.assertFalse(state.isKeyguardOccluded()); in testCreate() 54 Assert.assertFalse(state.isKeyguardGoingAway()); in testCreate()
|
/tools/netsim/testing/netsim-grpc/src/netsim_grpc/ |
D | netsim_client.py | 112 self, device_name: str, radio: model.PhyKind, state: bool 124 chip.wifi.state = state 127 chip.uwb.state = state 131 chip.bt.low_energy.state = state 133 chip.bt.classic.state = state
|
/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/aadevtools/dev/ |
D | change_report.py | 80 def __init__(self, common_name, old_file_stat, new_file_stat, state): argument 86 self.state = state 221 diff_stat.file_type, diff_stat.state, 261 def _process_others(self, files, adir, prefix_len, state): argument 267 print('SKIP: symlink: {0}, {1}'.format(state, file_path)) 271 self._process_others(flist, adir, prefix_len, state) 275 if state == DiffStat.REMOVED: 276 diff_stat = DiffStat(common_name, file_stat, empty_stat, state) 278 diff_stat = DiffStat(common_name, empty_stat, file_stat, state)
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | WaitDeviceRecovery.java | 134 TestDeviceState state = monitor.getDeviceState(); in recoverDevice() local 135 if (TestDeviceState.FASTBOOT.equals(state) || TestDeviceState.FASTBOOTD.equals(state)) { in recoverDevice() 138 monitor.getSerialNumber(), state); in recoverDevice() 503 TestDeviceState state = monitor.getDeviceState(); in attemptDeviceUnavailableRecovery() local 504 if (TestDeviceState.RECOVERY.equals(state)) { in attemptDeviceUnavailableRecovery() 505 CLog.d("Device is in '%s' state skipping USB reset attempt.", state); in attemptDeviceUnavailableRecovery() 509 if (TestDeviceState.FASTBOOT.equals(state) || TestDeviceState.FASTBOOTD.equals(state)) { in attemptDeviceUnavailableRecovery() 510 CLog.d("Device is in '%s' state skipping USB reset attempt.", state); in attemptDeviceUnavailableRecovery()
|