Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 2055) sorted by relevance

12345678910>>...83

/external/python/cpython3/Lib/test/
Dtest_resource.py8 resource = support.import_module('resource') variable
15 self.assertRaises(TypeError, resource.getrlimit)
16 self.assertRaises(TypeError, resource.getrlimit, 42, 42)
17 self.assertRaises(TypeError, resource.setrlimit)
18 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
22 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
31 self.assertEqual(resource.RLIM_INFINITY, max)
32 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
36 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
49 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max))
[all …]
/external/skqp/src/gpu/
DGrResourceCache.cpp108 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource() argument
110 SkASSERT(resource); in insertResource()
111 SkASSERT(!this->isInCache(resource)); in insertResource()
112 SkASSERT(!resource->wasDestroyed()); in insertResource()
113 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource()
117 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in insertResource()
119 this->addToNonpurgeableArray(resource); in insertResource()
121 size_t size = resource->gpuMemorySize(); in insertResource()
128 if (GrBudgetedType::kBudgeted == resource->resourcePriv().budgetedType()) { in insertResource()
138 if (resource->resourcePriv().getScratchKey().isValid() && in insertResource()
[all …]
DGrPendingIOResource.h23 explicit GrPendingIOResource(T* resource) { this->reset(resource); } in GrPendingIOResource() argument
24 GrPendingIOResource(sk_sp<T> resource) { *this = std::move(resource); } in GrPendingIOResource() argument
28 GrPendingIOResource& operator=(sk_sp<T> resource) {
29 this->reset(resource.get());
33 void reset(T* resource = nullptr) {
34 if (resource) {
37 resource->addPendingRead();
40 resource->addPendingWrite();
43 resource->addPendingRead();
44 resource->addPendingWrite();
[all …]
/external/skia/src/gpu/
DGrResourceCache.cpp75 inline GrResourceCache::ResourceAwaitingUnref::ResourceAwaitingUnref(GrGpuResource* resource) in ResourceAwaitingUnref() argument
76 : fResource(resource), fNumUnrefs(1) {} in ResourceAwaitingUnref()
146 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource() argument
148 SkASSERT(resource); in insertResource()
149 SkASSERT(!this->isInCache(resource)); in insertResource()
150 SkASSERT(!resource->wasDestroyed()); in insertResource()
151 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource()
155 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in insertResource()
157 this->addToNonpurgeableArray(resource); in insertResource()
159 size_t size = resource->gpuMemorySize(); in insertResource()
[all …]
DGrPendingIOResource.h23 explicit GrPendingIOResource(T* resource) { this->reset(resource); } in GrPendingIOResource() argument
24 GrPendingIOResource(sk_sp<T> resource) { *this = std::move(resource); } in GrPendingIOResource() argument
28 GrPendingIOResource& operator=(sk_sp<T> resource) {
29 this->reset(resource.get());
33 void reset(T* resource = nullptr) {
34 if (resource) {
37 resource->addPendingRead();
40 resource->addPendingWrite();
43 resource->addPendingRead();
44 resource->addPendingWrite();
[all …]
/external/python/cpython2/Lib/test/
Dtest_resource.py5 resource = test_support.import_module('resource') variable
12 self.assertRaises(TypeError, resource.getrlimit)
13 self.assertRaises(TypeError, resource.getrlimit, 42, 42)
14 self.assertRaises(TypeError, resource.setrlimit)
15 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
19 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
27 self.assertEqual(resource.RLIM_INFINITY, max)
28 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
32 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
44 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max))
[all …]
/external/mesa3d/src/gallium/state_trackers/nine/
Dnine_buffer_upload.c47 struct pipe_resource *resource; member
56 struct pipe_resource *resource; /* The parent resource if apply */ member
76 struct pipe_resource resource; in nine_upload_create_buffer_group() local
80 memset(&resource, 0, sizeof(resource)); in nine_upload_create_buffer_group()
81 resource.target = PIPE_BUFFER; in nine_upload_create_buffer_group()
82 resource.format = PIPE_FORMAT_R8_UNORM; in nine_upload_create_buffer_group()
83 resource.bind = PIPE_BIND_VERTEX_BUFFER; in nine_upload_create_buffer_group()
84 resource.usage = PIPE_USAGE_STREAM; in nine_upload_create_buffer_group()
85 resource.width0 = upload->buffers_size; in nine_upload_create_buffer_group()
86 resource.height0 = 1; in nine_upload_create_buffer_group()
[all …]
/external/wayland/src/
Dwayland-server.c136 log_closure(struct wl_resource *resource, in log_closure() argument
139 struct wl_object *object = &resource->object; in log_closure()
140 struct wl_display *display = resource->client->display; in log_closure()
148 message.resource = resource; in log_closure()
164 wl_resource_post_event_array(struct wl_resource *resource, uint32_t opcode, in wl_resource_post_event_array() argument
168 struct wl_object *object = &resource->object; in wl_resource_post_event_array()
174 resource->client->error = 1; in wl_resource_post_event_array()
178 if (wl_closure_send(closure, resource->client->connection)) in wl_resource_post_event_array()
179 resource->client->error = 1; in wl_resource_post_event_array()
181 log_closure(resource, closure, true); in wl_resource_post_event_array()
[all …]
Dwayland-server-core.h221 struct wl_resource *resource,
360 typedef void (*wl_resource_destroy_func_t)(struct wl_resource *resource);
379 wl_resource_post_event(struct wl_resource *resource,
383 wl_resource_post_event_array(struct wl_resource *resource,
387 wl_resource_queue_event(struct wl_resource *resource,
391 wl_resource_queue_event_array(struct wl_resource *resource,
396 wl_resource_post_error(struct wl_resource *resource,
400 wl_resource_post_no_memory(struct wl_resource *resource);
411 wl_resource_set_implementation(struct wl_resource *resource,
417 wl_resource_set_dispatcher(struct wl_resource *resource,
[all …]
Dwayland-shm.c56 struct wl_resource *resource; member
65 struct wl_resource *resource; member
89 wl_resource_post_error(pool->resource, in shm_pool_finish_resize()
118 destroy_buffer(struct wl_resource *resource) in destroy_buffer() argument
120 struct wl_shm_buffer *buffer = wl_resource_get_user_data(resource); in destroy_buffer()
128 shm_buffer_destroy(struct wl_client *client, struct wl_resource *resource) in shm_buffer_destroy() argument
130 wl_resource_destroy(resource); in shm_buffer_destroy()
159 shm_pool_create_buffer(struct wl_client *client, struct wl_resource *resource, in shm_pool_create_buffer() argument
164 struct wl_shm_pool *pool = wl_resource_get_user_data(resource); in shm_pool_create_buffer()
168 wl_resource_post_error(resource, in shm_pool_create_buffer()
[all …]
/external/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
67 struct wl_drm *drm = wl_resource_get_user_data(resource); in create_buffer()
72 wl_resource_post_no_memory(resource); in create_buffer()
89 wl_resource_post_error(resource, in create_buffer()
95 buffer->resource = in create_buffer()
97 if (!buffer->resource) { in create_buffer()
[all …]
/external/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit03.c55 static int getrlimit_u64(int resource, struct rlimit64 *rlim) in getrlimit_u64() argument
57 return tst_syscall(__NR_prlimit64, 0, resource, NULL, rlim); in getrlimit_u64()
66 static int getrlimit_ulong(int resource, struct rlimit_ulong *rlim) in getrlimit_ulong() argument
68 return syscall(__NR_getrlimit_ulong, resource, rlim); in getrlimit_ulong()
78 static int getrlimit_long(int resource, struct rlimit_long *rlim) in getrlimit_long() argument
80 return syscall(__NR_getrlimit, resource, rlim); in getrlimit_long()
84 static int compare_retval(int resource, int ret_u64, int errno_u64, in compare_retval() argument
90 resource, ret_u64, tst_strerrno(errno_u64), in compare_retval()
91 other_syscall, resource, ret_other, in compare_retval()
99 static int compare_u64_ulong(int resource, uint64_t val_u64, in compare_u64_ulong() argument
[all …]
/external/icu/icu4c/source/data/translit/
Droot.txt23 resource:process(transliterator) {"am_am_Latn_BGN.txt"}
33 resource:process(transliterator) {"Any_Accents.txt"}
42 resource:process(transliterator) {"Any_Accents.txt"}
52 resource:process(transliterator) {"Any_Publishing.txt"}
61 resource:process(transliterator) {"Any_Publishing.txt"}
74 resource:process(transliterator) {"Arab_Latn.txt"}
86 resource:process(transliterator) {"Arab_Latn.txt"}
99 resource:process(transliterator) {"ar_ar_Latn_BGN.txt"}
112 resource:process(transliterator) {"hy_hy_Latn_BGN.txt"}
125 resource:process(transliterator) {"az_Cyrl_az_BGN.txt"}
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/request/target/
DGlideDrawableImageViewTarget.java5 import com.bumptech.glide.load.resource.drawable.GlideDrawable;
15 private GlideDrawable resource; field in GlideDrawableImageViewTarget
51 …public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> animatio… in onResourceReady() argument
52 if (!resource.isAnimated()) { in onResourceReady()
60 … float drawableRatio = resource.getIntrinsicWidth() / (float) resource.getIntrinsicHeight(); in onResourceReady()
63 resource = new SquaringDrawable(resource, view.getWidth()); in onResourceReady()
66 super.onResourceReady(resource, animation); in onResourceReady()
67 this.resource = resource; in onResourceReady()
68 resource.setLoopCount(maxLoopCount); in onResourceReady()
69 resource.start(); in onResourceReady()
[all …]
/external/u-boot/include/linux/
Dioport.h18 struct resource { struct
23 struct resource *parent, *sibling, *child; argument
28 struct resource *res;
110 extern struct resource ioport_resource;
111 extern struct resource iomem_resource;
113 extern int request_resource(struct resource *root, struct resource *new);
114 extern int release_resource(struct resource *new);
115 extern void reserve_region_with_split(struct resource *root,
118 extern int insert_resource(struct resource *parent, struct resource *new);
119 extern void insert_resource_expand_to_fit(struct resource *root, struct resource *new);
[all …]
/external/tensorflow/tensorflow/core/framework/
Dresource_op_kernel_test.cc57 StubResource* resource() LOCKS_EXCLUDED(mu_) { in resource() function in tensorflow::__anon1ebbe4430111::StubResourceOpKernel
63 Status CreateResource(StubResource** resource) override { in CreateResource() argument
64 *resource = CHECK_NOTNULL(new StubResource); in CreateResource()
65 return GetNodeAttr(def(), "code", &(*resource)->code); in CreateResource()
68 Status VerifyResource(StubResource* resource) override { in VerifyResource() argument
71 if (code != resource->code) { in VerifyResource()
72 return errors::InvalidArgument("stub has code ", resource->code, in VerifyResource()
142 StubResource* resource; in TEST_F() local
144 mgr_.Lookup<StubResource>(mgr_.default_container(), key, &resource)); in TEST_F()
145 EXPECT_EQ(op->resource(), resource); // Check resource identity. in TEST_F()
[all …]
/external/opencensus-java/contrib/monitored_resource_util/src/test/java/io/opencensus/contrib/monitoredresource/util/
DMonitoredResourceTest.java45 AwsEc2InstanceMonitoredResource resource = in testAwsEc2InstanceMonitoredResource() local
47 assertThat(resource.getResourceType()).isEqualTo(ResourceType.AWS_EC2_INSTANCE); in testAwsEc2InstanceMonitoredResource()
48 assertThat(resource.getAccount()).isEqualTo(AWS_ACCOUNT); in testAwsEc2InstanceMonitoredResource()
49 assertThat(resource.getInstanceId()).isEqualTo(AWS_INSTANCE); in testAwsEc2InstanceMonitoredResource()
50 assertThat(resource.getRegion()).isEqualTo(AWS_REGION); in testAwsEc2InstanceMonitoredResource()
55 GcpGceInstanceMonitoredResource resource = in testGcpGceInstanceMonitoredResource() local
57 assertThat(resource.getResourceType()).isEqualTo(ResourceType.GCP_GCE_INSTANCE); in testGcpGceInstanceMonitoredResource()
58 assertThat(resource.getAccount()).isEqualTo(GCP_PROJECT); in testGcpGceInstanceMonitoredResource()
59 assertThat(resource.getInstanceId()).isEqualTo(GCP_INSTANCE); in testGcpGceInstanceMonitoredResource()
60 assertThat(resource.getZone()).isEqualTo(GCP_ZONE); in testGcpGceInstanceMonitoredResource()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtensor_array_ops.cc51 XlaResource* resource, DataType dtype, in MaybeInitializeTensorArray() argument
53 if (resource->kind() != XlaResource::kTensorArray) { in MaybeInitializeTensorArray()
57 if (resource->type() != dtype) { in MaybeInitializeTensorArray()
59 "TensorArray dtype is ", DataTypeString(resource->type()), in MaybeInitializeTensorArray()
63 TF_RET_CHECK(resource->max_array_size() >= 0) in MaybeInitializeTensorArray()
64 << resource->name() << " size " << resource->max_array_size(); in MaybeInitializeTensorArray()
66 if (!resource->initialized()) { in MaybeInitializeTensorArray()
67 TF_RETURN_IF_ERROR(resource->SetTypeAndShape(dtype, elem_shape)); in MaybeInitializeTensorArray()
68 TF_RETURN_IF_ERROR(resource->SetZeroValue(builder)); in MaybeInitializeTensorArray()
71 auto shape_or_status = builder->GetShape(resource->value()); in MaybeInitializeTensorArray()
[all …]
Dstack_ops.cc40 Status GetStackShape(xla::XlaBuilder* builder, XlaResource* resource, in GetStackShape() argument
42 auto shape_or_status = builder->GetShape(resource->value()); in GetStackShape()
62 Status MaybeInitializeStack(xla::XlaBuilder* builder, XlaResource* resource, in MaybeInitializeStack() argument
64 if (resource->type() != dtype) { in MaybeInitializeStack()
66 "Stack dtype is ", DataTypeString(resource->type()), in MaybeInitializeStack()
71 stack_shape.AddDim(resource->max_array_size()); in MaybeInitializeStack()
74 if (!resource->initialized()) { in MaybeInitializeStack()
76 TF_RETURN_IF_ERROR(resource->SetTypeAndShape(dtype, elem_shape)); in MaybeInitializeStack()
77 TF_RETURN_IF_ERROR(resource->SetZeroValue(builder)); in MaybeInitializeStack()
81 TF_RETURN_IF_ERROR(GetStackShape(builder, resource, &actual_shape)); in MaybeInitializeStack()
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dresource_loader.py12 from py_vulcanize import resource as resource_module
89 resource = self.FindResourceGivenRelativePath(filename)
91 return resource
92 if not resource:
94 return _read_file(resource.absolute_path)
116 resource = self.FindResource(module_filename)
117 if not resource:
120 module_name = resource.name
122 resource = None # Will be set if we end up needing to load.
128 if not resource: # happens when module_name was given
[all …]
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dprediction_ops.cc57 BoostedTreesEnsembleResource* resource; in Compute() local
60 &resource)); in Compute()
62 core::ScopedUnref unref_me(resource); in Compute()
104 const int32 latest_tree = resource->num_trees() - 1; in Compute()
114 auto do_work = [&resource, &batch_bucketized_features, &cached_tree_ids, in Compute()
126 resource->GetPostPruneCorrection(tree_id, node_id, &node_id, in Compute()
131 const auto& node_logits = resource->node_value(tree_id, node_id); in Compute()
140 if (resource->is_leaf(tree_id, node_id)) { in Compute()
141 const auto& leaf_logits = resource->node_value(tree_id, node_id); in Compute()
147 resource->GetTreeWeight(tree_id) * partial_tree_logit; in Compute()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUResourceBundleImpl.java21 protected int resource; field in ICUResourceBundleImpl
23 protected ICUResourceBundleImpl(ICUResourceBundleImpl container, String key, int resource) { in ICUResourceBundleImpl() argument
25 this.resource = resource; in ICUResourceBundleImpl()
29 resource = wholeBundle.reader.getRootResource(); in ICUResourceBundleImpl()
32 return resource; in getResource()
71 return wholeBundle.reader.getBinary(resource); in getBinary()
75 return wholeBundle.reader.getBinary(resource, ba); in getBinary()
77 ResourceBinary(ICUResourceBundleImpl container, String key, int resource) { in ResourceBinary() argument
78 super(container, key, resource); in ResourceBinary()
88 return ICUResourceBundleReader.RES_GET_INT(resource); in getInt()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUResourceBundleImpl.java20 protected int resource; field in ICUResourceBundleImpl
22 protected ICUResourceBundleImpl(ICUResourceBundleImpl container, String key, int resource) { in ICUResourceBundleImpl() argument
24 this.resource = resource; in ICUResourceBundleImpl()
28 resource = wholeBundle.reader.getRootResource(); in ICUResourceBundleImpl()
31 return resource; in getResource()
70 return wholeBundle.reader.getBinary(resource); in getBinary()
74 return wholeBundle.reader.getBinary(resource, ba); in getBinary()
76 ResourceBinary(ICUResourceBundleImpl container, String key, int resource) { in ResourceBinary() argument
77 super(container, key, resource); in ResourceBinary()
87 return ICUResourceBundleReader.RES_GET_INT(resource); in getInt()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_transfer.c8 struct pipe_resource *resource, in u_default_buffer_subdata() argument
22 if (offset == 0 && size == resource->width0) { in u_default_buffer_subdata()
30 map = pipe->transfer_map(pipe, resource, 0, usage, &box, &transfer); in u_default_buffer_subdata()
39 struct pipe_resource *resource, in u_default_texture_subdata() argument
60 resource, in u_default_texture_subdata()
68 resource->format, in u_default_texture_subdata()
85 UNUSED struct pipe_resource *resource, in u_default_resource_get_handle() argument
115 struct pipe_resource *resource, in u_resource_get_handle_vtbl() argument
119 struct u_resource *ur = u_resource(resource); in u_resource_get_handle_vtbl()
120 return ur->vtbl->resource_get_handle(screen, resource, handle); in u_resource_get_handle_vtbl()
[all …]
/external/python/cpython3/Lib/importlib/
Dresources.py85 def open_binary(package: Package, resource: Resource) -> BinaryIO:
87 resource = _normalize_path(resource)
91 return reader.open_resource(resource)
95 full_path = os.path.join(package_path, resource)
110 resource, package_name)
117 resource: Resource,
121 resource = _normalize_path(resource)
125 return TextIOWrapper(reader.open_resource(resource), encoding, errors)
129 full_path = os.path.join(package_path, resource)
144 resource, package_name)
[all …]

12345678910>>...83