Searched refs:_to_bytes (Results 1 – 15 of 15) sorted by relevance
/external/python/oauth2client/oauth2client/ |
D | _openssl_crypt.py | 45 message = _helpers._to_bytes(message, encoding='utf-8') 46 signature = _helpers._to_bytes(signature, encoding='utf-8') 68 key_pem = _helpers._to_bytes(key_pem) 96 message = _helpers._to_bytes(message, encoding='utf-8') 113 key = _helpers._to_bytes(key) 118 password = _helpers._to_bytes(password, encoding='utf-8') 133 private_key_password = _helpers._to_bytes(private_key_password)
|
D | _pycrypto_crypt.py | 48 message = _helpers._to_bytes(message, encoding='utf-8') 65 key_pem = _helpers._to_bytes(key_pem) 98 message = _helpers._to_bytes(message, encoding='utf-8') 116 parsed_pem_key = _helpers._parse_pem_key(_helpers._to_bytes(key))
|
D | _helpers.py | 45 def _to_bytes(value, encoding='ascii'): function 97 raw_bytes = _to_bytes(raw_bytes, encoding='utf-8') 103 b64string = _to_bytes(b64string)
|
D | _pure_python_crypt.py | 88 message = _helpers._to_bytes(message, encoding='utf-8') 113 key_pem = _helpers._to_bytes(key_pem) 147 message = _helpers._to_bytes(message, encoding='utf-8')
|
D | transport.py | 21 from oauth2client._helpers import _to_bytes 124 clean[_to_bytes(k)] = _to_bytes(v)
|
D | crypt.py | 224 jwt = _helpers._to_bytes(jwt)
|
/external/python/oauth2client/tests/contrib/ |
D | test_xsrfutil.py | 64 mock.call.update(_helpers._to_bytes(str(TEST_USER_ID_1))), 68 mock.call.update(_helpers._to_bytes(str(TEST_TIME))), 73 _helpers._to_bytes(str(TEST_TIME))) 98 mock.call.update(_helpers._to_bytes(str(TEST_USER_ID_1))), 102 mock.call.update(_helpers._to_bytes(str(int(curr_time)))), 108 _helpers._to_bytes(str(int(curr_time)))) 143 token = base64.b64encode(_helpers._to_bytes(str(token_time))) 154 token = base64.b64encode(_helpers._to_bytes(str(token_time))) 166 token = base64.b64encode(_helpers._to_bytes(str(token_time))) 187 token = base64.b64encode(_helpers._to_bytes(str(token_time))) [all …]
|
D | test_devshell.py | 104 msg = _helpers._to_bytes( 179 request_message = _helpers._to_bytes(
|
/external/python/oauth2client/oauth2client/contrib/ |
D | xsrfutil.py | 52 digester = hmac.new(_helpers._to_bytes(key, encoding='utf-8')) 53 digester.update(_helpers._to_bytes(str(user_id), encoding='utf-8')) 55 digester.update(_helpers._to_bytes(action_id, encoding='utf-8')) 57 when = _helpers._to_bytes(str(when or int(time.time())), encoding='utf-8')
|
D | devshell.py | 83 sock.sendall(_helpers._to_bytes(msg, encoding='utf-8'))
|
D | multiprocess_file_storage.py | 181 _helpers._to_bytes(credential_json)))
|
/external/python/oauth2client/tests/ |
D | test__helpers.py | 53 self.assertEqual(_helpers._to_bytes(value), value) 58 self.assertEqual(_helpers._to_bytes(value), encoded_value) 63 _helpers._to_bytes(value)
|
D | test_client.py | 1920 [({'status': '200'}, _helpers._to_bytes(payload))])
|
/external/tensorflow/tensorflow/python/compiler/tensorrt/ |
D | trt_convert.py | 47 def _to_bytes(s): function 202 blacklist.append(_to_bytes(i.name)) 204 blacklist.append(_to_bytes(i)) 548 optimizer.parameter_map["precision_mode"].s = _to_bytes(precision_mode)
|
D | trt_convert_test.py | 95 trt_convert._to_bytes("INT8"),
|