Home
last modified time | relevance | path

Searched full:resource (Results 1 – 25 of 5424) sorted by relevance

12345678910>>...217

/third_party/skia/m133/src/gpu/graphite/
DResourceCache.cpp16 #include "src/gpu/graphite/Resource.h"
66 Resource* back = *(fNonpurgeableResources.end() - 1); in shutdown()
73 Resource* top = fPurgeableQueue.peek(); in shutdown()
82 void ResourceCache::insertResource(Resource* resource) { in insertResource() argument
84 SkASSERT(resource); in insertResource()
85 SkASSERT(!this->isInCache(resource)); in insertResource()
86 SkASSERT(!resource->wasDestroyed()); in insertResource()
87 SkASSERT(!resource->isPurgeable()); in insertResource()
88 SkASSERT(resource->key().isValid()); in insertResource()
91 SkASSERT(resource->ownership() == Ownership::kOwned); in insertResource()
[all …]
DResourceCache.h35 class Resource; variable
56 void insertResource(Resource*);
58 // Find a resource that matches a key.
59 Resource* findAndRefResource(const GraphiteResourceKey& key, skgpu::Budgeted);
62 // Resource should clean itself up if it is the last ref.
63 bool returnResource(Resource*, LastRemovedRef);
99 Resource* topOfPurgeableQueue();
101 bool testingInPurgeableQueue(Resource* resource) { return this->inPurgeableQueue(resource); } in testingInPurgeableQueue() argument
113 void refAndMakeResourceMRU(Resource*);
114 void addToNonpurgeableArray(Resource* resource);
[all …]
/third_party/python/Lib/test/
Dtest_resource.py9 resource = import_helper.import_module('resource') variable
11 # This test is checking a few specific problem spots with the resource module.
16 self.assertRaises(TypeError, resource.getrlimit)
17 self.assertRaises(TypeError, resource.getrlimit, 42, 42)
18 self.assertRaises(TypeError, resource.setrlimit)
19 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
25 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
34 self.assertEqual(resource.RLIM_INFINITY, max)
35 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
39 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/pipeline/jit/ps/
Dpass.cc29 #include "pipeline/jit/ps/resource.h"
116 void UpdateArgsSpec(const FuncGraphPtr &func_graph, const ResourcePtr &resource) { in UpdateArgsSpec() argument
118 MS_EXCEPTION_IF_NULL(resource); in UpdateArgsSpec()
124 resource->set_args_abs(args_abs); in UpdateArgsSpec()
127 bool PyInterpretToExecutePass(const ResourcePtr &resource) { in PyInterpretToExecutePass() argument
132 MS_EXCEPTION_IF_NULL(resource); in PyInterpretToExecutePass()
133 FuncGraphPtr func_graph = resource->func_graph(); in PyInterpretToExecutePass()
135 (void)opt::PyInterpretToExecute(resource); in PyInterpretToExecutePass()
136 UpdateArgsSpec(func_graph, resource); in PyInterpretToExecutePass()
140 bool RewriterBeforeOptAPass(const ResourcePtr &resource) { in RewriterBeforeOptAPass() argument
[all …]
/third_party/icu/icu4c/source/data/translit/
Droot.txt15 resource:process(transliterator){"Latin_ASCII.txt"}
21 resource:process(transliterator){"Any_Accents.txt"}
30 resource:process(transliterator){"Any_Accents.txt"}
36 resource:process(transliterator){"Any_Publishing.txt"}
42 resource:process(transliterator){"Arab_Latn.txt"}
60 resource:process(transliterator){"Latn_Armn.txt"}
72 resource:process(transliterator){"Beng_Arab.txt"}
78 resource:process(transliterator){"Beng_Deva.txt"}
84 resource:process(transliterator){"Beng_Gujr.txt"}
90 resource:process(transliterator){"Beng_Guru.txt"}
[all …]
/third_party/skia/third_party/externals/icu/source/data/translit/
Droot.txt15 resource:process(transliterator){"Latin_ASCII.txt"}
21 resource:process(transliterator){"Any_Accents.txt"}
30 resource:process(transliterator){"Any_Accents.txt"}
36 resource:process(transliterator){"Any_Publishing.txt"}
42 resource:process(transliterator){"Arab_Latn.txt"}
60 resource:process(transliterator){"Latn_Armn.txt"}
72 resource:process(transliterator){"Beng_Arab.txt"}
78 resource:process(transliterator){"Beng_Deva.txt"}
84 resource:process(transliterator){"Beng_Gujr.txt"}
90 resource:process(transliterator){"Beng_Guru.txt"}
[all …]
/third_party/skia/m133/src/gpu/ganesh/
DGrResourceCache.cpp198 auto resource = fPurgeableQueue.at(i); in cacheInfoPurgeableQueue() local
199 auto resourceTag = resource->getResourceTag(); in cacheInfoPurgeableQueue()
201 …updatePurgeableWidMap(resource, purgNameInfoWid, purgSizeInfoWid, purgPidInfoWid, purgCountInfoWid… in cacheInfoPurgeableQueue()
203 updatePurgeableFidMap(resource, purgNameInfoFid, purgSizeInfoFid, purgCountInfoFid); in cacheInfoPurgeableQueue()
205 updatePurgeablePidMap(resource, purgNameInfoPid, purgSizeInfoPid, purgCountInfoPid); in cacheInfoPurgeableQueue()
209 purgSizeUnknown += resource->gpuMemorySize(); in cacheInfoPurgeableQueue()
249 auto resource = fNonpurgeableResources[i]; in cacheInfoNoPurgeableQueue() local
250 if (resource == nullptr) { in cacheInfoNoPurgeableQueue()
253 auto resourceTag = resource->getResourceTag(); in cacheInfoNoPurgeableQueue()
255 …updatePurgeableWidMap(resource, noPurgNameInfoWid, noPurgSizeInfoWid, noPurgPidInfoWid, noPurgCoun… in cacheInfoNoPurgeableQueue()
[all …]
/third_party/libcoap/include/coap3/
Dcoap_resource.h2 * coap_resource.h -- generic resource handling
14 * @brief Generic resource handling
27 * @defgroup coap_resource Resource Configuraton
73 * This resource has support for multicast requests.
138 * Force all large traffic to this resource to be presented as a single body
144 * Define this resource as an OSCORE enabled access only.
149 * Creates a new resource object and initializes the link field to the string
157 * @param uri_path The string URI path of the new resource. The leading '/' is
158 * not normally required - e.g. just "full/path/for/resource".
178 * Creates a new resource object for the unknown resource handler with support
[all …]
/third_party/skia/m133/third_party/externals/icu/source/data/translit/
Droot.txt15 resource:process(transliterator){"Latin_ASCII.txt"}
21 resource:process(transliterator){"Any_Accents.txt"}
33 resource:process(transliterator){"Any_Accents.txt"}
39 resource:process(transliterator){"Any_Publishing.txt"}
45 resource:process(transliterator){"Arab_Latn.txt"}
63 resource:process(transliterator){"Latn_Armn.txt"}
75 resource:process(transliterator){"Beng_Arab.txt"}
81 resource:process(transliterator){"Beng_Deva.txt"}
87 resource:process(transliterator){"Beng_Gujr.txt"}
93 resource:process(transliterator){"Beng_Guru.txt"}
[all …]
/third_party/skia/src/gpu/
DGrResourceCache.cpp55 SK_ABORT("Too many Resource Types"); in GenerateResourceType()
269 auto resource = fPurgeableQueue.at(i); in cacheInfoPurgeableQueue() local
271 if (std::strcmp(resource->getResourceType(), "VkImage") == 0) { in cacheInfoPurgeableQueue()
272 auto vkimage = static_cast<GrVkImage*>(resource); in cacheInfoPurgeableQueue()
278 auto resourceTag = resource->getResourceTag(); in cacheInfoPurgeableQueue()
280 …updatePurgeableWidMap(resource, purgNameInfoWid, purgSizeInfoWid, purgPidInfoWid, purgCountInfoWid… in cacheInfoPurgeableQueue()
282 updatePurgeableFidMap(resource, purgNameInfoFid, purgSizeInfoFid, purgCountInfoFid); in cacheInfoPurgeableQueue()
284 updatePurgeablePidMap(resource, purgNameInfoPid, purgSizeInfoPid, purgCountInfoPid); in cacheInfoPurgeableQueue()
288 purgSizeUnknown += resource->gpuMemorySize(); in cacheInfoPurgeableQueue()
328 auto resource = fNonpurgeableResources[i]; in cacheInfoNoPurgeableQueue() local
[all …]
/third_party/grpc/test/core/xds/
Dxds_cluster_resource_type_test.cc145 EXPECT_EQ(decode_result.resource.status().code(), in TEST_F()
147 EXPECT_EQ(decode_result.resource.status().message(), in TEST_F()
148 "Can't parse Cluster resource.") in TEST_F()
149 << decode_result.resource.status(); in TEST_F()
162 ASSERT_TRUE(decode_result.resource.ok()) << decode_result.resource.status(); in TEST_F()
165 auto& resource = in TEST_F() local
166 static_cast<const XdsClusterResource&>(**decode_result.resource); in TEST_F()
167 auto* eds = absl::get_if<XdsClusterResource::Eds>(&resource.type); in TEST_F()
171 EXPECT_EQ(JsonDump(Json::FromArray(resource.lb_policy_config)), in TEST_F()
174 EXPECT_EQ(resource.lrs_load_reporting_server, nullptr); in TEST_F()
[all …]
Dxds_route_config_resource_type_test.cc130 EXPECT_EQ(decode_result.resource.status().code(), in TEST_F()
132 EXPECT_EQ(decode_result.resource.status().message(), in TEST_F()
133 "Can't parse RouteConfiguration resource.") in TEST_F()
134 << decode_result.resource.status(); in TEST_F()
150 ASSERT_TRUE(decode_result.resource.ok()) << decode_result.resource.status(); in TEST_F()
153 auto& resource = in TEST_F() local
154 static_cast<const XdsRouteConfigResource&>(**decode_result.resource); in TEST_F()
155 EXPECT_THAT(resource.cluster_specifier_plugin_map, ::testing::ElementsAre()); in TEST_F()
156 ASSERT_EQ(resource.virtual_hosts.size(), 1UL); in TEST_F()
157 EXPECT_THAT(resource.virtual_hosts[0].domains, ::testing::ElementsAre("*")); in TEST_F()
[all …]
/third_party/mesa3d/src/gallium/frontends/nine/
Dnine_buffer_upload.c29 struct pipe_resource *resource; member
38 struct pipe_resource *resource; /* The parent resource if apply */ member
39 unsigned offset; /* Offset inside the resource */
40 /* If there is no parent, the resource map. Else NULL. */
58 struct pipe_resource resource; in nine_upload_create_buffer_group() local
62 memset(&resource, 0, sizeof(resource)); in nine_upload_create_buffer_group()
63 resource.target = PIPE_BUFFER; in nine_upload_create_buffer_group()
64 resource.format = PIPE_FORMAT_R8_UNORM; in nine_upload_create_buffer_group()
65 resource.bind = PIPE_BIND_VERTEX_BUFFER; in nine_upload_create_buffer_group()
66 resource.usage = PIPE_USAGE_STREAM; in nine_upload_create_buffer_group()
[all …]
/third_party/mesa3d/src/egl/wayland/wayland-drm/
Dwayland-drm.c43 destroy_buffer(struct wl_resource *resource) in destroy_buffer() argument
45 struct wl_drm_buffer *buffer = wl_resource_get_user_data(resource); in destroy_buffer()
53 buffer_destroy(struct wl_client *client, struct wl_resource *resource) in buffer_destroy() argument
55 wl_resource_destroy(resource); in buffer_destroy()
59 create_buffer(struct wl_client *client, struct wl_resource *resource, in create_buffer() argument
65 struct wl_drm *drm = wl_resource_get_user_data(resource); in create_buffer()
70 wl_resource_post_no_memory(resource); in create_buffer()
87 wl_resource_post_error(resource, WL_DRM_ERROR_INVALID_NAME, in create_buffer()
93 buffer->resource = wl_resource_create(client, &wl_buffer_interface, 1, id); in create_buffer()
94 if (!buffer->resource) { in create_buffer()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MCA/HardwareUnits/
DResourceManager.h10 /// The classes here represent processor resource units and their management
28 /// Used to notify the internal state of a processor resource.
30 /// A processor resource is available if it is not reserved, and there are
31 /// available slots in the buffer. A processor resource is unavailable if it
32 /// is either reserved, or the associated buffer is full. A processor resource
38 /// The naming convention for resource state events is:
40 /// * Prefix RS_ is followed by a string describing the actual resource state.
47 /// Resource allocation strategy used by hardware scheduler resources.
56 /// Selects a processor resource unit from a ReadyMask.
59 /// Called by the ResourceManager when a processor resource group, or a
[all …]
/third_party/libcoap/examples/
Detsi_testcases.sh68 # Perform GET (CON mode) on resource /test
70 # pre: resource /test exists and can handle GET with arbitrary payload
85 echo "perform GET (CON mode) on resource $testaddress"
90 # Perform POST transaction (CON mode) on resource /test: create
91 # resource /test
93 # pre: resource /test doesn't exist but can be created on /test
112 echo "perform POST (CON) on resource $testaddress"
117 # Perform PUT transaction (CON mode) on resource /test
119 # pre: resource /test exists which can handle PUT
137 echo "perform PUT (CON) on resource $testaddress"
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUResourceBundle.java32 * <p>A class representing a collection of resource information pertaining to a given
33 * locale. A resource bundle provides a way of accessing locale- specific information in a
34 * data file. You create a resource bundle that manages the resources for a given locale
39 * resource is a resource by itself.
41 * <p>Resource bundles in ICU are currently defined using text files that conform to the
44 * definition</a>. More on resource bundle concepts and syntax can be found in the <a
99 * {@icu} Creates a resource bundle using the specified base name and locale.
103 * @param localeName the locale for which a resource bundle is desired
104 * @throws MissingResourceException If no resource bundle for the specified base name
106 * @return a resource bundle for the given base name and locale
[all …]
/third_party/cares/docs/
Dares_dns_rr.319 DNS Resource Record creating, reading, and writing functions.
388 The \fIares_dns_record_rr_cnt(3)\fP function returns the number of resource
395 The \fIares_dns_record_rr_add(3)\fP function adds a new resource record entry
398 parameter. The resulting resource record is stored into the variable pointed to by
400 The DNS section the resource record belongs to is specified by the
402 parameter. The domain name associated with the resource record is specified by the
404 parameter, which can not be NULL but may be an empty string, or ".". The resource
415 functions are used to retrieve the resource record pointer from the DNS record
418 parameter, for the resource record section provided in the
423 former returns a writable pointer to the resource record, while the latter
[all …]
/third_party/mesa3d/src/gallium/drivers/tegra/
Dtegra_screen.c153 struct tegra_resource *resource) in tegra_screen_import_resource() argument
163 status = screen->gpu->resource_get_handle(screen->gpu, NULL, resource->gpu, in tegra_screen_import_resource()
175 resource->modifier = handle.modifier; in tegra_screen_import_resource()
176 resource->stride = handle.stride; in tegra_screen_import_resource()
179 err = drmPrimeFDToHandle(screen->fd, fd, &resource->handle); in tegra_screen_import_resource()
194 struct tegra_resource *resource; in tegra_screen_resource_create() local
197 resource = calloc(1, sizeof(*resource)); in tegra_screen_resource_create()
198 if (!resource) in tegra_screen_resource_create()
209 * resource (e.g. using gbm_bo_get_modifier()) before handing it to the in tegra_screen_resource_create()
215 resource->gpu = screen->gpu->resource_create_with_modifiers(screen->gpu, in tegra_screen_resource_create()
[all …]
/third_party/python/Doc/library/
Dimportlib.resources.rst5 :synopsis: Package resource reading, opening, and access
28 Resource Access
29 <https://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access>`_
40 :class:`Loaders <importlib.abc.Loader>` that wish to support resource reading should implement a
56 representing the resource container for the package (think directory)
73 resource was extracted from e.g. a zip file.
89 .. data:: Resource
91 For *resource* arguments of the functions below, you can pass in
92 the name of a resource as a string or
95 The ``Resource`` type is defined as ``Union[str, os.PathLike]``.
[all …]
/third_party/python/Lib/importlib/resources/
D_legacy.py12 Resource = str variable
44 def open_binary(package: Package, resource: Resource) -> BinaryIO: argument
45 """Return a file-like object opened for binary reading of the resource."""
46 return (_common.files(package) / normalize_path(resource)).open('rb')
50 def read_binary(package: Package, resource: Resource) -> bytes: argument
51 """Return the binary contents of the resource."""
52 return (_common.files(package) / normalize_path(resource)).read_bytes()
58 resource: Resource, argument
62 """Return a file-like object opened for text reading of the resource."""
63 return (_common.files(package) / normalize_path(resource)).open(
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DUResourceBundle.java33 * <p>A class representing a collection of resource information pertaining to a given
34 * locale. A resource bundle provides a way of accessing locale- specific information in a
35 * data file. You create a resource bundle that manages the resources for a given locale
40 * resource is a resource by itself.
42 * <p>Resource bundles in ICU are currently defined using text files that conform to the
45 * definition</a>. More on resource bundle concepts and syntax can be found in the <a
100 * <strong>[icu]</strong> Creates a resource bundle using the specified base name and locale.
104 * @param localeName the locale for which a resource bundle is desired
105 * @throws MissingResourceException If no resource bundle for the specified base name
107 * @return a resource bundle for the given base name and locale
[all …]
/third_party/mindspore/test/resource/
Dohos_test.xml5 <option name="push" value="ml_face_isface.ms -> /data/test/resource" src="res"/>
6 <option name="push" value="ml_face_isface_0.input -> /data/test/resource" src="res"/>
7 <option name="push" value="ml_face_isface0.output -> /data/test/resource" src="res"/>
12 <option name="push" value="ml_face_isface.ms -> /data/test/resource" src="res"/>
13 <option name="push" value="ml_face_isface_0.input -> /data/test/resource" src="res"/>
14 <option name="push" value="ml_face_isface0.output -> /data/test/resource" src="res"/>
15 <option name="push" value="ml_face_isface.input -> /data/test/resource" src="res"/>
16 <option name="push" value="ml_ocr_cn.ms -> /data/test/resource" src="res"/>
17 <option name="push" value="ml_ocr_cn_0.input -> /data/test/resource" src="res"/>
18 <option name="push" value="ml_ocr_cn0.output -> /data/test/resource" src="res"/>
[all …]
/third_party/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit03.c25 #include <sys/resource.h>
62 static int getrlimit_u64(int resource, struct rlimit64 *rlim) in getrlimit_u64() argument
64 return tst_syscall(__NR_prlimit64, 0, resource, NULL, rlim); in getrlimit_u64()
78 static int getrlimit_ulong(int resource, struct rlimit_ulong *rlim) in getrlimit_ulong() argument
80 return syscall(__NR_getrlimit_ulong, resource, rlim); in getrlimit_ulong()
91 static int getrlimit_long(int resource, struct rlimit_long *rlim) in getrlimit_long() argument
93 return syscall(__NR_getrlimit, resource, rlim); in getrlimit_long()
97 static int compare_retval(int resource, int ret_u64, int errno_u64, in compare_retval() argument
103 resource, ret_u64, tst_strerrno(errno_u64), in compare_retval()
104 other_syscall, resource, ret_other, in compare_retval()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DResourceVk.h7 // Resource lifetime tracking in the Vulkan back-end.
19 // Tracks how a resource is used by ANGLE and by a VkQueue. The reference count indicates the number
20 // of times a resource is retained by ANGLE. The serial indicates the most recent use of a resource
21 // in the VkQueue. The reference count and serial together can determine if a resource is currently
27 // The number of times a resource is retained by ANGLE.
87 // The base counter value for a live resource is "1". Any value greater than one indicates
88 // the resource is in use by a command buffer.
134 // Mixin to abstract away the resource use tracking.
163 class Resource : angle::NonCopyable
166 virtual ~Resource();
[all …]

12345678910>>...217