/tools/metalava/src/main/java/com/android/tools/lint/checks/infrastructure/ |
D | ClassName.kt | 43 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/tradefederation/core/tests/src/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()
|
/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)
|
D | relay_board.py | 46 def set(self, relay_position, state): argument
|
/tools/test/connectivity/acts/tests/google/ble/scan/ |
D | BleBackgroundScanTest.py | 236 state = self.scn_ad.droid.bluetoothGetLeState() 237 if state != bt_adapter_states['ble_on']: 240 bt_adapter_states['ble_on'], state)) 252 state = self.scn_ad.droid.bluetoothGetLeState() 253 if state != bt_adapter_states['off']: 256 bt_adapter_states['off'], state)) 264 state = self.scn_ad.droid.bluetoothGetLeState() 265 if state != bt_adapter_states['off']: 268 format(bt_adapter_states['off'], state)) 273 state = self.scn_ad.droid.bluetoothGetLeState() [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/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | DeviceDescriptor.java | 43 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 46 this(serial, isStubDevice, state, product, productVariant, sdkVersion, buildId, in DeviceDescriptor() 50 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() argument 58 state, in DeviceDescriptor() 75 DeviceAllocationState state, in DeviceDescriptor() argument 89 mState = state; in DeviceDescriptor()
|
D | CommandResult.java | 40 CommandResult(Status status, String errorDetails, FreeDeviceState state, in CommandResult() argument 44 mState = state; in CommandResult()
|
D | GetLastCommandResultOp.java | 82 FreeDeviceState state = FreeDeviceState.AVAILABLE; in unpackResponseFromJson() local 94 state = FreeDeviceState.valueOf(freeDeviceString); in unpackResponseFromJson() 113 return new CommandResult(status, errorDetails, state, runMetricsMap); in unpackResponseFromJson()
|
/tools/test/connectivity/acts/framework/acts/test_utils/car/ |
D | tel_telecom_utils.py | 72 def wait_for_call_state(log, ad, call_id, state): argument 90 if ad.droid.telecomCallGetCallState(call_id) == state: 92 call_id, state, ad.serial)) 93 return state 103 state, ad.serial))
|
D | car_telecom_utils.py | 85 def wait_for_call_state(log, ad, call_id, state): argument 104 if ad.droid.telecomCallGetCallState(call_id) == state: 106 call_id, state, ad.serial)) 121 if call_state == state: 131 state, ad.serial))
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | MockDeviceManager.java | 103 public void setNumDevicesCustom(int numDevices, TestDeviceState state, in setNumDevicesCustom() argument 114 state).anyTimes(); in setNumDevicesCustom() 120 public void setNumDevicesStub(int numDevices, TestDeviceState state, in setNumDevicesStub() argument 138 state).anyTimes(); in setNumDevicesStub() 201 public void freeDevice(ITestDevice device, FreeDeviceState state) { in freeDevice() argument 202 if (!state.equals(FreeDeviceState.UNAVAILABLE)) { in freeDevice()
|
D | DeviceUtilStatsMonitorLoadTest.java | 86 private DeviceDescriptor createDeviceDesc(String serial, DeviceAllocationState state) { in createDeviceDesc() argument 87 return new DeviceDescriptor(serial, false, state, null, null, null, null, null); in createDeviceDesc()
|
D | DeviceUtilStatsMonitorTest.java | 157 private DeviceDescriptor createDeviceDesc(String serial, DeviceAllocationState state) { in createDeviceDesc() argument 158 return new DeviceDescriptor(serial, false, state, null, null, null, null, null); in createDeviceDesc()
|
/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
D | tel_video_utils.py | 208 state = ad.droid.telecomCallVideoGetState(call) 219 }[state]: 222 if state == video_state: 224 log.info("Non-Video-State: {}".format(state)) 260 state = ad.droid.telecomCallVideoGetState(call) 271 }[state]: 274 if state == video_state: 276 ad.log.info("Non-Video-State: %s", state) 435 state = ad.droid.telecomCallVideoGetState(call) 436 if (state == VT_STATE_AUDIO_ONLY and is_call_hd(log, ad, call)): [all …]
|
D | tel_test_utils.py | 546 state = ad.adb.getprop("gsm.sim.state") 547 return state == SIM_STATE_READY or state == SIM_STATE_LOADED 578 for state in event_recv_list: 579 if state is False: 600 def _wait_for_bluetooth_in_state(log, ad, state, max_wait): argument 610 if bt_state == state: 614 bt_state, state) 620 }[state] 625 bt_state, state) 632 def _wait_for_wifi_in_state(log, ad, state, max_wait): argument [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDeviceStateMonitor.java | 409 private boolean waitForDeviceState(TestDeviceState state, long time) { in waitForDeviceState() argument 411 if (getDeviceState() == state) { in waitForDeviceState() 412 CLog.i("Device %s is already %s", deviceSerial, state); in waitForDeviceState() 416 state, getDeviceState()); in waitForDeviceState() 417 DeviceStateListener listener = new DeviceStateListener(state); in waitForDeviceState() 429 return getDeviceState().equals(state); in waitForDeviceState()
|
D | IDeviceManager.java | 89 public void freeDevice(ITestDevice device, FreeDeviceState state); in freeDevice() argument
|
D | DeviceUtilStatsMonitor.java | 119 public void addSample(DeviceAllocationState state) { in addSample() argument 120 if (DeviceAllocationState.Allocated.equals(state)) { in addSample()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZFile.java | 315 private ZipFileState state; field in ZFile 487 state = ZipFileState.CLOSED; in ZFile() 503 if (state != ZipFileState.CLOSED) { in ZFile() 519 if (state != ZipFileState.CLOSED) { in ZFile() 593 Preconditions.checkState(state != ZipFileState.CLOSED, "state == ZipFileState.CLOSED"); in readData() 708 Preconditions.checkState(state != ZipFileState.CLOSED, "state == ZipFileState.CLOSED"); in readEocd() 821 Preconditions.checkState(state != ZipFileState.CLOSED, "state == ZipFileState.CLOSED"); in readCentralDirectory() 884 Preconditions.checkState(state != ZipFileState.CLOSED, "state == ZipFileState.CLOSED"); in directOpen() 1329 Preconditions.checkState(state == ZipFileState.OPEN_RW, "state != ZipFileState.OPEN_RW"); in writeEntry() 1372 Preconditions.checkState(state == ZipFileState.OPEN_RW, "state != ZipFileState.OPEN_RW"); in computeCentralDirectory() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerFuncTest.java | 295 Map<ITestDevice, FreeDeviceState> state = new HashMap<>(); in testConsecutiveExecCommand() 296 state.put(device, FreeDeviceState.UNAVAILABLE); in testConsecutiveExecCommand() 297 commandTracker.invocationComplete(nullMeta, state); in testConsecutiveExecCommand() 486 Map<ITestDevice, FreeDeviceState> state = new HashMap<>(); in testGetLastCommandResult_notAvail() 487 state.put(device, FreeDeviceState.UNAVAILABLE); in testGetLastCommandResult_notAvail() 488 listener.invocationComplete(nullMeta, state); in testGetLastCommandResult_notAvail()
|
/tools/test/connectivity/tools/lab/metrics/ |
D | zombie_metric.py | 49 pid, state, name = spl_ln[:3]
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | bt_test_utils.py | 285 def wait_for_bluetooth_manager_state(droid, state=None, timeout=10, threshold=5): argument 302 if state is None: 308 if set([state]).issubset(all_states[-threshold:]): 312 "Bluetooth state fails to normalize" if state is None else 313 … "Failed to match bluetooth state, current state {} expected state {}".format(get_state(), state)) 691 def log_energy_info(android_devices, state): argument 701 return_string = "{} Energy info collection:\n".format(state) 948 state = profile_event['data']['state'] 951 if state == bt_profile_states['connected'] and \ 1007 state = profile_event['data']['state'] [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
D | wifi_test_utils.py | 543 def wait_for_wifi_state(ad, state, assert_on_fail=True): argument 557 _wait_for_wifi_state, assert_on_fail, ad, state=state) 560 def _wait_for_wifi_state(ad, state): argument 569 if state == ad.droid.wifiCheckState(): 574 fail_msg = "Device did not transition to Wi-Fi state to %s on %s." % (state, 578 lambda x: x["data"]["enabled"] == state, 581 asserts.assert_equal(state, ad.droid.wifiCheckState(), fail_msg)
|
/tools/test/connectivity/acts/tests/google/tel/config/ |
D | README.md | 12 …/2g/wfc)** - The maximum amount of power in mW that can be used in steady state during calling pow… 13 …/2g/wfc)** - The maximum amount of power in mW that can be used in steady state during idle power …
|