Home
last modified time | relevance | path

Searched refs:region (Results 1 – 25 of 2776) sorted by relevance

12345678910>>...112

/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/
DShadowNativeRegionTest.java123 private Region region; field in ShadowNativeRegionTest
127 assertTrue(region.contains(area[i][0], area[i][1])); in verifyPointsInsideRegion()
133 assertFalse(region.contains(area[i][0], area[i][1])); in verifyPointsOutsideRegion()
139 region = new Region(); in setup()
171 assertTrue(region.set(oriRegion)); in testSet1()
172 assertEquals(1, region.getBounds().left); in testSet1()
173 assertEquals(2, region.getBounds().top); in testSet1()
174 assertEquals(3, region.getBounds().right); in testSet1()
175 assertEquals(4, region.getBounds().bottom); in testSet1()
181 assertTrue(region.set(rect)); in testSet2()
[all …]
/external/libchrome/base/memory/
Dplatform_shared_memory_region_unittest.cc29 PlatformSharedMemoryRegion region; in TEST_F() local
30 EXPECT_FALSE(region.IsValid()); in TEST_F()
31 WritableSharedMemoryMapping mapping = MapForTesting(&region); in TEST_F()
33 PlatformSharedMemoryRegion duplicate = region.Duplicate(); in TEST_F()
35 EXPECT_FALSE(region.ConvertToReadOnly()); in TEST_F()
40 PlatformSharedMemoryRegion region = in TEST_F() local
42 EXPECT_FALSE(region.IsValid()); in TEST_F()
54 PlatformSharedMemoryRegion region = in TEST_F() local
56 EXPECT_FALSE(region.IsValid()); in TEST_F()
69 PlatformSharedMemoryRegion region = in TEST_F() local
[all …]
Dshared_memory_region_unittest.cc55 TypeParam region; in TYPED_TEST() local
56 EXPECT_FALSE(region.IsValid()); in TYPED_TEST()
58 typename TypeParam::MappingType mapping = region.Map(); in TYPED_TEST()
121 TypeParam region = TypeParam::Deserialize(std::move(platform_region)); in TYPED_TEST() local
122 EXPECT_TRUE(region.IsValid()); in TYPED_TEST()
124 typename TypeParam::MappingType mapping = region.Map(); in TYPED_TEST()
160 TypeParam region; in TYPED_TEST() local
162 std::tie(region, rw_mapping) = CreateMappedRegion<TypeParam>(kDataSize); in TYPED_TEST()
163 ASSERT_TRUE(region.IsValid()); in TYPED_TEST()
173 region.MapAt(bytes_offset, kDataSize - bytes_offset); in TYPED_TEST()
[all …]
/external/cronet/base/memory/
Dplatform_shared_memory_region_unittest.cc44 PlatformSharedMemoryRegion region; in TEST_F() local
45 EXPECT_FALSE(region.IsValid()); in TEST_F()
46 WritableSharedMemoryMapping mapping = MapForTesting(&region); in TEST_F()
48 PlatformSharedMemoryRegion duplicate = region.Duplicate(); in TEST_F()
50 EXPECT_FALSE(region.ConvertToReadOnly()); in TEST_F()
55 PlatformSharedMemoryRegion region = in TEST_F() local
57 EXPECT_FALSE(region.IsValid()); in TEST_F()
69 PlatformSharedMemoryRegion region = in TEST_F() local
71 EXPECT_FALSE(region.IsValid()); in TEST_F()
82 PlatformSharedMemoryRegion region = in TEST_F() local
[all …]
Dunsafe_shared_memory_pool.cc21 UnsafeSharedMemoryRegion region, in Handle() argument
24 : region_(std::move(region)), in Handle()
61 auto region = std::move(regions_.back()); in MaybeAllocateBuffer() local
63 DCHECK_GE(region.first.GetSize(), region_size_); in MaybeAllocateBuffer()
65 std::move(region.first), in MaybeAllocateBuffer()
66 std::move(region.second), this); in MaybeAllocateBuffer()
70 auto region = UnsafeSharedMemoryRegion::Create(region_size_); in MaybeAllocateBuffer() local
71 if (!region.IsValid()) in MaybeAllocateBuffer()
74 WritableSharedMemoryMapping mapping = region.Map(); in MaybeAllocateBuffer()
79 std::move(region), std::move(mapping), this); in MaybeAllocateBuffer()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_regions.c113 struct intel_region *region; in intel_region_alloc_internal() local
115 region = calloc(sizeof(*region), 1); in intel_region_alloc_internal()
116 if (region == NULL) in intel_region_alloc_internal()
117 return region; in intel_region_alloc_internal()
119 region->cpp = cpp; in intel_region_alloc_internal()
120 region->width = width; in intel_region_alloc_internal()
121 region->height = height; in intel_region_alloc_internal()
122 region->pitch = pitch; in intel_region_alloc_internal()
123 region->refcount = 1; in intel_region_alloc_internal()
124 region->bo = buffer; in intel_region_alloc_internal()
[all …]
/external/arm-trusted-firmware/plat/nxp/common/setup/
Dls_common.c67 (void *) info_dram_regions->region[i].addr, in mmap_add_ddr_regions_statically()
68 (void *) (info_dram_regions->region[i].addr in mmap_add_ddr_regions_statically()
69 + info_dram_regions->region[i].size in mmap_add_ddr_regions_statically()
71 mmap_add_region(info_dram_regions->region[i].addr, in mmap_add_ddr_regions_statically()
72 info_dram_regions->region[i].addr, in mmap_add_ddr_regions_statically()
73 info_dram_regions->region[i].size, in mmap_add_ddr_regions_statically()
77 if (info_dram_regions->region[i].size > in mmap_add_ddr_regions_statically()
80 (void *) (info_dram_regions->region[i].addr in mmap_add_ddr_regions_statically()
81 + info_dram_regions->region[i].size), in mmap_add_ddr_regions_statically()
82 (void *) (info_dram_regions->region[i].addr in mmap_add_ddr_regions_statically()
[all …]
/external/ImageMagick/MagickCore/
Ddistribute-cache.c549 region; in ReadDistributeCacheMetacontent() local
561 length=sizeof(region.width)+sizeof(region.height)+sizeof(region.x)+ in ReadDistributeCacheMetacontent()
562 sizeof(region.y)+sizeof(length); in ReadDistributeCacheMetacontent()
567 (void) memcpy(&region.width,q,sizeof(region.width)); in ReadDistributeCacheMetacontent()
568 q+=sizeof(region.width); in ReadDistributeCacheMetacontent()
569 (void) memcpy(&region.height,q,sizeof(region.height)); in ReadDistributeCacheMetacontent()
570 q+=sizeof(region.height); in ReadDistributeCacheMetacontent()
571 (void) memcpy(&region.x,q,sizeof(region.x)); in ReadDistributeCacheMetacontent()
572 q+=sizeof(region.x); in ReadDistributeCacheMetacontent()
573 (void) memcpy(&region.y,q,sizeof(region.y)); in ReadDistributeCacheMetacontent()
[all …]
/external/mesa3d/src/gallium/drivers/zink/
Dzink_blit.c44 VkImageResolve region = {}; in blit_resolve() local
46 region.srcSubresource.aspectMask = src->aspect; in blit_resolve()
47 region.srcSubresource.mipLevel = info->src.level; in blit_resolve()
48 region.srcOffset.x = info->src.box.x; in blit_resolve()
49 region.srcOffset.y = info->src.box.y; in blit_resolve()
52 region.srcOffset.z = 0; in blit_resolve()
53 region.srcSubresource.baseArrayLayer = info->src.box.z; in blit_resolve()
54 region.srcSubresource.layerCount = info->src.box.depth; in blit_resolve()
57 region.srcOffset.z = info->src.box.z; in blit_resolve()
58 region.srcSubresource.baseArrayLayer = 0; in blit_resolve()
[all …]
/external/crosvm/swap/src/
Dpage_handler.rs215 match regions.iter().position(|region| { in create()
216 if region.head_page_idx < head_page_idx { in create()
217 region.head_page_idx + region.file.num_pages() > head_page_idx in create()
219 region.head_page_idx < head_page_idx + num_of_pages in create()
223 let region = &regions[i]; in create() localVariable
227 page_idx_to_addr(region.head_page_idx) in create()
228 ..(page_idx_to_addr(region.head_page_idx + region.file.num_pages())), in create()
274 regions.iter_mut().find(|region| { in find_region()
275 region.head_page_idx <= page_idx in find_region()
276 && page_idx < region.head_page_idx + region.file.num_pages() in find_region()
[all …]
/external/webrtc/modules/desktop_capture/
Dscreen_capturer_helper_unittest.cc23 DesktopRegion region(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F() local
24 capturer_helper_.InvalidateRegion(region); in TEST_F()
26 capturer_helper_.TakeInvalidRegion(&region); in TEST_F()
27 EXPECT_TRUE(region.is_empty()); in TEST_F()
31 DesktopRegion region; in TEST_F() local
32 capturer_helper_.TakeInvalidRegion(&region); in TEST_F()
33 EXPECT_TRUE(region.is_empty()); in TEST_F()
35 region.SetRect(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F()
36 capturer_helper_.InvalidateRegion(region); in TEST_F()
37 capturer_helper_.TakeInvalidRegion(&region); in TEST_F()
[all …]
/external/cldr/tools/cldr-code/src/main/resources/org/unicode/cldr/icu/
DidList.txt592 # region codes: ISO 3166 and UN codes
595 region; AA; PRIVATE USE; 2004-08-01; ;
596 region; AD; Andorra; 2004-07-06; ;
597 region; AE; United Arab Emirates; 2004-07-06; ;
598 region; AF; Afghanistan; 2004-07-06; ;
599 region; AG; Antigua and Barbuda; 2004-07-06; ;
600 region; AI; Anguilla; 2004-07-06; ;
601 region; AL; Albania; 2004-07-06; ;
602 region; AM; Armenia; 2004-07-06; ;
603 region; AN; Netherlands Antilles; 2004-07-06; ;
[all …]
/external/flatbuffers/src/
Dannotated_binary_text_gen.cpp56 std::string ToValueString(const BinaryRegion &region, const uint8_t *binary) { in ToValueString() argument
59 const T val = ReadScalar<T>(binary + region.offset); in ToValueString()
60 const uint64_t start_index = region.offset + region.length - 1; in ToValueString()
61 for (uint64_t i = 0; i < region.length; ++i) { in ToValueString()
71 std::string ToValueString<std::string>(const BinaryRegion &region, in ToValueString() argument
73 return std::string(reinterpret_cast<const char *>(binary + region.offset), in ToValueString()
74 static_cast<size_t>(region.array_length)); in ToValueString()
77 static std::string ToValueString(const BinaryRegion &region, in ToValueString() argument
82 if (region.array_length) { in ToValueString()
83 if (region.type == BinaryRegionType::Uint8 || in ToValueString()
[all …]
/external/openscreen/platform/impl/
Dtls_write_buffer_unittest.cc60 auto region = buffer.GetReadableRegion(); in TEST() local
61 auto* const buffer_begin = region.data(); in TEST()
63 EXPECT_EQ(region.size(), partial_buffer_size); in TEST()
64 EXPECT_TRUE(std::all_of(region.begin(), region.end(), in TEST()
69 region = buffer.GetReadableRegion(); in TEST()
70 EXPECT_EQ(region.data(), buffer_begin + buffer_size / 2); in TEST()
71 EXPECT_EQ(region.size(), buffer_size / 4); in TEST()
72 EXPECT_TRUE(std::all_of(region.begin(), region.end(), in TEST()
79 region = buffer.GetReadableRegion(); in TEST()
80 EXPECT_EQ(region.data(), buffer_begin + buffer_size / 2); in TEST()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dkvm_util.c463 struct userspace_mem_region *region; in kvm_vm_restart() local
469 hash_for_each(vmp->regions.slot_hash, ctr, region, slot_node) { in kvm_vm_restart()
470 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, &region->region); in kvm_vm_restart()
475 ret, errno, region->region.slot, in kvm_vm_restart()
476 region->region.flags, in kvm_vm_restart()
477 region->region.guest_phys_addr, in kvm_vm_restart()
478 region->region.memory_size); in kvm_vm_restart()
537 struct userspace_mem_region *region = in userspace_mem_region_find() local
539 uint64_t existing_start = region->region.guest_phys_addr; in userspace_mem_region_find()
540 uint64_t existing_end = region->region.guest_phys_addr in userspace_mem_region_find()
[all …]
/external/e2fsprogs/e2fsck/
Dregion.c38 region_t region; in region_create() local
41 retval = ext2fs_get_memzero(sizeof(struct region_struct), &region); in region_create()
45 region->min = min; in region_create()
46 region->max = max; in region_create()
47 region->last = NULL; in region_create()
48 return region; in region_create()
51 void region_free(region_t region) in region_free() argument
55 for (r = region->allocated; r; r = next) { in region_free()
59 memset(region, 0, sizeof(struct region_struct)); in region_free()
60 ext2fs_free_mem(&region); in region_free()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLSR.java25 public final String region; field in LSR
30 public LSR(String language, String script, String region, int flags) { in LSR() argument
33 this.region = region; in LSR()
34 regionIndex = indexForRegion(region); in LSR()
43 public static final int indexForRegion(String region) { in indexForRegion() argument
44 if (region.length() == 2) { in indexForRegion()
45 int a = region.charAt(0) - 'A'; in indexForRegion()
47 int b = region.charAt(1) - 'A'; in indexForRegion()
50 } else if (region.length() == 3) { in indexForRegion()
51 int a = region.charAt(0) - '0'; in indexForRegion()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLSR.java21 public final String region; field in LSR
26 public LSR(String language, String script, String region, int flags) { in LSR() argument
29 this.region = region; in LSR()
30 regionIndex = indexForRegion(region); in LSR()
39 public static final int indexForRegion(String region) { in indexForRegion() argument
40 if (region.length() == 2) { in indexForRegion()
41 int a = region.charAt(0) - 'A'; in indexForRegion()
43 int b = region.charAt(1) - 'A'; in indexForRegion()
46 } else if (region.length() == 3) { in indexForRegion()
47 int a = region.charAt(0) - '0'; in indexForRegion()
[all …]
/external/arm-trusted-firmware/plat/mediatek/mt8192/drivers/emi_mpu/
Demi_mpu.c23 unsigned int region; in _emi_mpu_set_protection() local
25 region = (start >> 24) & 0xFF; in _emi_mpu_set_protection()
30 if ((region >= EMI_MPU_REGION_NUM) || (dgroup > EMI_MPU_DGROUP_NUM)) { in _emi_mpu_set_protection()
31 WARN("Region:%u or dgroup:%u is wrong!\n", region, dgroup); in _emi_mpu_set_protection()
46 mmio_write_32(EMI_MPU_SA(region), start); in _emi_mpu_set_protection()
47 mmio_write_32(EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
48 mmio_write_32(EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
57 int region, i; in dump_emi_mpu_regions() local
60 for (region = 0; region < 8; ++region) { in dump_emi_mpu_regions()
62 apc[i] = mmio_read_32(EMI_MPU_APC(region, i)); in dump_emi_mpu_regions()
[all …]
/external/OpenCL-CTS/test_conformance/mem_host_flags/
DC_host_memory_block.h43 size_t * region,
50 size_t * region,
56 size_t * region,
166 size_t * region, in Equal_rect() argument
170 size_t row_pitch = host_row_pitch ? host_row_pitch : region[0]; in Equal_rect()
171 size_t slice_pitch = host_slice_pitch ? host_row_pitch : region[1]; in Equal_rect()
175 size_t total = region[0] * region[1] * region[2]; in Equal_rect()
179 for (z=0; z<region[2]; z++) in Equal_rect()
180 for (y=0; y<region[1]; y++) in Equal_rect()
181 for (x=0; x<region[0]; x++) in Equal_rect()
[all …]
/external/zucchini/
Drel32_finder.cc16 ConstBufferView region, in Abs32GapFinder() argument
20 region_end_(region.end()), in Abs32GapFinder()
24 DCHECK_GE(region.begin(), image.begin()); in Abs32GapFinder()
25 DCHECK_LE(region.end(), image.end()); in Abs32GapFinder()
28 base::checked_cast<offset_t>(region.begin() - image.begin()); in Abs32GapFinder()
35 cur_lo_ = region.begin(); in Abs32GapFinder()
69 void Rel32Finder::SetRegion(ConstBufferView region) { in SetRegion() argument
70 region_ = region; in SetRegion()
71 accept_it_ = region.begin(); in SetRegion()
108 Rel32Finder::NextIterators Rel32FinderX86::Scan(ConstBufferView region) { in Scan() argument
[all …]
/external/mesa3d/src/gallium/frontends/clover/api/
Dtransfer.cpp43 pitch(const vector_t &region, vector_t pitch) { in pitch() argument
45 map(multiplies(), region, pitch))) { in pitch()
59 size(const vector_t &pitch, const vector_t &region) { in size() argument
60 if (any_of(is_zero(), region)) in size()
63 return dot(pitch, region - vector_t{ 0, 1, 1 }); in size()
83 const vector_t &pitch, const vector_t &region) { in validate_object() argument
88 if (any_of(greater(), map(multiplies(), pitch, region), tail(pitch))) in validate_object()
92 if (dot(pitch, origin) + size(pitch, region) > mem.size()) in validate_object()
95 if (any_of(is_zero(), region)) in validate_object()
104 const vector_t &orig, const vector_t &region) { in validate_object() argument
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_meta_copy.c128 const VkBufferImageCopy2KHR* region) in copy_buffer_to_image() argument
162 meta_region_offset_el(image, &region->imageOffset); in copy_buffer_to_image()
164 .width = region->bufferRowLength ? in copy_buffer_to_image()
165 region->bufferRowLength : region->imageExtent.width, in copy_buffer_to_image()
166 .height = region->bufferImageHeight ? in copy_buffer_to_image()
167 region->bufferImageHeight : region->imageExtent.height, in copy_buffer_to_image()
174 meta_region_extent_el(image, image->type, &region->imageExtent); in copy_buffer_to_image()
184 &region->imageSubresource, in copy_buffer_to_image()
185 region->imageSubresource.aspectMask); in copy_buffer_to_image()
194 .aspectMask = region->imageSubresource.aspectMask, in copy_buffer_to_image()
[all …]
/external/tensorflow/tensorflow/core/transforms/utils/
Dutils.cc70 static void UpdateIfPresent(Region &region, in UpdateIfPresent() argument
72 unsigned index = region.getRegionNumber(); in UpdateIfPresent()
73 auto iface = cast<PreservedAttributesInterface>(region.getParentOp()); in UpdateIfPresent()
79 Region &region, function_ref<void(SmallVectorImpl<Attribute> &)> update) { in UpdateArgAttrsIfPresent() argument
80 UpdateIfPresent(region, [&](RegionAttr attrs) { in UpdateArgAttrsIfPresent()
90 Region &region, function_ref<void(SmallVectorImpl<Attribute> &)> update) { in UpdateResultAttrsIfPresent() argument
91 UpdateIfPresent(region, [&](RegionAttr attrs) { in UpdateResultAttrsIfPresent()
99 LoopRegionArgumentUpdate LoopRegionAddArgument(Region &region, Type type) { in LoopRegionAddArgument() argument
101 BlockArgument data = region.insertArgument( in LoopRegionAddArgument()
102 GetLoopRegionDataArgs(region).size(), type, region.getLoc()); in LoopRegionAddArgument()
[all …]
/external/arm-trusted-firmware/plat/mediatek/mt8195/drivers/emi_mpu/
Demi_mpu.c25 unsigned int region; in _emi_mpu_set_protection() local
27 region = (start >> 24) & 0xFF; in _emi_mpu_set_protection()
32 if ((region >= EMI_MPU_REGION_NUM) || (dgroup > EMI_MPU_DGROUP_NUM)) { in _emi_mpu_set_protection()
38 if (region_lock_state[region] == 1) { in _emi_mpu_set_protection()
44 region_lock_state[region] = 1; in _emi_mpu_set_protection()
60 mmio_write_32(EMI_MPU_SA(region), start); in _emi_mpu_set_protection()
61 mmio_write_32(EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
62 mmio_write_32(EMI_MPU_APC(region, dgroup), apc); in _emi_mpu_set_protection()
65 mmio_write_32(SUB_EMI_MPU_SA(region), start); in _emi_mpu_set_protection()
66 mmio_write_32(SUB_EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
[all …]

12345678910>>...112