/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | performance_test_logger.py | 32 def log_single_point(self, label=""): argument 33 if label not in self.single_points: 34 self.single_points[label] = [] 35 self.single_points[label].append(datetime.now()) 37 def start_interval(self, label=""): argument 38 if label not in self.start_interval_points: 39 self.start_interval_points[label] = [] 40 self.start_interval_points[label].append(datetime.now()) 42 def end_interval(self, label=""): argument 43 if label not in self.end_interval_points: [all …]
|
D | gd_device.py | 83 logging.exception("[%s] Failed to clean up properly due to" % device.label) 145 …t__(self, grpc_port: str, grpc_root_server_port: str, signal_port: str, cmd: List[str], label: str, 169 self.label = label 174 … '%s_%s_backing_logs.txt' % (self.type_identifier, self.label)) 176 … cmd.append("--btsnoop=%s" % os.path.join(self.log_path_base, '%s_btsnoop_hci.log' % self.label)) 178 … cmd.append("--btsnooz=%s" % os.path.join(self.log_path_base, '%s_btsnooz_hci.log' % self.label)) 180 … cmd.append("--btconfig=%s" % os.path.join(self.log_path_base, '%s_bt_config.conf' % self.label)) 183 if "cert" in self.label: 196 logging.debug("[%s] Running %s %s" % (self.type_identifier, self.label, " ".join(self.cmd))) 206 tag=self.label, [all …]
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | device.h | 69 void(uint8_t label, bool browse, 153 void MessageReceived(uint8_t label, std::shared_ptr<Packet> pkt); 154 void BrowseMessageReceived(uint8_t label, std::shared_ptr<BrowsePacket> pkt); 155 void VendorPacketHandler(uint8_t label, std::shared_ptr<VendorPacket> pkt); 163 uint8_t label, bool interim, std::string curr_song_id, 168 uint8_t label, const std::shared_ptr<GetCapabilitiesRequest>& pkt); 172 uint8_t label, const std::shared_ptr<RegisterNotificationRequest>& pkt); 180 uint8_t label, bool interim, std::string curr_song_id, 185 virtual void PlaybackPosNotificationResponse(uint8_t label, bool interim, 189 virtual void GetPlayStatusResponse(uint8_t label, PlayStatus status); [all …]
|
D | device.cc | 54 void(uint8_t label, bool browse, in Device() 111 void Device::VendorPacketHandler(uint8_t label, in VendorPacketHandler() argument 121 send_message(label, false, std::move(response)); in VendorPacketHandler() 144 send_message(label, false, std::move(response)); in VendorPacketHandler() 145 active_labels_.erase(label); in VendorPacketHandler() 156 HandleVolumeChanged(label, register_notification); in VendorPacketHandler() 174 HandleGetCapabilities(label, in VendorPacketHandler() 179 HandleNotification(label, in VendorPacketHandler() 191 send_message(label, false, std::move(response)); in VendorPacketHandler() 196 label, get_element_attributes_request_pkt)); in VendorPacketHandler() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | DirectoryListBot.java | 88 for (String label : labels) { in assertDocumentsPresent() 89 if (!findDocument(label).exists()) { in assertDocumentsPresent() 90 absent.add(label); in assertDocumentsPresent() 101 for (String label : labels) { in assertDocumentsAbsent() 102 if (findDocument(label).exists()) { in assertDocumentsAbsent() 103 found.add(label); in assertDocumentsAbsent() 185 public void openDocument(String label) throws UiObjectNotFoundException { in openDocument() argument 188 UiObject doc = findDocument(label, true); in openDocument() 193 public void selectDocument(String label) throws UiObjectNotFoundException { in selectDocument() argument 194 waitForDocument(label); in selectDocument() [all …]
|
D | SidebarBot.java | 56 private UiObject findRoot(String label) throws UiObjectNotFoundException { in findRoot() argument 68 new UiScrollable(rootsList).scrollIntoView(new UiSelector().text(label)); in findRoot() 69 return new UiObject(rootsList.childSelector(new UiSelector().text(label))); in findRoot() 72 public void openRoot(String label) throws UiObjectNotFoundException { in openRoot() argument 73 findRoot(label).click(); in openRoot() 112 for (String label : labels) { in assertRootsPresent() 113 if (!findRoot(label).exists()) { in assertRootsPresent() 114 missing.add(label); in assertRootsPresent() 125 for (String label : labels) { in assertRootsAbsent() 126 if (findRoot(label).exists()) { in assertRootsAbsent() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/contactgrid/ |
D | TopRow.java | 54 @Nullable public final CharSequence label; field in TopRow.Info 58 public Info(@Nullable CharSequence label, @Nullable Drawable icon, boolean labelIsSingleLine) { in Info() argument 59 this.label = label; in Info() 68 CharSequence label = null; in getInfo() local 82 label = state.callSubject(); in getInfo() 85 label = getLabelForIncoming(context, state); in getInfo() 89 label = TextUtils.concat(label, " ", spanDisplayNumber(primaryInfo.number())); in getInfo() 94 label = getLabelForVideoRequest(context, state); in getInfo() 96 label = context.getString(R.string.incall_video_call_operation_failed); in getInfo() 98 label = context.getString(R.string.incall_transferring); in getInfo() [all …]
|
D | BottomRow.java | 41 @Nullable public final CharSequence label; field in BottomRow.Info 51 @Nullable CharSequence label, in Info() 59 this.label = label; in Info() 73 CharSequence label; in getInfo() local 83 label = context.getString(R.string.contact_grid_incoming_suspected_spam); in getInfo() 91 label = context.getString(R.string.incall_hanging_up); in getInfo() 93 label = state.disconnectCause().getLabel(); in getInfo() 94 if (TextUtils.isEmpty(label)) { in getInfo() 95 label = context.getString(R.string.incall_call_ended); in getInfo() 98 label = getLabelForPhoneNumber(primaryInfo); in getInfo() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/events/ |
D | Events.kt | 38 fun sendAlarmEvent(@StringRes action: Int, @StringRes label: Int) { in sendAlarmEvent() 39 sendEvent(R.string.category_alarm, action, label) in sendAlarmEvent() 49 fun sendClockEvent(@StringRes action: Int, @StringRes label: Int) { in sendClockEvent() 50 sendEvent(R.string.category_clock, action, label) in sendClockEvent() 60 fun sendTimerEvent(@StringRes action: Int, @StringRes label: Int) { in sendTimerEvent() 61 sendEvent(R.string.category_timer, action, label) in sendTimerEvent() 71 fun sendStopwatchEvent(@StringRes action: Int, @StringRes label: Int) { in sendStopwatchEvent() 72 sendEvent(R.string.category_stopwatch, action, label) in sendStopwatchEvent() 82 fun sendScreensaverEvent(@StringRes action: Int, @StringRes label: Int) { in sendScreensaverEvent() 83 sendEvent(R.string.category_screensaver, action, label) in sendScreensaverEvent() [all …]
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_avrc_apt.h | 45 std::function<uint16_t(uint8_t handle, uint8_t label, uint8_t page)> body{ 49 uint16_t operator()(uint8_t handle, uint8_t label, uint8_t page) { in operator() 50 return body(handle, label, page); in operator() 60 std::function<uint16_t(uint8_t handle, uint8_t label)> body{ 62 uint16_t operator()(uint8_t handle, uint8_t label) { in operator() 63 return body(handle, label); in operator() 73 std::function<uint16_t(uint8_t handle, uint8_t label, 77 uint16_t operator()(uint8_t handle, uint8_t label, tAVRC_MSG_VENDOR* p_msg) { in operator() 78 return body(handle, label, p_msg); in operator() 88 std::function<uint16_t(uint8_t handle, uint8_t label, [all …]
|
D | mock_bta_av_api.h | 115 std::function<void(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code, 119 void operator()(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code, in operator() 121 body(rc_handle, label, cmd_code, p_pkt); in operator() 130 std::function<void(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code, 134 void operator()(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code, in operator() 136 body(rc_handle, label, rsp_code, p_pkt); in operator() 247 std::function<void(uint8_t rc_handle, uint8_t label, tBTA_AV_RC rc_id, 251 void operator()(uint8_t rc_handle, uint8_t label, tBTA_AV_RC rc_id, in operator() 253 body(rc_handle, label, rc_id, key_state); in operator() 262 std::function<void(uint8_t rc_handle, uint8_t label, tBTA_AV_STATE key_state, [all …]
|
D | mock_stack_avrc_apt.cc | 62 uint16_t AVRC_SubCmd(uint8_t handle, uint8_t label, uint8_t page) { in AVRC_SubCmd() argument 64 return test::mock::stack_avrc_apt::AVRC_SubCmd(handle, label, page); in AVRC_SubCmd() 66 uint16_t AVRC_UnitCmd(uint8_t handle, uint8_t label) { in AVRC_UnitCmd() argument 68 return test::mock::stack_avrc_apt::AVRC_UnitCmd(handle, label); in AVRC_UnitCmd() 70 uint16_t AVRC_VendorCmd(uint8_t handle, uint8_t label, in AVRC_VendorCmd() argument 73 return test::mock::stack_avrc_apt::AVRC_VendorCmd(handle, label, p_msg); in AVRC_VendorCmd() 75 uint16_t AVRC_VendorRsp(uint8_t handle, uint8_t label, in AVRC_VendorRsp() argument 78 return test::mock::stack_avrc_apt::AVRC_VendorRsp(handle, label, p_msg); in AVRC_VendorRsp()
|
D | mock_bta_av_api.cc | 99 void BTA_AvMetaCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code, in BTA_AvMetaCmd() argument 102 test::mock::bta_av_api::BTA_AvMetaCmd(rc_handle, label, cmd_code, p_pkt); in BTA_AvMetaCmd() 104 void BTA_AvMetaRsp(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code, in BTA_AvMetaRsp() argument 107 test::mock::bta_av_api::BTA_AvMetaRsp(rc_handle, label, rsp_code, p_pkt); in BTA_AvMetaRsp() 145 void BTA_AvRemoteCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_RC rc_id, in BTA_AvRemoteCmd() argument 148 test::mock::bta_av_api::BTA_AvRemoteCmd(rc_handle, label, rc_id, key_state); in BTA_AvRemoteCmd() 150 void BTA_AvRemoteVendorUniqueCmd(uint8_t rc_handle, uint8_t label, in BTA_AvRemoteVendorUniqueCmd() argument 155 rc_handle, label, key_state, p_msg, buf_len); in BTA_AvRemoteVendorUniqueCmd() 173 void BTA_AvVendorCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE cmd_code, in BTA_AvVendorCmd() argument 176 test::mock::bta_av_api::BTA_AvVendorCmd(rc_handle, label, cmd_code, p_data, in BTA_AvVendorCmd() [all …]
|
/packages/services/Car/tools/emulator/ |
D | VehicleHalProto_pb2.py | 199 number=1, type=5, cpp_type=1, label=2, 206 number=2, type=17, cpp_type=1, label=1, 213 number=3, type=17, cpp_type=1, label=1, 220 number=4, type=18, cpp_type=2, label=1, 227 number=5, type=18, cpp_type=2, label=1, 234 number=6, type=2, cpp_type=6, label=1, 241 number=7, type=2, cpp_type=6, label=1, 272 number=1, type=5, cpp_type=1, label=2, 279 number=2, type=5, cpp_type=1, label=1, 286 number=3, type=5, cpp_type=1, label=1, [all …]
|
/packages/modules/Bluetooth/system/stack/include/ |
D | avdtc_api.h | 100 void AVDTC_DiscoverRsp(const RawAddress& bd_addr, uint8_t label, 112 void AVDTC_GetCapRsp(const RawAddress& bd_addr, uint8_t label, 124 void AVDTC_GetAllCapRsp(const RawAddress& bd_addr, uint8_t label, 147 void AVDTC_GetConfigRsp(uint8_t handle, uint8_t label, AvdtpSepConfig* p_cfg); 169 void AVDTC_OpenRsp(uint8_t handle, uint8_t label); 180 void AVDTC_StartRsp(uint8_t* p_handles, uint8_t num_handles, uint8_t label); 191 void AVDTC_CloseRsp(uint8_t handle, uint8_t label); 202 void AVDTC_SuspendRsp(uint8_t* p_handles, uint8_t num_handles, uint8_t label); 224 void AVDTC_AbortRsp(uint8_t handle, uint8_t label); 236 uint8_t label, uint8_t err_code, uint8_t err_param);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | AbstractLayoutBase.java | 31 public static ExpectedKey key(final String label, final ExpectedKey ... moreKeys) { in key() argument 32 return ExpectedKey.newInstance(label, moreKeys); in key() 36 public static ExpectedKey key(final String label, final String outputText, in key() argument 38 return ExpectedKey.newInstance(label, outputText, moreKeys); in key() 42 public static ExpectedKey key(final String label, final int code, in key() argument 44 return ExpectedKey.newInstance(label, code, moreKeys); in key() 69 public static ExpectedAdditionalMoreKey additionalMoreKey(final String label) { in additionalMoreKey() argument 70 return ExpectedAdditionalMoreKey.newInstance(label); in additionalMoreKey() 74 public static ExpectedKey moreKey(final String label) { in moreKey() argument 75 return ExpectedKey.newInstance(label); in moreKey() [all …]
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | ContactDataHandlerTest.java | 108 String label = "CustomLabel"; in testConvertCurrentRowToPerson_labelCustom_typeCustom() local 113 values.put(CommonDataKinds.Email.LABEL, label); in testConvertCurrentRowToPerson_labelCustom_typeCustom() 121 .addEmailToPerson(label, address) in testConvertCurrentRowToPerson_labelCustom_typeCustom() 133 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testConvertCurrentRowToPerson_labelCustom_typeCustom() 178 String label = CommonDataKinds.Email.getTypeLabel(mResources, type, /* label= */ in testConvertCurrentRowToPerson_labelIsNull_typeHome() local 189 ).addEmailToPerson(label, address) in testConvertCurrentRowToPerson_labelIsNull_typeHome() 201 assertThat(contactPoints[0].getLabel()).isEqualTo(label); in testConvertCurrentRowToPerson_labelIsNull_typeHome() 211 String label = CommonDataKinds.Email.getTypeLabel(mResources, type, /* label= */ in testConvertCurrentRowToPerson_email() local 217 values.put(CommonDataKinds.Email.LABEL, label); in testConvertCurrentRowToPerson_email() 223 .addEmailToPerson(label, address).buildPerson(); in testConvertCurrentRowToPerson_email() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsPacketWriterTest.kt | 44 val expected = "my".label() + "FIRST".label() + "name".label() + 0x00.toByte() + in testNameCompression() 46 "my".label() + "second".label() + byteArrayOf(0xC0.toByte(), 9) + in testNameCompression() 47 "other".label() + byteArrayOf(0xC0.toByte(), 3) + in testNameCompression() 49 "unrelated".label() + 0x00.toByte() in testNameCompression() 55 private fun String.label() = byteArrayOf(length.toByte()) + encodeToByteArray() method
|
/packages/modules/Connectivity/tests/unit/java/android/net/util/ |
D | DnsUtilsTest.java | 116 assertEquals(test.label, 4); in testV4SortableAddress() 127 assertEquals(test.label, 4); in testV4SortableAddress() 137 assertEquals(test.label, 1); in testV6SortableAddress() 148 assertEquals(test.label, 1); in testV6SortableAddress() 158 assertEquals(test.label, 1); in testV6SortableAddress() 169 assertEquals(test.label, 0); in testV6SortableAddress() 175 assertEquals(test.label, 1); in testV6SortableAddress() 181 assertEquals(test.label, 1); in testV6SortableAddress() 187 assertEquals(test.label, 2); in testV6SortableAddress() 193 assertEquals(test.label, 13); in testV6SortableAddress() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | LabelDialogFragment.kt | 66 var label = args.getString(ARG_LABEL) in onCreateDialog() variable 68 label = it.getString(ARG_LABEL, label) in onCreateDialog() 74 .setMessage(R.string.label) in onCreateDialog() 89 mLabelBox?.setText(label) in onCreateDialog() 114 var label: String = mLabelBox!!.getText().toString() in setLabel() variable 115 if (label.trim { it <= ' ' }.isEmpty()) { in setLabel() 117 label = "" in setLabel() 121 (activity as AlarmLabelDialogHandler).onDialogLabelSet(mAlarm!!, label, mTag!!) in setLabel() 125 DataModel.dataModel.setTimerLabel(timer, label) in setLabel() 131 fun onDialogLabelSet(alarm: Alarm, label: String, tag: String) in onDialogLabelSet() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | ResultActivity.java | 83 private void addRowForValue(String label, Object value) { in addRowForValue() argument 85 addRow(label, "null"); in addRowForValue() 87 addRowWithBitmap(label, (Bitmap)value); in addRowForValue() 89 addRow(label, "INTENT"); in addRowForValue() 92 addRow(label, "DATA"); in addRowForValue() 95 addRow(label, "ARRAY"); in addRowForValue() 101 addRow(label, String.valueOf(value)); in addRowForValue() 134 TextView label = new TextView(this); in addRow() local 135 label.setPadding(4, 4, 4, 4); in addRow() 136 label.setText(column0); in addRow() [all …]
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | DnsPacketUtils.java | 62 static String labelToString(@NonNull byte[] label) { in labelToString() argument 65 for (int i = 0; i < label.length; ++i) { in labelToString() 66 int b = Byte.toUnsignedInt(label[i]); in labelToString() 104 for (final String label : labels) { in domainNameToLabels() 105 if (label.length() > MAXLABELSIZE) { in domainNameToLabels() 106 throw new ParseException("label is too long: " + label); in domainNameToLabels() 108 buf.write(label.length()); in domainNameToLabels() 110 buf.write(label.getBytes(StandardCharsets.UTF_8)); in domainNameToLabels() 175 final byte[] label = new byte[len]; in parseName() 176 buf.get(label); in parseName() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | PersonBuilderHelper.java | 162 private ContactPointBuilderHelper getOrCreateContactPointBuilderHelper(@NonNull String label) { in getOrCreateContactPointBuilderHelper() argument 164 mContactPointBuilderHelpers.get(Objects.requireNonNull(label)); in getOrCreateContactPointBuilderHelper() 171 label)); in getOrCreateContactPointBuilderHelper() 172 mContactPointBuilderHelpers.put(label, builderHelper); in getOrCreateContactPointBuilderHelper() 185 public PersonBuilderHelper addAppIdToPerson(@NonNull String label, @NonNull String appId) { in addAppIdToPerson() argument 186 getOrCreateContactPointBuilderHelper(Objects.requireNonNull(label)) in addAppIdToPerson() 192 public PersonBuilderHelper addEmailToPerson(@NonNull String label, @NonNull String email) { in addEmailToPerson() argument 193 getOrCreateContactPointBuilderHelper(Objects.requireNonNull(label)) in addEmailToPerson() 200 public PersonBuilderHelper addAddressToPerson(@NonNull String label, @NonNull String address) { in addAddressToPerson() argument 201 getOrCreateContactPointBuilderHelper(Objects.requireNonNull(label)) in addAddressToPerson() [all …]
|
D | ContactDataHandler.java | 225 String label = in addData() local 227 addContactPointData(builderHelper, label, data); in addData() 232 protected abstract String getTypeLabel(Resources resources, int type, String label); in getTypeLabel() argument 242 PersonBuilderHelper builderHelper, String label, Map<String, String> data); in addContactPointData() argument 266 @NonNull String label, in addContactPointData() argument 270 Objects.requireNonNull(label); in addContactPointData() 273 builderHelper.addEmailToPerson(label, email); in addContactPointData() 280 @NonNull Resources resources, int type, @Nullable String label) { in getTypeLabel() argument 282 return Email.getTypeLabel(resources, type, label).toString(); in getTypeLabel() 310 @NonNull String label, in addContactPointData() argument [all …]
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_rc.cc | 120 uint8_t label; member 124 uint8_t label; member 140 uint8_t label; member 187 uint8_t label; member 193 uint8_t label; member 276 static void send_reject_response(uint8_t rc_handle, uint8_t label, uint8_t pdu, 280 uint8_t label, tBTA_AV_CODE code, 287 static void start_transaction_timer(btif_rc_device_cb_t* p_dev, uint8_t label, 290 static void release_transaction(btif_rc_device_cb_t* p_dev, uint8_t label); 293 uint8_t label); [all …]
|