Home
last modified time | relevance | path

Searched refs:_to_bytes (Results 1 – 15 of 15) sorted by relevance

/external/python/oauth2client/oauth2client/
D_openssl_crypt.py45 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.py48 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.py45 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.py88 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')
Dtransport.py21 from oauth2client._helpers import _to_bytes
124 clean[_to_bytes(k)] = _to_bytes(v)
Dcrypt.py224 jwt = _helpers._to_bytes(jwt)
/external/python/oauth2client/tests/contrib/
Dtest_xsrfutil.py64 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 …]
Dtest_devshell.py104 msg = _helpers._to_bytes(
179 request_message = _helpers._to_bytes(
/external/python/oauth2client/oauth2client/contrib/
Dxsrfutil.py52 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')
Ddevshell.py83 sock.sendall(_helpers._to_bytes(msg, encoding='utf-8'))
Dmultiprocess_file_storage.py181 _helpers._to_bytes(credential_json)))
/external/python/oauth2client/tests/
Dtest__helpers.py53 self.assertEqual(_helpers._to_bytes(value), value)
58 self.assertEqual(_helpers._to_bytes(value), encoded_value)
63 _helpers._to_bytes(value)
Dtest_client.py1920 [({'status': '200'}, _helpers._to_bytes(payload))])
/external/tensorflow/tensorflow/python/compiler/tensorrt/
Dtrt_convert.py47 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)
Dtrt_convert_test.py95 trt_convert._to_bytes("INT8"),