/tools/test/connectivity/acts/framework/acts/test_utils/tel/ |
tel_subscription_utils.py | 26 def initial_set_up_for_subid_infomation(log, ad): 27 """Initial subid setup for voice, message and data according to ad's 39 ad: android device object 49 if hasattr(ad, "default_voice_sim_slot_index"): 51 log, ad, ad.default_voice_sim_slot_index) 52 set_subid_for_outgoing_call(ad, outgoing_voice_sub_id) 54 outgoing_voice_sub_id = ad.droid.subscriptionGetDefaultVoiceSubId() 55 setattr(ad, "outgoing_voice_sub_id", outgoing_voice_sub_id) 62 if hasattr(ad, "default_message_sim_slot_index") [all...] |
tel_voice_utils.py | 282 ad, 296 ad: Android device object. 306 return phone_setup_iwlan_for_subscription(log, ad, 307 get_outgoing_voice_sub_id(ad), 313 ad, 328 ad: Android device object. 339 toggle_airplane_mode(log, ad, is_airplane_mode, strict_checking=False) 342 if wfc_mode != WFC_MODE_DISABLED and not ad.droid.imsIsWfcEnabledByPlatform( 344 ad.log.error("WFC is not enabled on this device by checking " 349 if not ensure_wifi_connected(log, ad, wifi_ssid, wifi_pwd) [all...] |
tel_test_utils.py | 184 def get_phone_number_by_adb(ad): 186 ad.adb.shell("service call iphonesubinfo 13")) 189 def get_iccid_by_adb(ad): 190 return ad.adb.shell("service call iphonesubinfo 11") 193 def get_operator_by_adb(ad): 194 return ad.adb.getprop("gsm.sim.operator.alpha") 197 def get_plmn_by_adb(ad): 198 return ad.adb.getprop("gsm.sim.operator.numeric") 201 def get_sub_id_by_adb(ad): 202 return ad.adb.shell("service call iphonesubinfo 5" [all...] |
tel_data_utils.py | 227 def wifi_cell_switching(log, ad, wifi_network_ssid, wifi_network_pass, nw_gen): 239 ad: android object. 250 log, ad, 251 get_default_data_sub_id(ad), nw_gen, 253 ad.log.error("Device failed to register in %s", nw_gen) 257 ad.log.info("Make sure phone can connect to live network by WIFI") 258 if not ensure_wifi_connected(log, ad, wifi_network_ssid, 260 ad.log.error("WiFi connect fail.") 265 toggle_airplane_mode(log, ad, False) 266 wifi_toggle_state(log, ad, True [all...] |
TelephonyBaseTest.py | 77 for ad in self.android_devices: 79 ad.adb.shell("killall -9 tcpdump") 81 ad.log.warn("Killing existing tcpdump processes failed") 82 if not hasattr(ad, "init_log_path"): 83 ad.init_log_path = ad.log_path 84 ad.log_path = self.log_path 85 print_radio_info(ad) 86 if not unlock_sim(ad): 87 abort_all_tests(ad.log, "unable to unlock SIM" [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/aware/ |
AwareBaseTest.py | 41 for ad in self.android_devices: 43 not ad.droid.doesDeviceSupportWifiAwareFeature(), 45 wutils.wifi_toggle_state(ad, True) 46 ad.droid.wifiP2pClose() 47 utils.set_location_service(ad, True) 48 aware_avail = ad.droid.wifiIsAwareAvailable() 51 autils.wait_for_event(ad, aconsts.BROADCAST_WIFI_AWARE_AVAILABLE) 52 ad.ed.clear_all_events() 53 ad.aware_capabilities = autils.get_aware_capabilities(ad) [all...] |
/bootable/recovery/minadbd/ |
fuse_adb_provider.cpp | 30 int read_block_adb(const adb_data& ad, uint32_t block, uint8_t* buffer, uint32_t fetch_size) { 31 if (!WriteFdFmt(ad.sfd, "%08u", block)) { 36 if (!ReadFdExactly(ad.sfd, buffer, fetch_size)) { 45 adb_data ad; local 46 ad.sfd = sfd; 47 ad.file_size = file_size; 48 ad.block_size = block_size; 51 vtab.read_block = std::bind(read_block_adb, ad, std::placeholders::_1, std::placeholders::_2, 53 vtab.close = [&ad]() { WriteFdExactly(ad.sfd, "DONEDONE"); } [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/car/ |
car_telecom_utils.py | 35 def dial_number(log, ad, uri): 40 ad: android device object 47 ad.serial, uri)) 50 if ad.droid.telecomIsInCall(): 51 log.info("We're still in call {}".format(ad.serial)) 55 ad.droid.telecomStartListeningForCallAdded() 59 ad.droid.telecomCallTelUri(uri) 63 event = ad.ed.pop_event( 72 ad.droid.telecomStopListeningForCallAdded() 75 log.info("Call ID: {} dev {}".format(call_id, ad.serial) [all...] |
tel_telecom_utils.py | 27 def dial_number(log, ad, uri): 32 ad: android device object 41 ad.serial, uri)) 44 ad.droid.telecomStartListeningForCallAdded() 46 ad.droid.telecomCallTelUri(uri) 50 event = ad.ed.pop_event( 59 ad.droid.telecomStopListeningForCallAdded() 62 log.info("Call ID: {} dev {}".format(call_id, ad.serial)) 67 if not wait_for_dialing(log, ad): 72 def wait_for_call_state(log, ad, call_id, state) [all...] |
/external/clang/test/CodeGen/ |
builtins-ppc-crypto-disabled.c | 28 vector unsigned long long ad = D_INIT1 32 vector unsigned long long r1 = __builtin_crypto_vsbox(ad); 33 vector unsigned long long r2 = __builtin_crypto_vcipher(ad, bd); 34 vector unsigned long long r3 = __builtin_crypto_vcipherlast(ad, bd); 35 vector unsigned long long r4 = __builtin_crypto_vncipher(ad, bd); 36 vector unsigned long long r5 = __builtin_crypto_vncipherlast(ad, bd); 38 vector unsigned long long r7 = __builtin_crypto_vshasigmad(ad, 0, 15); 41 vector unsigned long long r8 = __builtin_crypto_vpmsumb(ad, bd); 42 vector unsigned long long r9 = __builtin_crypto_vpermxor(ad, bd, cd);
|
/tools/test/connectivity/acts/tests/google/tel/live/ |
TelLiveProjectFiTest.py | 84 def _add_google_account(self, ad, retries=3): 86 ad.ensure_screen_on() 87 output = ad.adb.shell( 91 (ad.user_account, ad.user_password)) 93 ad.log.info("google account is added successfully") 95 ad.log.error("Fail to add google account due to %s", output) 98 def _remove_google_account(self, ad, retries=3): 99 if not ad.is_apk_installed("com.google.android.tradefed.account" 104 ad.log.info("Install account_util %s", account_util [all...] |
TelLivePostflightTest.py | 50 for ad in self.android_devices: 51 post_crash = ad.check_crash_report(self.test_id) 52 pre_crash = getattr(ad, "crash_report_preflight", []) 55 msg += "%s find new crash reports %s " % (ad.serial, 57 ad.log.error("Find new crash reports %s", crash_diff) 58 crash_path = os.path.join(ad.log_path, self.test_name, 61 ad.pull_files(crash_diff, crash_path) 62 self._ad_take_bugreport(ad, self.test_name, self.begin_time) 71 for ad in self.android_devices: 72 tombstones = ad.get_file_names("/data/tombstones/" [all...] |
TelWifiDataTest.py | 84 ad = self.android_devices[0] 85 toggle_airplane_mode(self.log, ad, False) 86 if not ensure_network_generation(self.log, ad, 90 if not ensure_wifi_connected(self.log, ad, 93 ad.log.error("connect WiFi failed") 148 def _wifi_cell_irat_task(self, ad, irat_wait_time=60): 154 if (not wait_for_wifi_data_connection(self.log, ad, True, 156 not verify_http_connection(self.log, ad)): 157 ad.log.error("Data not on WiFi") 158 get_telephony_signal_strength(ad) [all...] |
TelLiveSettingsTest.py | 90 self.ad = self.android_devices[0] 106 self.log, self.ad, self.wifi_network_ssid, 110 if initial_setup_wfc_mode and not set_wfc_mode(self.log, self.ad, 114 if not phone_idle_iwlan(self.log, self.ad): 120 if not wifi_toggle_state(self.log, self.ad, False): 121 self.ad.log.error("Failed to turn off WiFi.") 124 if not wifi_reset(self.log, self.ad, False): 125 self.ad.log.error("Failed to reset WiFi") 128 if not set_wfc_mode(self.log, self.ad, WFC_MODE_DISABLED): 129 self.ad.log.error("Failed to turn off WFC." [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
wifi_test_utils.py | 543 def wait_for_wifi_state(ad, state, assert_on_fail=True): 547 ad: An AndroidDevice object. 557 _wait_for_wifi_state, assert_on_fail, ad, state=state) 560 def _wait_for_wifi_state(ad, state): 566 ad: An AndroidDevice object. 569 if state == ad.droid.wifiCheckState(): 573 ad.droid.wifiStartTrackingStateChange() 575 ad.serial) 577 ad.ed.wait_for_event(wifi_constants.WIFI_STATE_CHANGED, 581 asserts.assert_equal(state, ad.droid.wifiCheckState(), fail_msg [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/net/ |
ipsec_test_utils.py | 34 def allocate_spis(ad, ip_a, ip_b, in_spi = None, out_spi = None): 38 1. ad : android device object 47 in_spi_key = ad.droid.ipSecAllocateSecurityParameterIndex(ip_a, in_spi) 48 in_spi = ad.droid.ipSecGetSecurityParameterIndex(in_spi_key) 49 ad.log.info("In SPI: %s" % hex(in_spi)) 51 out_spi_key = ad.droid.ipSecAllocateSecurityParameterIndex(ip_b, out_spi) 52 out_spi = ad.droid.ipSecGetSecurityParameterIndex(out_spi_key) 53 ad.log.info("Out SPI: %s" % hex(out_spi)) 58 def release_spis(ad, spis): 62 1. ad : android device objec [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/rtt/ |
RttBaseTest.py | 45 for ad in self.android_devices: 46 utils.set_location_service(ad, True) 48 not ad.droid.doesDeviceSupportWifiRttFeature(), 50 wutils.wifi_toggle_state(ad, True) 51 rtt_avail = ad.droid.wifiIsRttAvailable() 54 rutils.wait_for_event(ad, rconsts.BROADCAST_WIFI_RTT_AVAILABLE) 55 ad.ed.clear_all_events() 56 rutils.config_privilege_override(ad, False) 57 ad.droid.wifiSetCountryCode(wutils.WifiEnums.CountryCode.US) 60 for ad in self.android_devices [all...] |
/system/bt/stack/include/ |
advertise_data_parser.h | 32 static bool MalformedPacketQuirk(const std::vector<uint8_t>& ad, 34 auto data_start = ad.begin() + position; 47 static void RemoveTrailingZeros(std::vector<uint8_t>& ad) { 50 size_t ad_len = ad.size(); 52 uint8_t len = ad[position]; 60 ad.erase(ad.begin() + position, ad.end()); 73 * Return true if this |ad| represent properly formatted advertising data. 75 static bool IsValid(const std::vector<uint8_t>& ad) { [all...] |
/tools/test/connectivity/acts/framework/tests/ |
acts_utils_test.py | 43 ad = MockAd() 44 ad.adb.return_state = BypassSetupWizardReturn.NO_COMPLICATIONS 45 self.assertTrue(utils.bypass_setup_wizard(ad, 0)) 46 self.assertFalse(ad.adb.root_adb_called) 49 ad = MockAd() 50 ad.adb.return_state = BypassSetupWizardReturn.UNRECOGNIZED_ERR 52 utils.bypass_setup_wizard(ad, 0) 53 self.assertFalse(ad.adb.root_adb_called) 56 ad = MockAd() 57 ad.adb.return_state = BypassSetupWizardReturn.ROOT_ADB_NO_COM [all...] |
Sl4aSanityTest.py | 42 ad = self.android_devices[0] 45 ad.terminate_all_sessions() 47 droid, ed = ad.get_droid() 51 ad = self.android_devices[0] 53 assert wifi_toggle_state(ad.droid, ad.ed, False) 54 assert wifi_toggle_state(ad.droid, ad.ed, True)
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
BtMetricsBaseTest.py | 31 self.ad = self.android_devices[0] 51 for ad in self.android_devices: 52 ad.metrics_path = os.path.join(ad.log_path, "BluetoothMetrics") 53 create_dir(ad.metrics_path) 54 ad.bluetooth_proto_module = \ 55 compile_import_proto(ad.metrics_path, self.bluetooth_proto_path) 56 if not ad.bluetooth_proto_module: 70 for ad in self.android_devices: 71 get_bluetooth_metrics(ad, ad.bluetooth_proto_module [all...] |
bt_metrics_utils.py | 17 def get_bluetooth_metrics(ad, bluetooth_proto_module): 22 ad - Android device 32 ad.adb.shell("/system/bin/dumpsys bluetooth_manager --proto-bin")
|
/tools/test/connectivity/acts/tests/google/net/ |
DataCostTest.py | 50 for ad in self.android_devices: 51 wutils.reset_wifi(ad) 52 ad.droid.telephonyToggleDataConnection(True) 53 wait_for_cell_data_connection(self.log, ad, True) 55 verify_http_connection(self.log, ad), 59 for ad in self.android_devices: 60 wutils.reset_wifi(ad) 61 ad.droid.telephonyToggleDataConnection(True) 65 def _get_total_data_usage_for_device(self, ad, conn_type, sub_id): 69 ad: Android device objec [all...] |
/tools/test/connectivity/acts/tests/sample/ |
SampleTest.py | 28 for ad in self.android_devices: 29 ad.droid.makeToast("Hello World.")
|
/external/boringssl/src/crypto/ |
ex_data.c | 168 int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int index, void *val) { 171 if (ad->sk == NULL) { 172 ad->sk = sk_void_new_null(); 173 if (ad->sk == NULL) { 179 n = sk_void_num(ad->sk); 183 if (!sk_void_push(ad->sk, NULL)) { 189 sk_void_set(ad->sk, index, val); 193 void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx) { 194 if (ad->sk == NULL || idx < 0 || (size_t)idx >= sk_void_num(ad->sk)) [all...] |