/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/wsgiref/ |
H A D | util.py | 29 def guess_scheme(environ): argument 32 if environ.get("HTTPS") in ('yes','on','1'): 37 def application_uri(environ): argument 39 url = environ['wsgi.url_scheme']+'://' 42 if environ.get('HTTP_HOST'): 43 url += environ['HTTP_HOST'] 45 url += environ['SERVER_NAME'] 47 if environ['wsgi.url_scheme'] == 'https': 48 if environ['SERVER_PORT'] != '443': 49 url += ':' + environ['SERVER_PORT'] [all …]
|
H A D | validate.py | 151 environ, start_response = args 153 check_environ(environ) 178 environ['wsgi.input'] = InputWrapper(environ['wsgi.input']) 179 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors']) 181 iterator = application(environ, start_response_wrapper) 298 def check_environ(environ): argument 299 assert_(type(environ) is dict, 301 % (type(environ), environ)) 307 assert_(key in environ, 311 assert_(key not in environ, [all …]
|
H A D | handlers.py | 42 environ = {} 44 # Take the basic environment from native-unicode os.environ. Attempt to 47 for k, v in os.environ.items(): 50 # On win32, the os.environ is natively Unicode. Different servers 53 software = os.environ.get('SERVER_SOFTWARE', '').lower() 66 # to the Unicode environ. No modification needed. 80 # the environ using stdio byte-oriented interfaces, ending up 85 # Recover bytes from unicode environ, using surrogate escapes 90 environ[k] = v 91 return environ [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/wsgiref/ |
D | util.py | 29 def guess_scheme(environ): argument 32 if environ.get("HTTPS") in ('yes','on','1'): 37 def application_uri(environ): argument 39 url = environ['wsgi.url_scheme']+'://' 42 if environ.get('HTTP_HOST'): 43 url += environ['HTTP_HOST'] 45 url += environ['SERVER_NAME'] 47 if environ['wsgi.url_scheme'] == 'https': 48 if environ['SERVER_PORT'] != '443': 49 url += ':' + environ['SERVER_PORT'] [all …]
|
D | validate.py | 151 environ, start_response = args 153 check_environ(environ) 178 environ['wsgi.input'] = InputWrapper(environ['wsgi.input']) 179 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors']) 181 iterator = application(environ, start_response_wrapper) 298 def check_environ(environ): argument 299 assert_(type(environ) is dict, 301 % (type(environ), environ)) 307 assert_(key in environ, 311 assert_(key not in environ, [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/wsgiref/ |
D | util.py | 29 def guess_scheme(environ): argument 32 if environ.get("HTTPS") in ('yes','on','1'): 37 def application_uri(environ): argument 39 url = environ['wsgi.url_scheme']+'://' 42 if environ.get('HTTP_HOST'): 43 url += environ['HTTP_HOST'] 45 url += environ['SERVER_NAME'] 47 if environ['wsgi.url_scheme'] == 'https': 48 if environ['SERVER_PORT'] != '443': 49 url += ':' + environ['SERVER_PORT'] [all …]
|
D | validate.py | 151 environ, start_response = args 153 check_environ(environ) 178 environ['wsgi.input'] = InputWrapper(environ['wsgi.input']) 179 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors']) 181 iterator = application(environ, start_response_wrapper) 298 def check_environ(environ): argument 299 assert_(type(environ) is dict, 301 % (type(environ), environ)) 307 assert_(key in environ, 311 assert_(key not in environ, [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/wsgiref/ |
D | util.py | 29 def guess_scheme(environ): argument 32 if environ.get("HTTPS") in ('yes','on','1'): 37 def application_uri(environ): argument 39 url = environ['wsgi.url_scheme']+'://' 42 if environ.get('HTTP_HOST'): 43 url += environ['HTTP_HOST'] 45 url += environ['SERVER_NAME'] 47 if environ['wsgi.url_scheme'] == 'https': 48 if environ['SERVER_PORT'] != '443': 49 url += ':' + environ['SERVER_PORT'] [all …]
|
D | validate.py | 151 environ, start_response = args 153 check_environ(environ) 178 environ['wsgi.input'] = InputWrapper(environ['wsgi.input']) 179 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors']) 181 iterator = application(environ, start_response_wrapper) 298 def check_environ(environ): argument 299 assert_(type(environ) is dict, 301 % (type(environ), environ)) 307 assert_(key in environ, 311 assert_(key not in environ, [all …]
|
D | handlers.py | 42 environ = {} 44 # Take the basic environment from native-unicode os.environ. Attempt to 47 for k, v in os.environ.items(): 50 # On win32, the os.environ is natively Unicode. Different servers 53 software = os.environ.get('SERVER_SOFTWARE', '').lower() 66 # to the Unicode environ. No modification needed. 80 # the environ using stdio byte-oriented interfaces, ending up 85 # Recover bytes from unicode environ, using surrogate escapes 90 environ[k] = v 91 return environ [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/wsgiref/ |
D | util.py | 29 def guess_scheme(environ): argument 32 if environ.get("HTTPS") in ('yes','on','1'): 37 def application_uri(environ): argument 39 url = environ['wsgi.url_scheme']+'://' 42 if environ.get('HTTP_HOST'): 43 url += environ['HTTP_HOST'] 45 url += environ['SERVER_NAME'] 47 if environ['wsgi.url_scheme'] == 'https': 48 if environ['SERVER_PORT'] != '443': 49 url += ':' + environ['SERVER_PORT'] [all …]
|
D | validate.py | 151 environ, start_response = args 153 check_environ(environ) 178 environ['wsgi.input'] = InputWrapper(environ['wsgi.input']) 179 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors']) 181 iterator = application(environ, start_response_wrapper) 298 def check_environ(environ): argument 299 assert_(type(environ) is dict, 301 % (type(environ), environ)) 307 assert_(key in environ, 311 assert_(key not in environ, [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/wsgiref/ |
D | util.py | 29 def guess_scheme(environ): argument 32 if environ.get("HTTPS") in ('yes','on','1'): 37 def application_uri(environ): argument 39 url = environ['wsgi.url_scheme']+'://' 42 if environ.get('HTTP_HOST'): 43 url += environ['HTTP_HOST'] 45 url += environ['SERVER_NAME'] 47 if environ['wsgi.url_scheme'] == 'https': 48 if environ['SERVER_PORT'] != '443': 49 url += ':' + environ['SERVER_PORT'] [all …]
|
D | validate.py | 151 environ, start_response = args 153 check_environ(environ) 178 environ['wsgi.input'] = InputWrapper(environ['wsgi.input']) 179 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors']) 181 iterator = application(environ, start_response_wrapper) 298 def check_environ(environ): argument 299 assert_(type(environ) is dict, 301 % (type(environ), environ)) 307 assert_(key in environ, 311 assert_(key not in environ, [all …]
|
D | handlers.py | 42 environ = {} 44 # Take the basic environment from native-unicode os.environ. Attempt to 47 for k, v in os.environ.items(): 50 # On win32, the os.environ is natively Unicode. Different servers 53 software = os.environ.get('SERVER_SOFTWARE', '').lower() 66 # to the Unicode environ. No modification needed. 80 # the environ using stdio byte-oriented interfaces, ending up 85 # Recover bytes from unicode environ, using surrogate escapes 90 environ[k] = v 91 return environ [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/tools/run_tests/artifacts/ |
D | artifact_targets.py | 31 environ={}, argument 38 environ = environ.copy() 39 environ['ARTIFACTS_OUT'] = 'artifacts/%s' % name 42 for k, v in list(environ.items()): 55 environ=docker_env, 66 environ={}, argument 75 environ = environ.copy() 77 environ['WORKSPACE_NAME'] = 'workspace_%s' % name 78 environ['ARTIFACTS_OUT'] = os.path.join('..', 'artifacts', name) 82 environ['ARTIFACTS_OUT'] = os.path.join('artifacts', name) [all …]
|
/aosp_15_r20/external/grpc-grpc/tools/run_tests/artifacts/ |
H A D | artifact_targets.py | 32 environ={}, argument 40 environ = environ.copy() 41 environ["ARTIFACTS_OUT"] = "artifacts/%s" % name 44 for k, v in list(environ.items()): 57 environ=docker_env, 70 environ={}, argument 80 environ = environ.copy() 82 environ["WORKSPACE_NAME"] = "workspace_%s" % name 83 environ["ARTIFACTS_OUT"] = os.path.join("..", "artifacts", name) 89 environ["ARTIFACTS_OUT"] = os.path.join("artifacts", name) [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/wsgiref/ |
D | util.py | 35 def guess_scheme(environ): argument 38 if environ.get("HTTPS") in ('yes','on','1'): 43 def application_uri(environ): argument 45 url = environ['wsgi.url_scheme']+'://' 48 if environ.get('HTTP_HOST'): 49 url += environ['HTTP_HOST'] 51 url += environ['SERVER_NAME'] 53 if environ['wsgi.url_scheme'] == 'https': 54 if environ['SERVER_PORT'] != '443': 55 url += ':' + environ['SERVER_PORT'] [all …]
|
D | validate.py | 146 environ, start_response = args 148 check_environ(environ) 173 environ['wsgi.input'] = InputWrapper(environ['wsgi.input']) 174 environ['wsgi.errors'] = ErrorWrapper(environ['wsgi.errors']) 176 iterator = application(environ, start_response_wrapper) 290 def check_environ(environ): argument 291 assert_(type(environ) is DictType, 293 % (type(environ), environ)) 299 assert_(key in environ, 303 assert_(key not in environ, [all …]
|
/aosp_15_r20/external/pytorch/torch/_inductor/ |
H A D | config.py | 13 if os.environ.get("TORCHINDUCTOR_FX_GRAPH_REMOTE_CACHE") == "1": 15 if os.environ.get("TORCHINDUCTOR_FX_GRAPH_REMOTE_CACHE") == "0": 21 if os.environ.get("TORCHINDUCTOR_AUTOTUNE_REMOTE_CACHE") == "1": 23 if os.environ.get("TORCHINDUCTOR_AUTOTUNE_REMOTE_CACHE") == "0": 30 os.environ.get("TORCHDYNAMO_AUTO_FUNCTIONALIZED_V2", "0") == "1" 44 os.environ.get("TORCHINDUCTOR_FX_GRAPH_CACHE", "0" if is_fbcode() else "1") == "1" 63 force_disable_caches = os.environ.get("TORCHINDUCTOR_FORCE_DISABLE_CACHES") == "1" 76 cpp_wrapper = os.environ.get("TORCHINDUCTOR_CPP_WRAPPER", "0") == "1" 80 os.environ.get("TORCHINDUCTOR_ABI_COMPATIBLE", "1" if is_fbcode() else "0") == "1" 83 c_shim_version = os.environ.get("TORCHINDUCTOR_C_SHIM_VERSION", "2") [all …]
|
/aosp_15_r20/external/toybox/lib/ |
H A D | env.c | 6 extern char **environ; 16 for (ev = environ; *ev; ev++) bytes += sizeof(char *) + strlen(*ev) + 1; in environ_bytes() 28 for (i = 0; environ[i]; i++) if (i>=toys.envc) free(environ[i]); in xclearenv() 29 } else environ = xmalloc(256*sizeof(char *)); in xclearenv() 31 *environ = 0; in xclearenv() 47 while (environ[toys.envc++]); in xsetenv() 48 memcpy(new = xmalloc(((toys.envc|31)+1)*sizeof(char *)), environ, in xsetenv() 50 environ = (void *)new; in xsetenv() 62 for (i = 0; environ[i]; i++) { in xsetenv() 64 if (!smemcmp(name, environ[i], len) && environ[i][len]=='=') { in xsetenv() [all …]
|
/aosp_15_r20/build/soong/ui/build/ |
H A D | config.go | 74 environ *Environment member 213 config.environ.Set(k, v) 224 environ: OsEnvironment(), 254 ret.environ.Set("SOONG_GENERATES_NINJA_HINT", "always") 266 ret.environ.Set("SOONG_GENERATES_NINJA_HINT", "depend") 270 if outDir, ok := ret.environ.Get("OUT_DIR"); ok { 271 ret.environ.Set("OUT_DIR", ret.sandboxPath(wd, filepath.Clean(outDir))) 274 if baseDir, ok := ret.environ.Get("OUT_DIR_COMMON_BASE"); ok { 277 ret.environ.Set("OUT_DIR", ret.sandboxPath(wd, outDir)) 291 ret.environ.Set("USE_RBE", "false") [all …]
|
/aosp_15_r20/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | setenv.c | 35 static char **lastenv; /* last value of environ */ 58 environ[offset++] = str; in putenv() 61 for (P = &environ[offset];; ++P) in putenv() 69 if (environ != NULL) { in putenv() 70 for (P = environ; *P != NULL; P++) in putenv() 72 cnt = P - environ; in putenv() 77 if (lastenv != environ && environ != NULL) in putenv() 78 memcpy(P, environ, cnt * sizeof(char *)); in putenv() 79 lastenv = environ = P; in putenv() 80 environ[cnt] = str; in putenv() [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/ |
D | cgi.py | 124 def parse(fp=None, environ=os.environ, keep_blank_values=0, strict_parsing=0): argument 131 environ : environment dictionary; default: os.environ 146 if not 'REQUEST_METHOD' in environ: 147 environ['REQUEST_METHOD'] = 'GET' # For testing stand-alone 148 if environ['REQUEST_METHOD'] == 'POST': 149 ctype, pdict = parse_header(environ['CONTENT_TYPE']) 153 clength = int(environ['CONTENT_LENGTH']) 159 if 'QUERY_STRING' in environ: 161 qs = qs + environ['QUERY_STRING'] 165 environ['QUERY_STRING'] = qs # XXX Shouldn't, really [all …]
|
/aosp_15_r20/test/dittosuite/src/ |
H A D | multithreading_utils.cpp | 128 * Create a copy of environ and return the new argv[0] size 139 * | environ[0] (pointer) 140 * | environ[1] (pointer) 149 * | *environ[0] (string) 150 * | *environ[1] (string) 153 * After this function is call, all the *environ[*] strings will be moved in 154 * dynamic memory, and the old environ strings space in the stack can be used 158 // Count the number of items in environ in move_environ() 160 if (environ) { in move_environ() 161 while (environ[++env_last_id]) in move_environ() [all …]
|