Home
last modified time | relevance | path

Searched refs:received (Results 1 – 25 of 94) sorted by relevance

1234

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DMultiScalePropertyTest.kt31 private val received = mutableListOf<Float>() constant
36 received.add(value) in apply()
49 assertThat(received).containsExactly(0.5f, 0.5f) in set_multipleSame_bothAppliedd()
59 assertThat(received).containsExactly(v1, v1) in set_differentIndexes_oneValuesNotCounted()
66 assertThat(received).containsExactly(1.0f) in set_onlyOneSetToOne_oneApplied()
73 assertThat(received).containsExactly(0.5f) in set_onlyOneLessThanOne_applied()
83 assertThat(received).containsExactly(v1, v1) in set_differentIndexes_boundToMin()
95 assertThat(received).containsExactly(v1, v1, v1) in set_allHigherThanOne_boundToMax()
107 assertThat(received).containsExactly(v1, v1, v1 * v2 * v3) in set_differentIndexes_firstModified_aggregationApplied()
DMultiPropertyFactoryTest.kt31 private val received = mutableListOf<Float>() in <lambda>() constant
36 received.add(value) in <lambda>()
58 assertThat(received).containsExactly(v1, v1, v2) in <lambda>()
70 assertThat(received).containsExactly(v1, v1 + v2, v1 + v2 + v3) in <lambda>()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/util/
DTetheringUtilsTest.java144 ByteBuffer received = readIpPacket(in); in checkIcmpSocketFilter() local
145 assertEquals(len, received.position()); in checkIcmpSocketFilter()
152 received = readIpPacket(in); in checkIcmpSocketFilter()
153 assertEquals(len, received.position()); in checkIcmpSocketFilter()
154 received.flip(); in checkIcmpSocketFilter()
163 return received; in checkIcmpSocketFilter()
178 ByteBuffer received = checkIcmpSocketFilter(na /* passed */, rs /* dropped */, in testIcmpSocketFilters() local
181 Struct.parse(Ipv6Header.class, received); // Skip IPv6 header. in testIcmpSocketFilters()
182 Icmpv6Header icmpv6 = Struct.parse(Icmpv6Header.class, received); in testIcmpSocketFilters()
185 received = checkIcmpSocketFilter(ns /* passed */, rs /* dropped */, in testIcmpSocketFilters()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/
DCarEvsServiceUnitTest.java506 received -> received.getState() == SERVICE_STATE_ACTIVE)); in testTransitionFromInactiveToActive()
542 received -> received.getState() == SERVICE_STATE_ACTIVE)); in testTransitionFromRequestedToActive()
604 received -> received.getState() == SERVICE_STATE_REQUESTED)); in testTransitionFromUnavailableToRequested()
619 received -> received.getState() == SERVICE_STATE_REQUESTED)); in testTransitionFromInactiveToRequested()
636 received -> received.getState() == SERVICE_STATE_REQUESTED)); in testTransitionFromActiveToRequested()
705 received -> received.getState() == SERVICE_STATE_REQUESTED)); in testDuplicatedDisplayEvent()
801 .onNewFrame(argThat(received -> received.getId() == bufferId)); in testStartActivity()
962 .onNewFrame(argThat(received -> received.getId() == bufferId)); in testRequestToStartVideoTwice()
964 .onNewFrame(argThat(received -> received.getId() == anotherBufferId)); in testRequestToStartVideoTwice()
986 .onNewFrame(argThat(received -> received.getId() == bufferId)); in testStartAndStopVideoStreamWithoutSessionToken()
[all …]
/packages/modules/Bluetooth/system/osi/test/
Dproperties_test.cc37 char received[PROPERTY_VALUE_MAX]; in TEST_F() local
38 osi_property_get("very.useful.set.test", received, NULL); in TEST_F()
39 ASSERT_STREQ(received, "nothing_interesting"); in TEST_F()
55 int32_t received = osi_property_get_int32("very.useful.set.test", 84); in TEST_F() local
56 ASSERT_EQ(received, 42); in TEST_F()
/packages/modules/adb/tls/tests/
Dtls_connection_test.cpp536 const STACK_OF(X509_NAME)* received = SSL_get_client_CA_list(ssl); in TEST_F()
537 EXPECT_NE(received, nullptr); in TEST_F()
538 const size_t num_names = sk_X509_NAME_num(received); in TEST_F()
551 auto* name = sk_X509_NAME_value(received, idx++); in TEST_F()
586 const STACK_OF(X509_NAME)* received = SSL_get_client_CA_list(ssl); in TEST_F()
587 EXPECT_NE(received, nullptr); in TEST_F()
588 const size_t num_names = sk_X509_NAME_num(received); in TEST_F()
591 auto* name = sk_X509_NAME_value(received, 0); in TEST_F()
/packages/modules/Bluetooth/system/gd/hci/
Dacl_manager_test.cc619 std::unique_ptr<PacketView<kLittleEndian>> received; in TEST_F() local
621 received = queue_end->TryDequeue(); in TEST_F()
622 } while (received == nullptr); in TEST_F()
624 PacketView<kLittleEndian> received_packet = *received; in TEST_F()
710 std::unique_ptr<PacketView<kLittleEndian>> received; in TEST_F() local
712 received = queue_end->TryDequeue(); in TEST_F()
713 } while (received == nullptr); in TEST_F()
716 ASSERT_EQ(received->size(), 10u); in TEST_F()
717 auto itr = received->begin(); in TEST_F()
730 std::unique_ptr<PacketView<kLittleEndian>> received; in TEST_F() local
[all …]
Dhci_layer_fake.cc233 std::unique_ptr<AclBuilder> received; in OutgoingAclData() local
235 received = queue_end->TryDequeue(); in OutgoingAclData()
236 } while (received == nullptr); in OutgoingAclData()
238 return GetPacketView(std::move(received)); in OutgoingAclData()
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
Dlibbt_audio_hal_hearing_aid_software_encoding_fuzzer.cpp53 char received[kPropertyValueMax]; in LLVMFuzzerTestOneInput() local
54 osi_property_get(property.c_str(), received, NULL); in LLVMFuzzerTestOneInput()
80 osi_property_set(property.c_str(), received); in LLVMFuzzerTestOneInput()
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt279 val received = ByteBuffer.allocate(TEST_MTU) in assertSocketReadErrno() constant
281 val len = Os.read(fd, received) in assertSocketReadErrno()
282 fail(msg + ": " + toHexString(received, len)) in assertSocketReadErrno()
289 val received = ByteBuffer.allocate(TEST_MTU) in assertNextPacketOnSocket() constant
290 val len = Os.read(fd, received) in assertNextPacketOnSocket()
292 toHexString(received, len)) in assertNextPacketOnSocket()
/packages/services/Car/cpp/evs/manager/1.1/stats/
DStatsCollector.cpp59 const auto received = static_cast<CollectionEvent>(message.what); in handleMessage() local
61 switch (received) { in handleMessage()
63 ret = handleCollectionEvent(received, &mPeriodicCollectionInfo); in handleMessage()
67 ret = handleCollectionEvent(received, &mCustomCollectionInfo); in handleMessage()
88 LOG(WARNING) << "Unknown event is received: " << received; in handleMessage()
/packages/services/Car/cpp/evs/manager/aidl/stats/src/
DStatsCollector.cpp60 const auto received = static_cast<CollectionEvent>(message.what); in handleMessage() local
62 switch (received) { in handleMessage()
64 ret = handleCollectionEvent(received, &mPeriodicCollectionInfo); in handleMessage()
68 ret = handleCollectionEvent(received, &mCustomCollectionInfo); in handleMessage()
88 LOG(WARNING) << "Unknown event is received: " << received; in handleMessage()
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DEvsEnumeratorUnitTest.cpp250 std::vector<DeviceStatus> received; in TEST_F() local
254 [&cv, &received, &gotCallback](const std::vector<DeviceStatus>& deviceStatus) { in TEST_F()
255 received = deviceStatus; in TEST_F()
270 EXPECT_FALSE(received.empty()); in TEST_F()
272 auto it = std::find_if(received.begin(), received.end(), [deviceId](DeviceStatus v) { in TEST_F()
275 EXPECT_TRUE(it != received.end()); in TEST_F()
278 received.clear(); in TEST_F()
282 EXPECT_FALSE(received.empty()); in TEST_F()
284 it = std::find_if(received.begin(), received.end(), [deviceId](DeviceStatus v) { in TEST_F()
287 EXPECT_TRUE(it != received.end()); in TEST_F()
DEvsEnumeratorHidlUnitTest_1_0.cpp133 EXPECT_TRUE(mEnumerator->getCameraList([&list](auto received) { list = received; }).isOk()); in TEST_F() argument
166 mEnumerator->getCameraList([&hidlCameras](auto received) { hidlCameras = received; }) in TEST_F() argument
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DPacketReflector.java142 int received = PacketReflectorUtil.readPacket(mFd, buf); in processIcmpPacket() local
143 if (received != len) { in processIcmpPacket()
145 "read=" + received + " expected=" + len); in processIcmpPacket()
/packages/services/Car/cpp/evs/manager/1.1/emul/
DVideoCapture.cpp397 const auto received = static_cast<StreamEvent>(message.what); in handleMessage() local
398 switch (received) { in handleMessage()
406 mLooper->sendMessageAtTime(next, this, received); in handleMessage()
417 LOG(WARNING) << "Unknown event is received: " << received; in handleMessage()
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dvcp.py67 received = []
75 received.append(event.numeric_comparison)
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DReceiveSmsMessageAction.java78 final long received = messageValues.getAsLong(Sms.DATE); in executeAction() local
81 syncManager.onNewMessageInserted(received); in executeAction()
144 participantId, selfId, text, subject, sent, received, seen, read); in executeAction()
DReceiveMmsMessageAction.java71 final long received = System.currentTimeMillis(); in executeAction() local
74 syncManager.onNewMessageInserted(received); in executeAction()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/backup/
DBackupAndRestoreFragment.java212 boolean received = false; in waitForCompletion()
214 received = mLatch.await(120, TimeUnit.SECONDS); in waitForCompletion()
219 if (!received) { in waitForCompletion()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiTrafficPoller.java79 long received = newRxPkts - mRxPkts; in notifyOnDataActivity() local
89 if (received > rxPacketThreshold) { in notifyOnDataActivity()
/packages/modules/Bluetooth/tools/rootcanal/test/
Dposix_socket_unittest.cc195 bool received = false; in TEST_F() local
200 received = true; in TEST_F()
213 ASSERT_TRUE(cv.wait_for(lk, 250ms, [&] { return received; })); in TEST_F()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/metrics/
Dstats.proto34 // The amount of data received from tethered clients.
37 // The amount of data received from remote.
/packages/modules/Bluetooth/tools/rootcanal/scripts/
Dsend_simple_commands.py131 received = self.receive_response()
132 received_bytes = bytearray(received)
/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/
Ddialer_phone_number.proto26 // letters country code of the country where the user received or made the
52 // country where the user received or made the call."

1234