Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 4832) sorted by relevance

12345678910>>...194

/packages/modules/Connectivity/tests/unit/java/android/net/util/
DDnsUtilsTest.java30 import androidx.test.filters.SmallTest;
63 final List<DnsUtils.SortableAddress> test = Arrays.asList( in testRfc6724Comparator() local
97 Collections.sort(test, new DnsUtils.Rfc6724Comparator()); in testRfc6724Comparator()
99 for (int i = 0; i < test.size(); ++i) { in testRfc6724Comparator()
100 assertEquals(test.get(i).address, expected.get(i)); in testRfc6724Comparator()
109 DnsUtils.SortableAddress test = makeSortableAddress("216.58.200.36"); in testV4SortableAddress() local
110 assertEquals(test.hasSrcAddr, 0); in testV4SortableAddress()
111 assertEquals(test.prefixMatchLen, 0); in testV4SortableAddress()
112 assertEquals(test.address, stringToAddress("216.58.200.36")); in testV4SortableAddress()
113 assertEquals(test.labelMatch, 0); in testV4SortableAddress()
[all …]
/packages/modules/Bluetooth/system/test/fake/
Dfake_osi.cc62 list_ = test::mock::osi_list::list_new(nullptr); in fixed_queue_t()
67 namespace test { namespace
83 test::mock::osi_alarm::alarm_free.body = [](alarm_t* alarm) { in FakeOsi()
89 test::mock::osi_alarm::alarm_new.body = [](const char* name) { in FakeOsi()
93 test::mock::osi_alarm::alarm_set_on_mloop.body = in FakeOsi()
100 test::mock::osi_alarm::alarm_cancel.body = [](alarm_t* alarm) { in FakeOsi()
107 test::mock::osi_allocator::osi_calloc.body = [](size_t size) { in FakeOsi()
110 test::mock::osi_allocator::osi_free.body = [](void* ptr) { free(ptr); }; in FakeOsi()
111 test::mock::osi_allocator::osi_free_and_reset.body = [](void** ptr) { in FakeOsi()
115 test::mock::osi_allocator::osi_malloc.body = [](size_t size) { in FakeOsi()
[all …]
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_acl.cc42 namespace test { namespace
189 return test::mock::stack_acl::ACL_SupportTransparentSynchronousData(bd_addr); in ACL_SupportTransparentSynchronousData()
193 return test::mock::stack_acl::BTM_BLE_IS_RESOLVE_BDA(x); in BTM_BLE_IS_RESOLVE_BDA()
198 return test::mock::stack_acl::BTM_IsAclConnectionUp(remote_bda, transport); in BTM_IsAclConnectionUp()
203 return test::mock::stack_acl::BTM_IsAclConnectionUpAndHandleValid(remote_bda, in BTM_IsAclConnectionUpAndHandleValid()
208 return test::mock::stack_acl::BTM_IsAclConnectionUpFromHandle(hci_handle); in BTM_IsAclConnectionUpFromHandle()
212 return test::mock::stack_acl::BTM_IsBleConnection(hci_handle); in BTM_IsBleConnection()
217 return test::mock::stack_acl::BTM_IsPhy2mSupported(remote_bda, transport); in BTM_IsPhy2mSupported()
223 return test::mock::stack_acl::BTM_ReadRemoteConnectionAddr( in BTM_ReadRemoteConnectionAddr()
229 return test::mock::stack_acl::BTM_ReadRemoteVersion( in BTM_ReadRemoteVersion()
[all …]
Dmock_bta_dm_act.cc35 namespace test { namespace
111 return test::mock::bta_dm_act::BTA_DmSetVisibility(mode); in BTA_DmSetVisibility()
115 test::mock::bta_dm_act::BTA_dm_acl_down(bd_addr, transport); in BTA_dm_acl_down()
120 test::mock::bta_dm_act::BTA_dm_acl_up(bd_addr, transport, acl_handle); in BTA_dm_acl_up()
125 test::mock::bta_dm_act::BTA_dm_acl_up_failed(bd_addr, transport, hci_status); in BTA_dm_acl_up_failed()
129 test::mock::bta_dm_act::BTA_dm_notify_remote_features_complete(bd_addr); in BTA_dm_notify_remote_features_complete()
133 test::mock::bta_dm_act::BTA_dm_on_hw_off(); in BTA_dm_on_hw_off()
137 test::mock::bta_dm_act::BTA_dm_on_hw_on(); in BTA_dm_on_hw_on()
142 test::mock::bta_dm_act::BTA_dm_report_role_change(bd_addr, new_role, in BTA_dm_report_role_change()
148 test::mock::bta_dm_act::bta_dm_acl_up(bd_addr, transport, acl_handle); in bta_dm_acl_up()
[all …]
Dmock_stack_smp_act.cc47 namespace test { namespace
137 test::mock::stack_smp_act::smp_send_app_cback(p_cb, p_data); in smp_send_app_cback()
141 test::mock::stack_smp_act::smp_send_pair_fail(p_cb, p_data); in smp_send_pair_fail()
145 test::mock::stack_smp_act::smp_send_pair_req(p_cb, p_data); in smp_send_pair_req()
149 test::mock::stack_smp_act::smp_send_pair_rsp(p_cb, p_data); in smp_send_pair_rsp()
153 test::mock::stack_smp_act::smp_send_confirm(p_cb, p_data); in smp_send_confirm()
157 test::mock::stack_smp_act::smp_send_init(p_cb, p_data); in smp_send_init()
161 test::mock::stack_smp_act::smp_send_rand(p_cb, p_data); in smp_send_rand()
165 test::mock::stack_smp_act::smp_send_pair_public_key(p_cb, p_data); in smp_send_pair_public_key()
169 test::mock::stack_smp_act::smp_send_commitment(p_cb, p_data); in smp_send_commitment()
[all …]
Dmock_stack_hcic_hcicmds.cc34 namespace test { namespace
113 test::mock::stack_hcic_hcicmds::btsnd_hcic_accept_conn(dest, role); in btsnd_hcic_accept_conn()
122 test::mock::stack_hcic_hcicmds::btsnd_hcic_accept_esco_conn( in btsnd_hcic_accept_esco_conn()
128 test::mock::stack_hcic_hcicmds::btsnd_hcic_add_SCO_conn(handle, packet_types); in btsnd_hcic_add_SCO_conn()
132 test::mock::stack_hcic_hcicmds::btsnd_hcic_auth_request(handle); in btsnd_hcic_auth_request()
136 test::mock::stack_hcic_hcicmds::btsnd_hcic_change_conn_type(handle, in btsnd_hcic_change_conn_type()
141 test::mock::stack_hcic_hcicmds::btsnd_hcic_change_name(name); in btsnd_hcic_change_name()
145 test::mock::stack_hcic_hcicmds::btsnd_hcic_create_conn_cancel(dest); in btsnd_hcic_create_conn_cancel()
150 test::mock::stack_hcic_hcicmds::btsnd_hcic_delete_stored_key(bd_addr, in btsnd_hcic_delete_stored_key()
156 test::mock::stack_hcic_hcicmds:: in btsnd_hcic_enhanced_accept_synchronous_connection()
[all …]
Dmock_stack_l2cap_api.cc42 namespace test { namespace
95 return test::mock::stack_l2cap_api::l2c_get_transport_from_fixed_cid( in l2c_get_transport_from_fixed_cid()
103 return test::mock::stack_l2cap_api::L2CA_Register2( in L2CA_Register2()
112 return test::mock::stack_l2cap_api::L2CA_Register( in L2CA_Register()
118 test::mock::stack_l2cap_api::L2CA_Deregister(psm); in L2CA_Deregister()
122 return test::mock::stack_l2cap_api::L2CA_AllocateLePSM(); in L2CA_AllocateLePSM()
126 test::mock::stack_l2cap_api::L2CA_FreeLePSM(psm); in L2CA_FreeLePSM()
131 return test::mock::stack_l2cap_api::L2CA_ConnectReq2(psm, p_bd_addr, in L2CA_ConnectReq2()
136 return test::mock::stack_l2cap_api::L2CA_ConnectReq(psm, p_bd_addr); in L2CA_ConnectReq()
141 return test::mock::stack_l2cap_api::L2CA_RegisterLECoc(psm, p_cb_info, in L2CA_RegisterLECoc()
[all …]
Dmock_stack_btm_ble.cc35 namespace test { namespace
96 namespace test { namespace
135 test::mock::stack_btm_ble::BTM_BleConfirmReply(bd_addr, res); in BTM_BleConfirmReply()
140 return test::mock::stack_btm_ble::BTM_BleDataSignature(bd_addr, p_text, len, in BTM_BleDataSignature()
145 test::mock::stack_btm_ble::BTM_BleLoadLocalKeys(key_type, p_key); in BTM_BleLoadLocalKeys()
150 test::mock::stack_btm_ble::BTM_BleOobDataReply(bd_addr, res, len, p_data); in BTM_BleOobDataReply()
155 test::mock::stack_btm_ble::BTM_BlePasskeyReply(bd_addr, res, passkey); in BTM_BlePasskeyReply()
161 test::mock::stack_btm_ble::BTM_BleReadPhy(bd_addr, cb); in BTM_BleReadPhy()
166 test::mock::stack_btm_ble::BTM_BleSecureConnectionOobDataReply(bd_addr, p_c, in BTM_BleSecureConnectionOobDataReply()
172 test::mock::stack_btm_ble::BTM_BleSetPhy(bd_addr, tx_phys, rx_phys, in BTM_BleSetPhy()
[all …]
Dmock_stack_a2dp_sbc.cc35 namespace test { namespace
80 namespace test { namespace
129 return test::mock::stack_a2dp_sbc::A2DP_AdjustCodecSbc(p_codec_info); in A2DP_AdjustCodecSbc()
134 return test::mock::stack_a2dp_sbc::A2DP_BuildCodecHeaderSbc( in A2DP_BuildCodecHeaderSbc()
140 return test::mock::stack_a2dp_sbc::A2DP_CodecEqualsSbc(p_codec_info_a, in A2DP_CodecEqualsSbc()
145 return test::mock::stack_a2dp_sbc::A2DP_CodecIndexStrSbc(); in A2DP_CodecIndexStrSbc()
149 return test::mock::stack_a2dp_sbc::A2DP_CodecIndexStrSbcSink(); in A2DP_CodecIndexStrSbcSink()
153 return test::mock::stack_a2dp_sbc::A2DP_CodecInfoStringSbc(p_codec_info); in A2DP_CodecInfoStringSbc()
157 return test::mock::stack_a2dp_sbc::A2DP_CodecNameSbc(p_codec_info); in A2DP_CodecNameSbc()
162 return test::mock::stack_a2dp_sbc::A2DP_CodecTypeEqualsSbc(p_codec_info_a, in A2DP_CodecTypeEqualsSbc()
[all …]
Dmock_stack_hcic_hciblecmds.cc33 namespace test { namespace
122 namespace test { namespace
133 test::mock::stack_hcic_hciblecmds:: in btsnd_hci_ble_add_device_to_periodic_advertiser_list()
140 test::mock::stack_hcic_hciblecmds:: in btsnd_hci_ble_clear_periodic_advertiser_list()
146 test::mock::stack_hcic_hciblecmds:: in btsnd_hci_ble_read_periodic_advertiser_list_size()
153 test::mock::stack_hcic_hciblecmds:: in btsnd_hci_ble_remove_device_from_periodic_advertiser_list()
159 test::mock::stack_hcic_hciblecmds::btsnd_hcic_accept_cis_req(conn_handle); in btsnd_hcic_accept_cis_req()
164 test::mock::stack_hcic_hciblecmds::btsnd_hcic_big_term_sync(big_handle, in btsnd_hcic_big_term_sync()
169 test::mock::stack_hcic_hciblecmds::btsnd_hcic_ble_create_conn_cancel(); in btsnd_hcic_ble_create_conn_cancel()
180 test::mock::stack_hcic_hciblecmds::btsnd_hcic_ble_create_ll_conn( in btsnd_hcic_ble_create_ll_conn()
[all …]
Dmock_main_shim_l2cap_api.cc40 namespace test { namespace
101 return test::mock::main_shim_l2cap_api::L2CA_ReadRemoteVersion( in L2CA_ReadRemoteVersion()
106 return test::mock::main_shim_l2cap_api::L2CA_ReadRemoteFeatures(addr); in L2CA_ReadRemoteFeatures()
110 test::mock::main_shim_l2cap_api::L2CA_UseLegacySecurityModule(); in L2CA_UseLegacySecurityModule()
117 return test::mock::main_shim_l2cap_api::L2CA_Register( in L2CA_Register()
123 test::mock::main_shim_l2cap_api::L2CA_Deregister(psm); in L2CA_Deregister()
128 return test::mock::main_shim_l2cap_api::L2CA_ConnectReq(psm, raw_address); in L2CA_ConnectReq()
132 return test::mock::main_shim_l2cap_api::L2CA_DisconnectReq(cid); in L2CA_DisconnectReq()
136 return test::mock::main_shim_l2cap_api::L2CA_DataWrite(cid, p_data); in L2CA_DataWrite()
142 return test::mock::main_shim_l2cap_api::L2CA_ReconfigCreditBasedConnsReq( in L2CA_ReconfigCreditBasedConnsReq()
[all …]
Dmock_bta_dm_api.cc37 namespace test { namespace
82 test::mock::bta_dm_api::BTA_DmAddBleDevice(bd_addr, addr_type, dev_type); in BTA_DmAddBleDevice()
87 test::mock::bta_dm_api::BTA_DmAddBleKey(bd_addr, p_le_key, key_type); in BTA_DmAddBleKey()
93 test::mock::bta_dm_api::BTA_DmAddDevice(bd_addr, dev_class, link_key, in BTA_DmAddDevice()
98 test::mock::bta_dm_api::BTA_DmBleConfigLocalPrivacy(privacy_enable); in BTA_DmBleConfigLocalPrivacy()
102 test::mock::bta_dm_api::BTA_DmBleConfirmReply(bd_addr, accept); in BTA_DmBleConfirmReply()
106 test::mock::bta_dm_api::BTA_DmBleCsisObserve(observe, p_results_cb); in BTA_DmBleCsisObserve()
110 test::mock::bta_dm_api::BTA_DmBleGetEnergyInfo(p_cmpl_cback); in BTA_DmBleGetEnergyInfo()
115 test::mock::bta_dm_api::BTA_DmBleObserve(start, duration, p_results_cb); in BTA_DmBleObserve()
120 test::mock::bta_dm_api::BTA_DmBlePasskeyReply(bd_addr, accept, passkey); in BTA_DmBlePasskeyReply()
[all …]
Dmock_btif_co_bta_av_co.cc35 namespace test { namespace
72 namespace test { namespace
100 test::mock::btif_co_bta_av_co::bta_av_co_audio_close(bta_av_handle, in bta_av_co_audio_close()
106 test::mock::btif_co_bta_av_co::bta_av_co_audio_delay(bta_av_handle, in bta_av_co_audio_delay()
114 test::mock::btif_co_bta_av_co::bta_av_co_audio_disc_res( in bta_av_co_audio_disc_res()
121 test::mock::btif_co_bta_av_co::bta_av_co_audio_drop(bta_av_handle, in bta_av_co_audio_drop()
131 return test::mock::btif_co_bta_av_co::bta_av_co_audio_getconfig( in bta_av_co_audio_getconfig()
138 return test::mock::btif_co_bta_av_co::bta_av_co_audio_init(codec_index, in bta_av_co_audio_init()
144 test::mock::btif_co_bta_av_co::bta_av_co_audio_open(bta_av_handle, in bta_av_co_audio_open()
154 test::mock::btif_co_bta_av_co::bta_av_co_audio_setconfig( in bta_av_co_audio_setconfig()
[all …]
Dmock_stack_gatt_api.cc36 namespace test { namespace
75 namespace test { namespace
114 return test::mock::stack_gatt_api:: in GATTC_GetAndRemoveListOfConnIdsWaitingForMtuRequest()
122 return test::mock::stack_gatt_api::GATTC_TryMtuRequest(remote_bda, transport, in GATTC_TryMtuRequest()
129 test::mock::stack_gatt_api::GATTC_UpdateUserAttMtuIfNeeded( in GATTC_UpdateUserAttMtuIfNeeded()
134 return test::mock::stack_gatt_api::GATTC_ConfigureMTU(conn_id, mtu); in GATTC_ConfigureMTU()
139 return test::mock::stack_gatt_api::GATTC_Discover(conn_id, disc_type, in GATTC_Discover()
144 return test::mock::stack_gatt_api::GATTC_ExecuteWrite(conn_id, is_execute); in GATTC_ExecuteWrite()
149 return test::mock::stack_gatt_api::GATTC_Read(conn_id, type, p_read); in GATTC_Read()
153 return test::mock::stack_gatt_api::GATTC_SendHandleValueConfirm(conn_id, cid); in GATTC_SendHandleValueConfirm()
[all …]
Dmock_stack_l2cap_ble.cc45 namespace test { namespace
88 return test::mock::stack_l2cap_ble::L2CA_UpdateBleConnParams( in L2CA_UpdateBleConnParams()
93 return test::mock::stack_l2cap_ble::L2CA_EnableUpdateBleConnParams(rem_bda, in L2CA_EnableUpdateBleConnParams()
98 test::mock::stack_l2cap_ble::L2CA_ConsolidateParams(identity_addr, rpa); in L2CA_Consolidate()
102 return test::mock::stack_l2cap_ble::L2CA_GetBleConnRole(bd_addr); in L2CA_GetBleConnRole()
106 test::mock::stack_l2cap_ble::l2cble_notify_le_connection(bda); in l2cble_notify_le_connection()
112 return test::mock::stack_l2cap_ble::l2cble_conn_comp( in l2cble_conn_comp()
119 return test::mock::stack_l2cap_ble::l2cble_conn_comp_from_address_with_type( in l2cble_conn_comp_from_address_with_type()
127 test::mock::stack_l2cap_ble::l2cble_process_conn_update_evt( in l2cble_process_conn_update_evt()
132 test::mock::stack_l2cap_ble::l2cble_process_sig_cmd(p_lcb, p, pkt_len); in l2cble_process_sig_cmd()
[all …]
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dl2cap.py33 def MMI_IUT_SEND_LE_CREDIT_BASED_CONNECTION_REQUEST(self, test: str, pts_addr: bytes, **kwargs):
64 if self.connection and test == 'L2CAP/LE/CFC/BV-02-C':
72 if test == 'L2CAP/LE/CFC/BV-04-C':
74 if test == 'L2CAP/LE/CFC/BV-10-C':
76 if test == 'L2CAP/LE/CFC/BV-12-C':
79 secure_connection = test in tests_require_secure_connection
84 if test in tests_target_to_fail:
85 self.test_status_map[test] = 'OK'
86 print(test, 'target to fail', file=sys.stderr)
89 print(test, 'CreateLECreditBasedChannel failed', e, file=sys.stderr)
[all …]
/packages/modules/Bluetooth/system/device/test/
Ddevice_iot_config_test.cc77 test::mock::osi_alarm::alarm_new.body = [&](const char* name) -> alarm_t* { in SetUp()
81 test::mock::osi_properties::osi_property_get_bool.body = in SetUp()
84 test::mock::osi_alarm::alarm_set.body = in SetUp()
88 test::mock::osi_alarm::alarm_free.body = [](alarm_t* alarm) {}; in SetUp()
90 test::mock::osi_alarm::alarm_is_scheduled.body = in SetUp()
93 test::mock::osi_future::future_new_immediate.body = in SetUp()
96 test::mock::osi_config::config_new_empty.body = in SetUp()
101 test::mock::osi_config::config_new.body = in SetUp()
106 test::mock::osi_config::config_get_int.body = in SetUp()
110 test::mock::osi_config::config_set_int.body = in SetUp()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachineTest.java17 package com.android.internal.net.eap.test.statemachine;
19 import static android.net.eap.test.EapSessionConfig.EapMethodConfig.EAP_TYPE_AKA;
20 import static android.net.eap.test.EapSessionConfig.EapMethodConfig.EAP_TYPE_SIM;
23 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_REQUEST;
24 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.COMPUTED_MAC;
25 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_AKA_CLIENT_ER…
26 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_AKA_NOTIFICAT…
27 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_AKA_NOTIFICAT…
28 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_AKA_NOTIFICAT…
29 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_SIM_CHALLENGE…
[all …]
DEapTtlsStateTest.java17 package com.android.internal.net.eap.test.statemachine;
19 import static android.net.eap.test.EapSessionConfig.EapMethodConfig.EAP_TYPE_TTLS;
21 import static androidx.test.InstrumentationRegistry.getInstrumentation;
24 import static com.android.internal.net.eap.test.crypto.TlsSession.TLS_STATUS_CLOSED;
25 import static com.android.internal.net.eap.test.message.EapData.EAP_NOTIFICATION;
26 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_FAILURE;
27 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_REQUEST;
28 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_SUCCESS;
29 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_RESPONSE_NOTI…
30 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_RESPONSE_TTLS…
[all …]
DEapSimChallengeStateTest.java17 package com.android.internal.net.eap.test.statemachine;
19 import static android.net.eap.test.EapSessionConfig.EapMethodConfig.EAP_TYPE_SIM;
22 import static com.android.internal.net.eap.test.message.EapData.EAP_IDENTITY;
23 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_FAILURE;
24 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_REQUEST;
25 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_SUCCESS;
26 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.CHALLENGE_RESPONS…
27 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.CHALLENGE_RESPONS…
28 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_SIM_CLIENT_ER…
29 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_SIM_IDENTITY_…
[all …]
DEapSimStartStateTest.java17 package com.android.internal.net.eap.test.statemachine;
19 import static android.net.eap.test.EapSessionConfig.EapMethodConfig.EAP_TYPE_SIM;
21 import static com.android.internal.net.eap.test.message.EapData.EAP_IDENTITY;
22 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_FAILURE;
23 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_REQUEST;
24 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_SUCCESS;
25 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_SIM_IDENTITY;
26 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_SIM_RESPONSE_…
27 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.ID_INT;
28 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.IMSI;
[all …]
DEapTtlsTunnelStateTest.java17 package com.android.internal.net.eap.test.statemachine;
19 import static android.net.eap.test.EapSessionConfig.EapMethodConfig.EAP_TYPE_MSCHAP_V2;
21 import static com.android.internal.net.eap.test.crypto.TlsSession.TLS_STATUS_CLOSED;
22 import static com.android.internal.net.eap.test.crypto.TlsSession.TLS_STATUS_FAILURE;
23 import static com.android.internal.net.eap.test.crypto.TlsSession.TLS_STATUS_SUCCESS;
24 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_FAILURE;
25 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_RESPONSE;
26 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_SUCCESS;
27 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_DUMMY_REQUEST…
28 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_FAILURE_PACKE…
[all …]
DEapMsChapV2ValidateAuthenticatorStateTest.java17 package com.android.internal.net.eap.test.statemachine;
19 import static android.net.eap.test.EapSessionConfig.EapMethodConfig.EAP_TYPE_MSCHAP_V2;
21 import static com.android.internal.net.eap.test.message.EapMessage.EAP_CODE_REQUEST;
22 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_MSCHAP_V2_FAI…
23 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.EAP_MSCHAP_V2_SUC…
24 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.ID_INT;
25 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.INVALID_AUTHENTIC…
26 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.MSCHAP_V2_AUTHENT…
27 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.MSCHAP_V2_AUTHENT…
28 import static com.android.internal.net.eap.test.message.EapTestMessageDefinitions.MSCHAP_V2_ID_INT;
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DHanziToPinyinTest.java19 import android.test.suitebuilder.annotation.SmallTest;
41 private void test(final char hanzi, final String expectedPinyin) throws Exception { in test() method in HanziToPinyinTest
107 test('\u4e00', "YI"); in testTransliterator()
108 test('\u5201', "DIAO"); in testTransliterator()
109 test('\u5602', "JIAO"); in testTransliterator()
110 test('\u5a03', "WA"); in testTransliterator()
111 test('\u5e04', "DING"); in testTransliterator()
112 test('\u6205', "GANG"); in testTransliterator()
113 test('\u6606', "KUN"); in testTransliterator()
114 test('\u6a07', "XIU"); in testTransliterator()
[all …]
/packages/modules/AdServices/sdksandbox/tests/testutils/testscenario/
DREADME.md10 - SdkSandboxScenarioRule: This is a custom JUnit rule used for creating a test environment
11 and invoking test methods
12 - SdkSandboxTestScenarioRunner: This is a custom SandboxedSdkProvider that manages test
15 manager to stay alive between test runs
22 If you need to add an entirely new JUnit test suite, you need to add both a JUnit test
28 test cases. Create a new module for your sdk side tests.
41 // sandbox test utilities that will be used
42 // by your JUnit test suite to load
44 certificate: ":sdksandbox-test",
51 libs: ["android.test.base"],
[all …]

12345678910>>...194