Home
last modified time | relevance | path

Searched refs:_helpers (Results 1 – 25 of 31) sorted by relevance

12

/external/python/google-api-python-client/tests/
Dtest__helpers.py24 from googleapiclient import _helpers
30 _helpers.positional_parameters_enforcement = (
31 _helpers.POSITIONAL_EXCEPTION)
34 @_helpers.positional(1)
44 @_helpers.positional(0)
54 @_helpers.positional
65 _helpers.positional_parameters_enforcement = (
66 _helpers.POSITIONAL_WARNING)
68 @_helpers.positional(1)
77 _helpers.positional_parameters_enforcement = _helpers.POSITIONAL_IGNORE
[all …]
D__init__.py19 from googleapiclient import _helpers as util
/external/python/oauth2client/tests/
Dtest__helpers.py18 from oauth2client import _helpers
25 result = _helpers._parse_pem_key(test_string)
30 result = _helpers._parse_pem_key(test_string)
40 result = _helpers._json_encode(data)
45 result = _helpers._json_encode(data)
53 self.assertEqual(_helpers._to_bytes(value), value)
58 self.assertEqual(_helpers._to_bytes(value), encoded_value)
63 _helpers._to_bytes(value)
70 self.assertEqual(_helpers._from_bytes(value), value)
75 self.assertEqual(_helpers._from_bytes(value), decoded_value)
[all …]
Dtest__pure_python_crypt.py25 from oauth2client import _helpers
85 public_key = _helpers._from_bytes(self._load_public_key_bytes())
99 public_cert = _helpers._from_bytes(self._load_public_cert_bytes())
143 key_bytes = _helpers._from_bytes(self._load_pkcs1_key_bytes())
157 six.StringIO(_helpers._from_bytes(key_bytes)),
170 key_bytes = _helpers._from_bytes(self._load_pkcs8_key_bytes())
Dtest_clientsecrets.py25 from oauth2client import _helpers
201 src = _helpers._from_bytes(src)
Dtest_jwt.py24 from oauth2client import _helpers
166 _helpers._urlsafe_b64encode('{"a":"b"}'),
Dtest_crypt.py21 from oauth2client import _helpers
63 pkcs12_key_as_pem = _helpers._parse_pem_key(pkcs12_key_as_pem)
/external/python/oauth2client/oauth2client/
D_openssl_crypt.py18 from oauth2client import _helpers
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)
114 parsed_pem_key = _helpers._parse_pem_key(key)
118 password = _helpers._to_bytes(password, encoding='utf-8')
133 private_key_password = _helpers._to_bytes(private_key_password)
Dcrypt.py22 from oauth2client import _helpers
92 _helpers._urlsafe_b64encode(_helpers._json_encode(header)),
93 _helpers._urlsafe_b64encode(_helpers._json_encode(payload)),
98 segments.append(_helpers._urlsafe_b64encode(signature))
224 jwt = _helpers._to_bytes(jwt)
232 signature = _helpers._urlsafe_b64decode(signature)
235 payload_bytes = _helpers._urlsafe_b64decode(payload)
237 payload_dict = json.loads(_helpers._from_bytes(payload_bytes))
D_pycrypto_crypt.py21 from oauth2client import _helpers
48 message = _helpers._to_bytes(message, encoding='utf-8')
65 key_pem = _helpers._to_bytes(key_pem)
67 certDer = _helpers._urlsafe_b64decode(b''.join(pemLines[1:-1]))
98 message = _helpers._to_bytes(message, encoding='utf-8')
116 parsed_pem_key = _helpers._parse_pem_key(_helpers._to_bytes(key))
D_pure_python_crypt.py29 from oauth2client import _helpers
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')
166 key = _helpers._from_bytes(key) # pem expects str in Py3
Dclient.py36 from oauth2client import _helpers
300 json_data_as_unicode = _helpers._from_bytes(json_data)
625 data = json.loads(_helpers._from_bytes(json_data))
798 content = _helpers._from_bytes(content)
869 d = json.loads(_helpers._from_bytes(content))
908 content = _helpers._from_bytes(content)
974 data = json.loads(_helpers._from_bytes(json_data))
1142 data = json.loads(_helpers._from_bytes(json_data))
1577 certs = json.loads(_helpers._from_bytes(content))
1604 _helpers._from_bytes(_helpers._urlsafe_b64decode(segments[1])))
[all …]
Dservice_account.py24 from oauth2client import _helpers
437 json_data = json.loads(_helpers._from_bytes(json_data))
Dtransport.py21 from oauth2client._helpers import _to_bytes
/external/python/oauth2client/tests/contrib/
Dtest_xsrfutil.py22 from oauth2client import _helpers
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)))
[all …]
Dtest_devshell.py26 from oauth2client import _helpers
104 msg = _helpers._to_bytes(
159 resp_buffer += _helpers._from_bytes(
179 request_message = _helpers._to_bytes(
/external/python/oauth2client/oauth2client/contrib/
Dxsrfutil.py22 from oauth2client import _helpers
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_metadata.py27 from oauth2client import _helpers
65 decoded = _helpers._from_bytes(content)
Dmultiprocess_file_storage.py87 from oauth2client import _helpers
180 encoded_credential = _helpers._from_bytes(base64.b64encode(
181 _helpers._to_bytes(credential_json)))
Ddevshell.py22 from oauth2client import _helpers
83 sock.sendall(_helpers._to_bytes(msg, encoding='utf-8'))
/external/libxcam/modules/ocl/
Dcv_wiener_filter.cpp30 _helpers = new CVImageProcessHelper (); in CVWienerFilter()
39 _helpers->compute_dft (blurred_image, y_ft); in wiener_filter()
46 _helpers->compute_dft (padded, padded_ft); in wiener_filter()
68 _helpers->compute_idft (unknown_ft, temp_unknown); in wiener_filter()
Dcv_wiener_filter.h44 SmartPtr<CVImageProcessHelper> _helpers; variable
/external/python/google-api-python-client/googleapiclient/
Derrors.py26 from googleapiclient import _helpers as util
Dchannel.py78 from googleapiclient import _helpers as util
/external/python/oauth2client/tests/contrib/django_util/
Dtest_django_models.py27 from oauth2client._helpers import _from_bytes

12