/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 | 281 ad, 295 ad: Android device object. 305 return phone_setup_iwlan_for_subscription(log, ad, 306 get_outgoing_voice_sub_id(ad), 312 ad, 327 ad: Android device object. 338 toggle_airplane_mode(log, ad, is_airplane_mode, strict_checking=False) 341 if wfc_mode != WFC_MODE_DISABLED and not ad.droid.imsIsWfcEnabledByPlatform( 343 ad.log.error("WFC is not enabled on this device by checking " 348 if not ensure_wifi_connected(log, ad, wifi_ssid, wifi_pwd) [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 | 61 for ad in self.android_devices: 62 if getattr(ad, "qxdm_always_on", False): 64 ad.log.info("qxdm_always_on is set in config file") 65 mask = getattr(ad, "qxdm_mask", "Radio-general.cfg") 66 if not check_qxdm_logger_always_on(ad, mask): 67 ad.log.info("qxdm always on is not set, turn it on") 68 set_qxdm_logger_always_on(ad, mask) 70 ad.log.info("qxdm always on is already set") 76 if hasattr(ad, 'puk'): 77 if not hasattr(ad, 'puk_pin') [all...] |
tel_test_utils.py | 164 def get_phone_number_by_adb(ad): 166 ad.adb.shell("service call iphonesubinfo 13")) 169 def get_iccid_by_adb(ad): 170 return ad.adb.shell("service call iphonesubinfo 11") 173 def get_operator_by_adb(ad): 174 return ad.adb.getprop("gsm.sim.operator.alpha") 177 def get_sub_id_by_adb(ad): 178 return ad.adb.shell("service call iphonesubinfo 5") 181 def setup_droid_properties_by_adb(log, ad, sim_filename=None): 184 if hasattr(ad, 'cfg') [all...] |
/bootable/recovery/minadbd/ |
fuse_adb_provider.cpp | 28 adb_data* ad = reinterpret_cast<adb_data*>(data); local 30 if (!WriteFdFmt(ad->sfd, "%08u", block)) { 35 if (!ReadFdExactly(ad->sfd, buffer, fetch_size)) { 44 adb_data* ad = reinterpret_cast<adb_data*>(data); local 45 WriteFdExactly(ad->sfd, "DONEDONE"); 49 adb_data ad; local 50 ad.sfd = sfd; 51 ad.file_size = file_size; 52 ad.block_size = block_size; 58 return run_fuse_sideload(&vtab, &ad, file_size, block_size) [all...] |
/system/bt/stack/include/ |
advertise_data_parser.h | 26 * Return true if this |ad| represent properly formatted advertising data. 28 static bool IsValid(const std::vector<uint8_t>& ad) { 31 size_t ad_len = ad.size(); 33 uint8_t len = ad[position]; 52 * This function returns a pointer inside the |ad| array of length |ad_len| 55 static const uint8_t* GetFieldByType(const uint8_t* ad, size_t ad_len, 60 uint8_t len = ad[position]; 65 uint8_t adv_type = ad[position + 1]; 70 return ad + position + 2; 84 static const uint8_t* GetFieldByType(std::vector<uint8_t> const& ad, [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/ |
TelLivePostflightTest.py | 28 for ad in self.android_devices: 29 post_crash = ad.check_crash_report() 30 pre_crash = getattr(ad, "crash_report_preflight", []) 33 msg += "%s find new crash reports %s" % (ad.serial, crash_diff) 34 ad.pull_files(crash_diff) 35 ad.log.error("Find new crash reports %s", crash_diff)
|
TelWifiDataTest.py | 90 ad.log.error("%s connect WiFI failed") 145 def _wifi_cell_irat_task(self, ad, irat_wait_time=60): 151 if (not wait_for_wifi_data_connection(self.log, ad, True, 153 not verify_http_connection(self.log, ad)): 154 ad.log.error("Data not on WiFi") 157 ad.log.info("Triggering WiFi to Cellular IRAT") 159 if (not wait_for_cell_data_connection(self.log, ad, True, 161 not verify_http_connection(self.log, ad)): 162 ad.log.error("Data not on Cell") 194 ad = self.android_devices[0 [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
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") 35 ad.adb.shell("/system/bin/dumpsys bluetooth_manager --proto-java-bin")
|
BtMetricsBaseTest.py | 49 for ad in self.android_devices: 50 ad.metrics_path = os.path.join(ad.log_path, "BluetoothMetrics") 51 create_dir(ad.metrics_path) 52 ad.bluetooth_proto_module = \ 53 compile_import_proto(ad.metrics_path, self.bluetooth_proto_path) 54 if not ad.bluetooth_proto_module: 68 for ad in self.android_devices: 69 get_bluetooth_metrics(ad, ad.bluetooth_proto_module [all...] |
BtFunhausBaseTest.py | 53 for ad in self.android_devices: 54 sync_device_time(ad) 56 ad.adb.shell("setprop persist.bluetooth.btsnoopenable false") 57 if not bypass_setup_wizard(ad): 89 for ad in self.android_devices: 90 serial = ad.serial 101 if (not self._push_config_to_android_device(ad, bt_config_map, 106 if not self._add_music_to_android_device(ad): 111 if not bluetooth_enabled_check(ad): 120 ad, bt_config_map, serial) [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
wifi_test_utils.py | 544 def wifi_toggle_state(ad, new_state=None, assert_on_fail=True): 548 ad: An AndroidDevice object. 558 _wifi_toggle_state, assert_on_fail, ad, new_state=new_state) 561 def _wifi_toggle_state(ad, new_state=None): 567 ad: An AndroidDevice object. 572 new_state = not ad.droid.wifiCheckState() 573 elif new_state == ad.droid.wifiCheckState(): 577 ad.droid.wifiStartTrackingStateChange() 578 ad.log.info("Setting Wi-Fi state to %s.", new_state) 580 ad.droid.wifiToggleState(new_state [all...] |
/tools/test/connectivity/acts/framework/tests/ |
acts_android_device_test.py | 55 ad = mock.MagicMock(name="AndroidDevice", serial=i, h_port=None) 56 ads.append(ad) 65 return [ad.serial for ad in get_mock_ads(5)] 182 ad = android_device.get_device(ads, serial=expected_serial) 183 self.assertEqual(ad.serial, expected_serial) 190 ad = android_device.get_device( 192 self.assertEqual(ad.serial, expected_serial) 193 self.assertEqual(ad.h_port, expected_h_port) 201 ad = android_device.get_device(ads, serial=len(ads) [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/tests/sample/ |
SampleTest.py | 29 for ad in self.android_devices: 30 ad.droid.makeToast("Hello World.")
|
/tools/test/connectivity/acts/framework/acts/ |
utils.py | 354 for ad in android_devices: 355 msg = "SL4A connection not established properly on %s." % ad.serial 356 assert ad.droid, msg 451 def sync_device_time(ad): 457 ad: The android device to sync time on. 459 droid = ad.droid 541 def force_airplane_mode(ad, new_state, timeout_value=60): 545 ad: android device object. 558 def wait_for_device_with_timeout(ad): 559 ad.adb.wait_for_device( [all...] |
/external/boringssl/src/crypto/ |
ex_data.c | 170 int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int index, void *val) { 173 if (ad->sk == NULL) { 174 ad->sk = sk_void_new_null(); 175 if (ad->sk == NULL) { 181 n = sk_void_num(ad->sk); 185 if (!sk_void_push(ad->sk, NULL)) { 191 sk_void_set(ad->sk, index, val); 195 void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx) { 196 if (ad->sk == NULL || idx < 0 || (size_t)idx >= sk_void_num(ad->sk)) [all...] |
/tools/test/connectivity/acts/tests/google/ble/api/ |
GattApiTest.py | 29 self.ad = self.android_devices[0] 63 gatt_server_cb = self.ad.droid.gattServerCreateGattServerCallback() 64 self.ad.droid.gattServerOpenGattServer(gatt_server_cb) 89 gatt_server_cb = self.ad.droid.gattServerCreateGattServerCallback() 90 self.ad.droid.gattServerOpenGattServer(gatt_server_cb) 91 self.ad.droid.gattServerOpenGattServer(gatt_server_cb) 116 self.ad.droid.gattServerOpenGattServer(invalid_callback_index)
|
/external/autotest/site_utils/ |
automated_deploy_unittest.py | 14 from autotest_lib.site_utils import automated_deploy as ad 38 ad.update_prod_branch('test', 'test_dir', '123') 45 ad.update_prod_branch('test', 'test_dir', None) 53 self.assertEqual(ad.update_prod_branch('test', 'test_dir', None), 58 with self.assertRaises(ad.AutoDeployException): 59 ad.update_prod_branch('test', 'test_dir', None) 76 actual_return = ad.get_pushed_commits(repo, 'test', '123..456') 86 actual_return = ad.get_pushed_commits(repo, 'test', '123..456')
|
/toolchain/binutils/binutils-2.25/ld/testsuite/ld-powerpc/ |
vle-reloc-3.d | 6 .*: 1c ad 80 08 e_add16i r5,r13,-32760
|
/tools/test/connectivity/acts/tests/google/tel/lab/ |
TelLabDataRoamingTest.py | 44 self.ad = self.android_devices[0] 45 self.ad.sim_card = getattr(self.ad, "sim_card", None) 61 toggle_airplane_mode(self.log, self.ad, True) 62 self.ad.adb.shell("setprop net.lte.ims.volte.provisioned 1", 69 toggle_airplane_mode(self.log, self.ad, True) 79 self.anritsu, self.user_params, self.ad.sim_card) 80 set_usim_parameters(self.anritsu, self.ad.sim_card) 89 self.ad.droid.telephonyToggleDataConnection(True) 92 self.ad, [all...] |