Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 217) sorted by relevance

123456789

/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/bt/
Dgattc_lib.py54 def listServices(self, id): argument
64 test_args = {"identifier": id}
91 def writeCharById(self, id, offset, write_value): argument
104 "identifier": id,
111 def writeLongCharById(self, id, offset, write_value, reliable_mode=False): argument
125 "identifier": id,
133 def writeLongDescById(self, id, offset, write_value): argument
146 "identifier": id,
153 def writeCharByIdWithoutResponse(self, id, write_value): argument
165 "identifier": id,
[all …]
/tools/netsim/rust/cli/src/
Dlib.rs104 let id = find_id_for_remove(devices.byte_vec().as_slice(), cmd)?; in perform_command() localVariable
105 let req = &DeleteChipRequest { id, ..Default::default() } in perform_command()
127 let id = devices in find_id_for_remove() localVariable
138 .id; in find_id_for_remove()
140 Ok(id) in find_id_for_remove()
229 id: 0, in test_remove_device()
231 chips: vec![ChipProto { id: chip_id, ..Default::default() }], in test_remove_device()
237 let id = find_id_for_remove(response.write_to_bytes().unwrap().as_slice(), cmd); in test_remove_device() localVariable
238 assert!(id.is_ok(), "{}", id.unwrap_err()); in test_remove_device()
239 let id = id.unwrap(); in test_remove_device() localVariable
[all …]
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DProcessModelFragment.kt22 class ProcessModelFragment(id: Int, var name: String? = null, in <lambda>()
24 private var _id: Int = id in <lambda>()
25 var id: Int in <lambda>() variable
65 if (id != -1 && id != other.id) { in <lambda>()
83 fun hint(id: Int = InvalidId, name: String? = null) { in <lambda>()
84 if (this.id == InvalidId) this.id = id in <lambda>()
DThreadModelFragment.kt24 class ThreadModelFragment(var id: Int, var process: ProcessModelFragment, var name: String? = null)… variable in trebuchet.model.fragments.ThreadModelFragment
29 if (this.id == InvalidId) this.id = pid in hint()
31 if (this.process.id == InvalidId) this.process.id = tgid in hint()
DSchedulingProcessFragment.kt33 if (thread.id != 0) { in switchProcess()
43 return process.id.toString()
55 return thread.id
58 override val id: Int get() { constant in trebuchet.model.fragments.SchedulingProcessFragment
59 return process.id
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DDefaultReporter.kt92 id: Issues.Issue, in hasErrors()
98 val severity = issueConfiguration.getSeverity(id) in hasErrors()
115 severity: Severity, location: String?, message: String, id: Issues.Issue in hasErrors()
127 return which(effectiveSeverity, reportLocation?.forReport(), message, id) in hasErrors()
133 if (isSuppressed(id, reportable, message)) { in hasErrors()
162 if (baselineKey != null && baseline.mark(baselineKey, message, id)) return false in hasErrors()
169 id: Issues.Issue, in isSuppressed()
173 val severity = issueConfiguration.getSeverity(id) in isSuppressed()
181 return reportable.suppressedIssues().any { suppressMatches(it, id.name, message) } in isSuppressed()
184 private fun suppressMatches(value: String, id: String?, message: String?): Boolean { in suppressMatches()
[all …]
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetrics.java121 for (Pair<TestDescription, String> id : mTestMetrics.keySet()) { in validate()
122 if (mTestMetrics.get(id).size() < mNumRuns) { in validate()
126 id.first, id.second, mNumRuns, mTestMetrics.get(id).size())); in validate()
158 for (Pair<TestDescription, String> id : mTestMetrics.keySet()) { in crossValidate()
159 if (!after.mTestMetrics.containsKey(id)) { in crossValidate()
163 id.first, id.second)); in crossValidate()
167 for (Pair<TestDescription, String> id : after.mTestMetrics.keySet()) { in crossValidate()
168 if (!mTestMetrics.containsKey(id)) { in crossValidate()
172 id.first, id.second)); in crossValidate()
/tools/platform-compat/java/android/processor/compat/changeid/
DChange.java23 final Long id; field in Change
48 Change(Long id, String name, boolean disabled, boolean loggingOnly, Integer enabledAfter, in Change() argument
52 this.id = id; in Change()
67 Long id; field in Change.Builder
83 public Builder id(long id) { in id() argument
84 this.id = id; in id()
144 return new Change(id, name, disabled, loggingOnly, enabledAfter, enabledSince, in build()
/tools/metalava/metalava-reporter/src/main/java/com/android/tools/metalava/reporter/
DReporter.kt37 id: Issues.Issue, in report()
43 return report(id, null, message, location, maximumSeverity) in report()
83 id: Issues.Issue, in report()
99 id: Issues.Issue, in report()
111 id: Issues.Issue, in report()
126 val severity = id.defaultLevel in report()
132 append(id.name) in report()
140 id: Issues.Issue, in report()
/tools/netsim/rust/daemon/src/devices/
Ddevices_handler.rs135 return (existing_device.id, existing_device.name.clone()); in get_or_create_device()
140 let id = self.next_id(); in get_or_create_device() localVariable
141 let default = format!("device-{}", id); in get_or_create_device()
144 id, in get_or_create_device()
145 Device::new(id, String::from(guid.unwrap_or(&default)), String::from(name), builtin), in get_or_create_device()
149 events::publish(Event::DeviceAdded(DeviceAdded { id, name: name.to_string(), builtin })); in get_or_create_device()
151 (id, String::from(name)) in get_or_create_device()
316 fn remove_device(devices: Arc<DeviceManager>, id: &DeviceIdentifier) -> Result<(), String> { in remove_device()
317 match devices.devices.write().unwrap().remove(id) { in remove_device()
319 id: device.id, in remove_device()
[all …]
Dchip.rs77 pub id: ChipIdentifier, field
103 id: ChipIdentifier, in new()
110 id, in new()
115 name: create_params.name.clone().unwrap_or(format!("chip-{}", id.0)), in new()
136 proto_chip.id = self.id.0; in get()
178 id: ChipIdentifier, in new()
184 CHIP_MANAGER.new_chip(id, device_id, device_name, create_params, wireless_adaptor) in new()
190 id: ChipIdentifier, in new_chip()
196 let chip = Arc::new(Chip::new(id, device_id, device_name, create_params, wireless_adaptor)); in new_chip()
197 self.chips.write().unwrap().insert(id, Arc::clone(&chip)); in new_chip()
[all …]
/tools/loganalysis/src/com/android/loganalysis/util/
DLogTailUtil.java44 public LogLine(Integer id, String line) { in LogLine() argument
45 mId = id; in LogLine()
76 public void addLine(Integer id, String line) { in addLine() argument
77 mRingBuffer.add(new LogLine(id, line)); in addLine()
115 public String getIdTail(int id) { in getIdTail() argument
116 return getIdTail(id, mIdTailSize); in getIdTail()
126 public String getIdTail(int id, int size) { in getIdTail() argument
132 if (line.mId != null && line.mId.equals(id)) { in getIdTail()
/tools/netsim/src/hci/
Dbluetooth_facade.cc80 [device_id](const auto &device) { return device->id == device_id; }); in Contains()
93 if (sender_id != device->id) { in Send()
94 IncrRx(device->id, type); in Send()
96 ComputeRssi(sender_id, device->id, tx_power)); in Send()
107 PhyLayer::Identifier id, rootcanal::Phy::Type type) override { in CreatePhyLayer() argument
108 return std::make_unique<SimPhyLayer>(id, type); in CreatePhyLayer()
298 model::Chip::Bluetooth Get(uint32_t id) { in Get() argument
300 if (id_to_chip_info_.find(id) != id_to_chip_info_.end()) { in Get()
301 model.CopyFrom(*id_to_chip_info_[id]->model.get()); in Get()
302 auto chip_info = id_to_chip_info_[id]; in Get()
[all …]
/tools/netsim/ui/ts/
Ddevice-dropzone.ts59 let id = dropped.getElementsByTagName('ns-cube-sprite')
62 if (id === undefined) {
63 id = dropped.getElementsByTagName('ns-pyramid-sprite')
67 if (id === undefined || id === null) {
68 id = '';
71 id, (ev.clientX - rect.left) / 100, (ev.clientY - rect.top) / 100);
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DPythonUnitTestResultParserTest.java148 TestDescription id = new TestDescription("a", "b"); in testParseSingleTestPass() local
154 inOrder.verify(mMockListener, times(1)).testStarted(Mockito.eq(id)); in testParseSingleTestPass()
156 .testEnded(Mockito.eq(id), Mockito.<HashMap<String, Metric>>any()); in testParseSingleTestPass()
188 TestDescription id = new TestDescription("a", "b"); in testParseSingleTestPassWithExpectedFailure() local
194 inOrder.verify(mMockListener, times(1)).testStarted(Mockito.eq(id)); in testParseSingleTestPassWithExpectedFailure()
196 .testEnded(Mockito.eq(id), Mockito.<HashMap<String, Metric>>any()); in testParseSingleTestPassWithExpectedFailure()
210 TestDescription id = new TestDescription("__main__.MyExampleTest", "test_1_pass"); in testParseSingleWithModuleClass() local
216 inOrder.verify(mMockListener, times(1)).testStarted(Mockito.eq(id)); in testParseSingleWithModuleClass()
218 .testEnded(Mockito.eq(id), Mockito.<HashMap<String, Metric>>any()); in testParseSingleWithModuleClass()
233 TestDescription id = new TestDescription("a", "b"); in testParseMultiTestPass() local
[all …]
/tools/platform-compat/javatest/android/processor/compat/changeid/
DXmlWriterTest.java48 .id(123456789L) in testOneChange()
66 .id(111L) in testSomeChanges()
71 .id(222L) in testSomeChanges()
76 .id(333L) in testSomeChanges()
81 .id(444L) in testSomeChanges()
87 .id(555L) in testSomeChanges()
92 .id(666L) in testSomeChanges()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/common/
DIssueReportingOptions.kt190 id: String in setAspectSeverityForId()
193 Issues.findIssueById(id) in setAspectSeverityForId()
194 ?: Issues.findIssueByIdIgnoringCase(id)?.also { in setAspectSeverityForId()
199 "$optionName ${it.name} instead of $optionName $id" in setAspectSeverityForId()
202 ?: throw MetalavaCliException("Unknown issue id: '$optionName' '$id'") in setAspectSeverityForId()
214 id: String in setAspectSeverityForId()
217 Issues.findCategoryById(id)?.let { Issues.findIssuesByCategory(it) } in setAspectSeverityForId()
218 ?: throw MetalavaCliException("Unknown category: $optionName $id") in setAspectSeverityForId()
230 id: String in setAspectSeverityForId()
297 fun setAspectForId(reporter: Reporter, configuration: IssueConfiguration, id: String) { in setAspectSeverityForId()
[all …]
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/
DProcessModel.kt23 val id: Int = fragment.id constant
24 val name: String = fragment.name ?: "<$id>"
31 if (id == InvalidId) throw IllegalArgumentException("Process has invalid id")
36 threadBuilder.sortBy { it.id } in <lambda>()
DThreadModel.kt22 val id: Int = fragment.id constant
23 val name: String = fragment.name ?: "<$id>"
29 if (id == InvalidId) throw IllegalArgumentException("Thread has invalid id")
/tools/netsim/rust/daemon/src/
Devents.rs39 pub id: DeviceIdentifier, field
46 pub id: DeviceIdentifier, field
53 pub id: DeviceIdentifier, field
174 Ok(Event::DeviceAdded(DeviceAdded { id, name, builtin: false })) => { in test_subscribe_and_publish()
175 assert_eq!(id.0, 123); in test_subscribe_and_publish()
182 id: DeviceIdentifier(123), in test_subscribe_and_publish()
201 Ok(Event::DeviceAdded(DeviceAdded { id, name, builtin: false })) => { in test_publish_to_multiple_subscribers()
202 assert_eq!(id.0, 123); in test_publish_to_multiple_subscribers()
211 id: DeviceIdentifier(123), in test_publish_to_multiple_subscribers()
232 id: DeviceIdentifier(123), in test_publish_to_dropped_subscriber()
/tools/netsim/rust/daemon/src/http_server/
Dthread_pool.rs46 for id in 0..size { in new()
47 workers.push(Worker::new(id, Arc::clone(&receiver))); in new()
68 info!("Shutting down worker {}", worker.id); in drop()
78 id: usize, field
83 fn new(id: usize, receiver: Arc<Mutex<mpsc::Receiver<Job>>>) -> Worker { in new()
100 Worker { id, thread: Some(thread) } in new()
/tools/metalava/metalava-model-text/
Dbuild.gradle.kts20 id("org.jetbrains.kotlin.jvm") in <lambda>()
21 id("metalava-build-plugin") in <lambda>()
22 id("maven-publish") in <lambda>()
25 id("metalava-model-provider-plugin") in <lambda>()
/tools/metalava/metalava-model-turbine/
Dbuild.gradle.kts19 id("org.jetbrains.kotlin.jvm") in <lambda>()
20 id("metalava-build-plugin") in <lambda>()
21 id("maven-publish") in <lambda>()
24 id("metalava-model-provider-plugin") in <lambda>()
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/netstack/
Dnetstack_lib.py36 def enableInterface(self, id): argument
46 test_args = {"identifier": id}
50 def disableInterface(self, id): argument
60 test_args = {"identifier": id}
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/lib_controllers/
Dwlan_controller.py86 for id in wlan_iface_ids:
87 response = self.device.sl4f.wlan_lib.wlanQueryInterface(id)
91 (id, response['error']))
158 for id in phy_ids_response['result']:
160 id)
164 (id, get_country_response['error']))
173 'Expected: %s, Got: %s' % (id, country_code, set_code))

123456789