Home
last modified time | relevance | path

Searched refs:api (Results 1 - 25 of 642) sorted by relevance

12345678910>>...26

/third_party/skia/infra/bots/recipes/
H A Dskpbench.py31 def _run(api, title, *cmd, **kwargs):
32 with api.context(cwd=api.path['start_dir'].join('skia')):
33 return api.run(api.step, title, cmd=list(cmd), **kwargs)
36 def _adb(api, title, *cmd, **kwargs):
39 return _run(api, title, ADB_BINARY, *cmd, **kwargs)
42 def skpbench_steps(api):
44 is_vulkan = 'Vulkan' in api.vars.builder_name
45 is_metal = 'Metal' in api
[all...]
H A Dperf_skottietrace.py37 def perf_steps(api):
39 api.flavor.create_clean_device_dir(
40 api.flavor.device_dirs.dm_dir)
42 lottie_files = api.file.listdir(
43 'list lottie files', api.flavor.host_dirs.lotties_dir,
49 lottie_filename = api.path.basename(lottie_file)
53 trace_output_path = api.flavor.device_path_join(
54 api.flavor.device_dirs.dm_dir, '%s.json' % (idx + 1))
58 '--resourcePath', api.flavor.device_dirs.resource_dir,
59 '--lotties', api
[all...]
H A Dperf_skottiewasm_lottieweb.py84 def RunSteps(api):
85 api.vars.setup()
86 api.flavor.setup(None)
87 checkout_root = api.path['start_dir']
88 buildername = api.properties['buildername']
89 node_path = api.path['start_dir'].join('node', 'node', 'bin', 'node')
90 lottie_files = api.file.listdir(
91 'list lottie files', api.flavor.host_dirs.lotties_dir,
99 canvaskit_js_path = api.vars.build_dir.join('canvaskit.js')
100 canvaskit_wasm_path = api
[all...]
H A Dtest.py31 def test_steps(api):
33 do_upload = api.properties.get('do_upload') == 'true'
34 images = api.properties.get('images') == 'true'
35 lotties = api.properties.get('lotties') == 'true'
36 resources = api.properties.get('resources') == 'true'
37 skps = api.properties.get('skps') == 'true'
38 svgs = api.properties.get('svgs') == 'true'
40 api.flavor.install(
50 host_dm_dir = str(api.flavor.host_dirs.dm_dir)
51 api
[all...]
H A Dperf.py31 def perf_steps(api):
33 do_upload = api.properties.get('do_upload') == 'true'
34 images = api.properties.get('images') == 'true'
35 resources = api.properties.get('resources') == 'true'
36 skps = api.properties.get('skps') == 'true'
37 svgs = api.properties.get('svgs') == 'true'
38 texttraces = api.properties.get('texttraces') == 'true'
40 api.flavor.install(
49 api.flavor.create_clean_device_dir(
50 api
[all...]
H A Dcompute_buildstats.py35 def RunSteps(api):
36 api.vars.setup()
38 checkout_root = api.checkout.default_checkout_root
39 api.checkout.bot_update(checkout_root=checkout_root)
41 out_dir = api.vars.swarming_out_dir
43 bin_dir = api.vars.build_dir
45 api.file.ensure_directory('mkdirs out_dir', out_dir, mode=0o777)
48 with api.context(cwd=bin_dir):
49 files = api.file.glob_paths(
56 analyze_wasm_file(api, checkout_roo
[all...]
H A Dcheck_generated_files.py26 def RunSteps(api):
28 api.vars.setup()
29 checkout_root = api.checkout.default_checkout_root
30 api.checkout.bot_update(checkout_root=checkout_root)
31 api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
33 cwd = api.path['checkout']
35 with api.context(cwd=cwd):
38 diff1 = api.run(
39 api
[all...]
H A Dupload_dm_results.py29 def RunSteps(api):
30 api.vars.setup()
31 revision = api.properties['revision']
33 results_dir = api.path['start_dir'].join('test')
37 image_dest_path = 'gs://%s/dm-images-v1' % api.properties['gs_bucket']
39 files_to_upload = api.file.glob_paths(
47 api.gsutil.cp('%s images' % ext, results_dir.join('*%s' % ext),
51 now = api.time.utcnow()
59 api.vars.builder_name,
63 if api
[all...]
H A Dperf_pathkit.py28 def RunSteps(api):
29 api.vars.setup()
30 checkout_root = api.path['start_dir']
31 out_dir = api.vars.swarming_out_dir
34 api.file.ensure_directory('mkdirs out_dir', out_dir, mode=0o777)
40 if 'asmjs' in api.vars.builder_name:
44 base_dir = api.vars.build_dir
46 if 'asmjs' in api.vars.builder_name:
62 if 'asmjs' in api.vars.builder_name:
66 '--builder', api
[all...]
H A Dsync_and_compile.py26 def RunSteps(api):
27 api.vars.setup()
31 checkout_root = api.checkout.default_checkout_root
36 if 'NoDEPS' in api.properties['buildername']:
38 checkout_root = api.path['start_dir']
39 if 'CommandBuffer' in api.vars.builder_name:
41 if 'Flutter' in api.vars.builder_name:
44 if 'Android' in api.vars.builder_name:
48 api.checkout.bot_update(
54 api
[all...]
H A Dtest_lottie_web.py29 def RunSteps(api):
30 api.vars.setup()
31 api.flavor.setup("dm")
32 checkout_root = api.path['start_dir']
33 out_dir = api.vars.swarming_out_dir
34 lottie_files_src = api.vars.workdir.join('lottie-samples')
42 api.file.ensure_directory('mkdirs out_dir', out_dir, mode=0o777)
49 api.file.rmtree('remove previous lottie files', lottie_files_dir)
50 api.file.copytree('copy lottie files', lottie_files_src, lottie_files_dir)
62 '--builder', api
[all...]
H A Dtest_pathkit.py30 def RunSteps(api):
31 api.vars.setup()
32 api.flavor.setup("dm")
33 checkout_root = api.path['start_dir']
34 out_dir = api.vars.swarming_out_dir
40 if 'asmjs' in api.vars.builder_name:
44 base_dir = api.vars.build_dir
46 if 'asmjs' in api.vars.builder_name:
49 if 'Debug' in api.vars.builder_name:
66 if 'asmjs' in api
[all...]
H A Dinfra.py20 def git_init(api, repo_root, env):
21 with api.context(cwd=repo_root, env=env):
23 api.step('git init', cmd=['git', 'init'])
24 api.step('git add .', cmd=['git', 'add', '.'])
25 api.step('git commit', cmd=['git', 'commit', '-a', '-m', 'initial commit'])
28 def RunSteps(api):
29 api.vars.setup()
32 repo_name = api.properties['repository'].split('/')[-1]
35 repo_root = api.path['start_dir'].join(repo_name)
40 env.update(api
[all...]
H A Dcompile.py26 def RunSteps(api):
27 api.vars.setup()
29 checkout_root = api.path['start_dir']
30 out_dir = api.vars.cache_dir.join(
31 'work', 'skia', 'out', api.vars.builder_name, api.vars.configuration)
34 api.build(checkout_root=checkout_root, out_dir=out_dir)
37 dst = api.vars.swarming_out_dir
38 api.build.copy_build_products(out_dir=out_dir, dst=dst)
40 if 'Win' in api
[all...]
H A Dupload_nano_results.py21 def RunSteps(api):
23 api.vars.setup()
25 now = api.time.utcnow()
26 src_path = api.path['start_dir'].join('perf')
27 with api.context(cwd=src_path):
28 results = api.file.glob_paths(
37 basename = api.path.basename(src)
41 api.vars.builder_name))
43 if api.vars.is_trybot:
45 str(api
[all...]
/third_party/skia/infra/bots/recipe_modules/flavor/examples/
H A Dfull.py17 def test_exceptions(api):
19 api.flavor.copy_directory_contents_to_device('src', 'dst')
23 api.flavor.copy_directory_contents_to_host('src', 'dst')
27 api.flavor.copy_file_to_device('src', 'dst')
32 def RunSteps(api):
33 api.vars.setup()
35 builder = api.properties['buildername']
43 api.flavor.setup(app)
45 if api.properties.get('is_testing_exceptions') == 'True':
46 return test_exceptions(api)
[all...]
/third_party/skia/infra/bots/recipe_modules/run/examples/
H A Dfull.py18 def myfunc(api, i):
19 api.run(api.step, 'run %d' % i, cmd=['echo', str(i)])
22 def RunSteps(api):
23 api.vars.setup()
25 api.run(api.step, 'fail', cmd=['false'])
26 except api.step.StepFailure:
28 api.run(api
[all...]
/third_party/gn/infra/recipes/
H A Dgn.py33 def _get_libcxx_include_path(api):
35 lines = api.step(
40 stderr=api.raw_io.output_text(name='toolchain', add_output_log=True),
41 step_test_data=lambda: api.raw_io.test_api.stream_output_text(
42 str(api.macos_sdk.sdk_dir.join('include', 'c++', 'v1')),
45 sdk_dir = str(api.macos_sdk.sdk_dir)
53 def _get_compilation_environment(api, target, cipd_dir):
69 sysroot = '--sysroot=%s' % api.step(
71 stdout=api.raw_io.output_text(name='sdk-path', add_output_log=True),
72 step_test_data=lambda: api
[all...]
/third_party/skia/infra/bots/recipe_modules/build/
H A Ddefault.py9 def build_command_buffer(api, chrome_dir, skia_dir, out):
10 api.run(api.python, 'build command_buffer',
19 def compile_swiftshader(api, extra_tokens, swiftshader_root, cc, cxx, out):
35 cmake_bin = str(api.vars.workdir.join('cmake_linux', 'bin'))
56 clang_linux = str(api.vars.workdir.join('clang_linux'))
73 api.file.ensure_directory('makedirs swiftshader_out', out)
74 with api.context(cwd=out, env=env):
75 api.run(api
[all...]
/third_party/ffmpeg/tests/fate/
H A Dapi.mak1 FATE_API_LIBAVCODEC-$(call ENCDEC, FLAC, FLAC) += fate-api-flac
2 fate-api-flac: $(APITESTSDIR)/api-flac-test$(EXESUF)
3 fate-api-flac: CMD = run $(APITESTSDIR)/api-flac-test$(EXESUF)
4 fate-api-flac: CMP = null
6 FATE_API_SAMPLES_LIBAVFORMAT-$(call DEMDEC, FLV, FLV) += fate-api-band
7 fate-api-band: $(APITESTSDIR)/api-band-test$(EXESUF)
8 fate-api
[all...]
/third_party/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
H A DDeprecatedAPIChecker.java60 for (APIInfo api : apiInfoSet) { in checkDeprecated()
61 if (!api.isPublic() && !api.isProtected()) { in checkDeprecated()
64 if (!api.isClass() && !api.isEnum()) { in checkDeprecated()
67 String packageName = api.getPackageName(); in checkDeprecated()
68 String className = api.getName(); in checkDeprecated()
99 APIInfo api = null; in checkClass()
102 api = findClassInfo(apiInfoSet, clsName); in checkClass()
104 if (api in checkClass()
271 isAPIDeprecated(APIInfo api) isAPIDeprecated() argument
361 getParamNames(APIInfo api) getParamNames() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/wire/
H A DWireInjectDeviceTests.cpp35 WGPUDevice serverDevice = api.GetNewDevice(); in TEST_F()
36 EXPECT_CALL(api, DeviceReference(serverDevice)); in TEST_F()
37 EXPECT_CALL(api, OnDeviceSetUncapturedErrorCallback(serverDevice, _, _)); in TEST_F()
38 EXPECT_CALL(api, OnDeviceSetLoggingCallback(serverDevice, _, _)); in TEST_F()
39 EXPECT_CALL(api, OnDeviceSetDeviceLostCallback(serverDevice, _, _)); in TEST_F()
45 WGPUBuffer serverBuffer = api.GetNewBuffer(); in TEST_F()
46 EXPECT_CALL(api, DeviceCreateBuffer(serverDevice, _)).WillOnce(Return(serverBuffer)); in TEST_F()
50 EXPECT_CALL(api, OnDeviceSetUncapturedErrorCallback(serverDevice, nullptr, nullptr)) in TEST_F()
52 EXPECT_CALL(api, OnDeviceSetLoggingCallback(serverDevice, nullptr, nullptr)).Times(Exactly(1)); in TEST_F()
53 EXPECT_CALL(api, OnDeviceSetDeviceLostCallbac in TEST_F()
[all...]
H A DWireBufferMappingTests.cpp50 apiBuffer = api.GetNewBuffer();
77 EXPECT_CALL(api, DeviceCreateBuffer(apiDevice, _)) in SetupBuffer()
109 EXPECT_CALL(api, OnBufferMapAsync(apiBuffer, WGPUMapMode_Read, 0, kBufferSize, _, _)) in TEST_F()
111 api.CallBufferMapAsyncCallback(apiBuffer, WGPUBufferMapAsyncStatus_Success); in TEST_F()
113 EXPECT_CALL(api, BufferGetConstMappedRange(apiBuffer, 0, kBufferSize)) in TEST_F()
126 EXPECT_CALL(api, BufferUnmap(apiBuffer)).Times(1); in TEST_F()
136 EXPECT_CALL(api, OnBufferMapAsync(apiBuffer, WGPUMapMode_Read, 0, kBufferSize, _, _)) in TEST_F()
138 [&]() { api.CallBufferMapAsyncCallback(apiBuffer, WGPUBufferMapAsyncStatus_Error); })); in TEST_F()
156 EXPECT_CALL(api, OnBufferMapAsync(apiBuffer, WGPUMapMode_Read, 0, kBufferSize, _, _)) in TEST_F()
158 api in TEST_F()
[all...]
/third_party/skia/infra/bots/recipe_modules/checkout/examples/
H A Dfull.py18 def RunSteps(api):
19 api.vars.setup()
22 if 'NoDEPS' in api.properties['buildername']:
25 checkout_root = api.checkout.default_checkout_root
30 if 'CommandBuffer' in api.vars.builder_name:
32 if 'RecreateSKPs' in api.vars.builder_name:
36 if 'Flutter' in api.vars.builder_name:
39 if 'Android' in api.vars.builder_name:
43 api.checkout.bot_update(
50 api
[all...]
/third_party/skia/infra/bots/recipe_modules/gsutil/examples/
H A Dfull.py21 def RunSteps(api):
22 api.vars.setup()
23 api.gsutil.cp('test file', '/foo/file', 'gs://bar-bucket/file',
26 def GenTests(api):
28 api.test('gsutil_tests') +
29 api.properties(buildername='Housekeeper-PerCommit-InfraTests',
37 api.test('gsutil_win_tests') +
38 api.properties(buildername='Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-All',
46 api.test('failed_one_upload') +
47 api
[all...]

Completed in 6 milliseconds

12345678910>>...26