/external/python/cpython3/Lib/test/ |
D | test_resource.py | 7 resource = support.import_module('resource') variable 14 self.assertRaises(TypeError, resource.getrlimit) 15 self.assertRaises(TypeError, resource.getrlimit, 42, 42) 16 self.assertRaises(TypeError, resource.setrlimit) 17 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42) 23 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE) 32 self.assertEqual(resource.RLIM_INFINITY, max) 33 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max)) 37 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE) 50 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max)) [all …]
|
/external/skqp/src/gpu/ |
D | GrResourceCache.cpp | 108 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 …]
|
/external/skia/src/gpu/ |
D | GrResourceCache.cpp | 131 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource() argument 133 SkASSERT(resource); in insertResource() 134 SkASSERT(!this->isInCache(resource)); in insertResource() 135 SkASSERT(!resource->wasDestroyed()); in insertResource() 136 SkASSERT(!resource->resourcePriv().isPurgeable()); in insertResource() 140 resource->cacheAccess().setTimestamp(this->getNextTimestamp()); in insertResource() 142 this->addToNonpurgeableArray(resource); in insertResource() 144 size_t size = resource->gpuMemorySize(); in insertResource() 151 if (GrBudgetedType::kBudgeted == resource->resourcePriv().budgetedType()) { in insertResource() 161 if (resource->resourcePriv().getScratchKey().isValid() && in insertResource() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_resource.py | 5 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/u-boot/drivers/clk/imx/ |
D | clk-imx8qm.c | 45 u16 resource; in imx8_clk_get_rate() local 52 resource = SC_R_A53; in imx8_clk_get_rate() 56 resource = SC_R_I2C_0; in imx8_clk_get_rate() 60 resource = SC_R_I2C_1; in imx8_clk_get_rate() 64 resource = SC_R_I2C_2; in imx8_clk_get_rate() 68 resource = SC_R_I2C_3; in imx8_clk_get_rate() 74 resource = SC_R_SDHC_0; in imx8_clk_get_rate() 80 resource = SC_R_SDHC_1; in imx8_clk_get_rate() 86 resource = SC_R_SDHC_2; in imx8_clk_get_rate() 91 resource = SC_R_UART_0; in imx8_clk_get_rate() [all …]
|
D | clk-imx8qxp.c | 48 u16 resource; in imx8_clk_get_rate() local 55 resource = SC_R_A35; in imx8_clk_get_rate() 59 resource = SC_R_I2C_0; in imx8_clk_get_rate() 63 resource = SC_R_I2C_1; in imx8_clk_get_rate() 67 resource = SC_R_I2C_2; in imx8_clk_get_rate() 71 resource = SC_R_I2C_3; in imx8_clk_get_rate() 77 resource = SC_R_SDHC_0; in imx8_clk_get_rate() 83 resource = SC_R_SDHC_1; in imx8_clk_get_rate() 88 resource = SC_R_UART_0; in imx8_clk_get_rate() 92 resource = SC_R_UART_1; in imx8_clk_get_rate() [all …]
|
/external/mesa3d/src/gallium/frontends/nine/ |
D | nine_buffer_upload.c | 47 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/ |
D | wayland-server.c | 142 log_closure(struct wl_resource *resource, in log_closure() argument 145 struct wl_object *object = &resource->object; in log_closure() 146 struct wl_display *display = resource->client->display; in log_closure() 154 message.resource = resource; in log_closure() 170 verify_objects(struct wl_resource *resource, uint32_t opcode, in verify_objects() argument 173 struct wl_object *object = &resource->object; in verify_objects() 186 if (res && res->client != resource->client) { in verify_objects() 200 handle_array(struct wl_resource *resource, uint32_t opcode, in handle_array() argument 205 struct wl_object *object = &resource->object; in handle_array() 207 if (resource->client->error) in handle_array() [all …]
|
D | wayland-server-core.h | 336 struct wl_resource *resource, 475 typedef void (*wl_resource_destroy_func_t)(struct wl_resource *resource); 494 wl_resource_post_event(struct wl_resource *resource, 498 wl_resource_post_event_array(struct wl_resource *resource, 502 wl_resource_queue_event(struct wl_resource *resource, 506 wl_resource_queue_event_array(struct wl_resource *resource, 511 wl_resource_post_error(struct wl_resource *resource, 515 wl_resource_post_no_memory(struct wl_resource *resource); 526 wl_resource_set_implementation(struct wl_resource *resource, 532 wl_resource_set_dispatcher(struct wl_resource *resource, [all …]
|
D | wayland-shm.c | 56 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/ltp/testcases/kernel/syscalls/getrlimit/ |
D | getrlimit03.c | 56 static int getrlimit_u64(int resource, struct rlimit64 *rlim) in getrlimit_u64() argument 58 return tst_syscall(__NR_prlimit64, 0, resource, NULL, rlim); in getrlimit_u64() 72 static int getrlimit_ulong(int resource, struct rlimit_ulong *rlim) in getrlimit_ulong() argument 74 return syscall(__NR_getrlimit_ulong, resource, rlim); in getrlimit_ulong() 84 static int getrlimit_long(int resource, struct rlimit_long *rlim) in getrlimit_long() argument 86 return syscall(__NR_getrlimit, resource, rlim); in getrlimit_long() 90 static int compare_retval(int resource, int ret_u64, int errno_u64, in compare_retval() argument 96 resource, ret_u64, tst_strerrno(errno_u64), in compare_retval() 97 other_syscall, resource, ret_other, in compare_retval() 105 static int compare_u64_ulong(int resource, uint64_t val_u64, in compare_u64_ulong() argument [all …]
|
/external/mesa3d/src/egl/wayland/wayland-drm/ |
D | wayland-drm.c | 43 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/mesa3d/src/gallium/drivers/tegra/ |
D | tegra_screen.c | 168 struct tegra_resource *resource) in tegra_screen_import_resource() argument 178 status = screen->gpu->resource_get_handle(screen->gpu, NULL, resource->gpu, in tegra_screen_import_resource() 190 resource->modifier = handle.modifier; in tegra_screen_import_resource() 191 resource->stride = handle.stride; in tegra_screen_import_resource() 194 err = drmPrimeFDToHandle(screen->fd, fd, &resource->handle); in tegra_screen_import_resource() 209 struct tegra_resource *resource; in tegra_screen_resource_create() local 212 resource = calloc(1, sizeof(*resource)); in tegra_screen_resource_create() 213 if (!resource) in tegra_screen_resource_create() 230 resource->gpu = screen->gpu->resource_create_with_modifiers(screen->gpu, in tegra_screen_resource_create() 233 if (!resource->gpu) in tegra_screen_resource_create() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/ |
D | tpu-variable-runtime-reformatting.mlir | 7 func @main(%arg0: tensor<*x!tf.resource<tensor<f32>>> {tf.device = "/device:TPU:0"}, 8 %arg1: tensor<*x!tf.resource<tensor<f32>>> {tf.device = "/device:TPU:1"}, 9 %arg2: tensor<*x!tf.resource<tensor<3x3x1x32xf32>>> {tf.device = "/device:TPU:0"}, 10 %arg3: tensor<*x!tf.resource<tensor<3x3x1x32xf32>>> {tf.device = "/device:TPU:1"}) { 25 : (tensor<i32>, tensor<*x!tf.resource<tensor<f32>>>, tensor<*x!tf.resource<tensor<f32>>>, 26 … tensor<*x!tf.resource<tensor<3x3x1x32xf32>>>, tensor<*x!tf.resource<tensor<3x3x1x32xf32>>>) 27 -> (tensor<i32>, tensor<*x!tf.resource<tensor<f32>>>, tensor<*x!tf.resource<tensor<f32>>>, 28 … tensor<*x!tf.resource<tensor<3x3x1x32xf32>>>, tensor<*x!tf.resource<tensor<3x3x1x32xf32>>>) 31 // CHECK-SAME: as %[[V0:.*]]: tensor<*x!tf.resource<tensor<f32>>>, 32 // CHECK-SAME: as %[[V1:.*]]: tensor<*x!tf.resource<tensor<3x3x1x32xf32>>>, [all …]
|
D | resource-device-inference.mlir | 1 // RUN: tf-opt -split-input-file -verify-diagnostics -tf-resource-device-inference %s | FileCheck %… 8 %arg0: tensor<*x!tf.resource<tensor<32xf32>>> {tf.device = "/TPU:0"}, 9 %arg1: tensor<*x!tf.resource<tensor<32xf32>>> {tf.device = "/TPU:1"}) { 15 : () -> tensor<*x!tf.resource<tensor<32xf32>>> 18 %id0 = "tf.Identity"(%arg0) : (tensor<*x!tf.resource<tensor<32xf32>>>) 19 -> tensor<*x!tf.resource<tensor<32xf32>>> 22 %id1 = "tf.Identity"(%id0) : (tensor<*x!tf.resource<tensor<32xf32>>>) 23 -> tensor<*x!tf.resource<tensor<32xf32>>> 26 %id2 = "tf.Identity"(%var_handle) : (tensor<*x!tf.resource<tensor<32xf32>>>) 27 -> tensor<*x!tf.resource<tensor<32xf32>>> [all …]
|
D | side-effect-analysis-test.mlir | 4 // resource. 9 %arg0: tensor<*x!tf.resource<tensor<32xf32>>>, 10 %arg1: tensor<*x!tf.resource<tensor<32xf32>>>, 19 … %read0 = "tf.ReadVariableOp"(%arg0) : (tensor<*x!tf.resource<tensor<32xf32>>>) -> tensor<32xf32> 22 …"tf.AssignVariableOp"(%arg0, %arg2) : (tensor<*x!tf.resource<tensor<32xf32>>>, tensor<32xf32>) -> … 26 … %read1 = "tf.ReadVariableOp"(%arg1) : (tensor<*x!tf.resource<tensor<32xf32>>>) -> tensor<32xf32> 29 …VarHandleOp"() {container = "c", shared_name = "v0"} : () -> tensor<*x!tf.resource<tensor<32xf32>>> 31 …%read2 = "tf.ReadVariableOp"(%var_handle) : (tensor<*x!tf.resource<tensor<32xf32>>>) -> tensor<32x… 34 …"tf.AssignVariableOp"(%arg1, %read0) : (tensor<*x!tf.resource<tensor<32xf32>>>, tensor<32xf32>) ->… 38 …"tf.AssignVariableOp"(%arg0, %read2) : (tensor<*x!tf.resource<tensor<32xf32>>>, tensor<32xf32>) ->… [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/request/target/ |
D | GlideDrawableImageViewTarget.java | 5 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/icu/icu4c/source/data/translit/ |
D | root.txt | 23 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/u-boot/include/linux/ |
D | ioport.h | 18 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/ |
D | resource_op_kernel_test.cc | 57 StubResource* resource() LOCKS_EXCLUDED(mu_) { in resource() function in tensorflow::__anond205bfce0111::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() 145 StubResource* resource; in TEST_F() local 147 mgr_.Lookup<StubResource>(mgr_.default_container(), key, &resource)); in TEST_F() 148 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/ |
D | MonitoredResourceTest.java | 45 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/libtextclassifier/native/utils/ |
D | resources.cc | 79 const ResourceEntry* resource, const std::vector<Locale>& locales) const { in BestResourceForLocales() argument 83 const auto* resources = resource->resource(); in BestResourceForLocales() 119 if (entry == nullptr || entry->resource() == nullptr) { in GetResourceContent() 127 const auto* resource = entry->resource()->Get(resource_id); in GetResourceContent() local 128 if (resource->content() != nullptr) { in GetResourceContent() 129 *result = resource->content()->str(); in GetResourceContent() 131 } else if (resource->compressed_content() != nullptr) { in GetResourceContent() 136 decompressor->MaybeDecompress(resource->compressed_content(), result)) { in GetResourceContent() 153 for (auto& resource : entry->resource) { in CompressResources() local 154 if (resource->content.empty()) { in CompressResources() [all …]
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | tensor_array_ops.cc | 51 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 …]
|
D | stack_ops.cc | 40 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/ |
D | resource_loader.py | 12 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 …]
|