/frameworks/native/services/surfaceflinger/ |
LayerProtoHelper.cpp | 21 void LayerProtoHelper::writeToProto(const Region& region, RegionProto* regionProto) { 22 Region::const_iterator head = region.begin(); 23 Region::const_iterator const tail = region.end(); 24 uint64_t address = reinterpret_cast<uint64_t>(®ion);
|
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/ |
MappingFileProvider.java | 153 * @param region two-letter uppercase ISO country codes as defined by ISO 3166-1 156 String getFileName(int countryCallingCode, String language, String script, String region) { 166 String languageCode = findBestMatchingLanguageCode(setOfLangs, language, script, region); 177 Set<String> setOfLangs, String language, String script, String region) { 178 StringBuilder fullLocale = constructFullLocale(language, script, region); 190 if (onlyOneOfScriptOrRegionIsEmpty(script, region)) { 194 } else if (script.length() > 0 && region.length() > 0) { 201 StringBuilder langWithRegion = new StringBuilder(language).append('_').append(region); 214 private boolean onlyOneOfScriptOrRegionIsEmpty(String script, String region) { 215 return (script.length() == 0 && region.length() > 0 [all...] |
/external/mesa3d/src/gallium/winsys/svga/drm/ |
vmw_buffer.c | 63 struct vmw_region *region; member in struct:vmw_gmr_buffer 102 vmw_ioctl_region_unmap(buf->region); 104 vmw_ioctl_region_destroy(buf->region); 119 buf->map = vmw_ioctl_region_map(buf->region); 127 ret = vmw_ioctl_syncforcpu(buf->region, 147 vmw_ioctl_releasefromcpu(buf->region, 214 if ((pb_desc->usage & VMW_BUFFER_USAGE_SHARED) && desc->region) { 215 buf->region = desc->region; 217 buf->region = vmw_ioctl_region_create(vws, size) [all...] |
vmw_screen.h | 113 vmw_region_size(struct vmw_region *region); 172 vmw_ioctl_region_destroy(struct vmw_region *region); 175 vmw_ioctl_region_ptr(struct vmw_region *region); 178 vmw_ioctl_region_map(struct vmw_region *region); 180 vmw_ioctl_region_unmap(struct vmw_region *region); 203 vmw_ioctl_syncforcpu(struct vmw_region *region, 208 vmw_ioctl_releasefromcpu(struct vmw_region *region,
|
/external/skia/src/gpu/ops/ |
GrRegionOp.cpp | 31 const SkRegion& region) { 32 SkRegion::Iterator iter(region); 63 const SkRegion& region, GrAAType aaType, 65 return Helper::FactoryHelper<RegionOp>(std::move(paint), viewMatrix, region, aaType, 70 const SkRegion& region, GrAAType aaType, const GrUserStencilSettings* stencilSettings) 76 info.fRegion = region; 78 SkRect bounds = SkRect::Make(region.getBounds()); 93 str.appendf("%d: Color: 0x%08x, Region with %d rects\n", i, info.fColor, 178 std::unique_ptr<GrDrawOp> Make(GrPaint&& paint, const SkMatrix& viewMatrix, const SkRegion& region, 183 return RegionOp::Make(std::move(paint), viewMatrix, region, aaType, stencilSettings) 190 SkRegion region; local [all...] |
/external/skqp/src/gpu/ops/ |
GrRegionOp.cpp | 31 const SkRegion& region) { 32 SkRegion::Iterator iter(region); 63 const SkRegion& region, GrAAType aaType, 65 return Helper::FactoryHelper<RegionOp>(std::move(paint), viewMatrix, region, aaType, 70 const SkRegion& region, GrAAType aaType, const GrUserStencilSettings* stencilSettings) 76 info.fRegion = region; 78 SkRect bounds = SkRect::Make(region.getBounds()); 93 str.appendf("%d: Color: 0x%08x, Region with %d rects\n", i, info.fColor, 178 std::unique_ptr<GrDrawOp> Make(GrPaint&& paint, const SkMatrix& viewMatrix, const SkRegion& region, 183 return RegionOp::Make(std::move(paint), viewMatrix, region, aaType, stencilSettings) 190 SkRegion region; local [all...] |
/frameworks/base/libs/hwui/tests/common/scenes/ |
RectGridAnimation.cpp | 37 SkRegion region; 40 region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op); 46 canvas.drawRegion(region, paint);
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
intel_mipmap_tree.c | 195 mt->region = intel_region_alloc(intel->intelScreen, 202 /* If the region is too large to fit in the aperture, we need to use the 206 if (y_or_x && mt->region->bo->size >= intel->max_gtt_map_object_size) { 209 intel_region_release(&mt->region); 211 mt->region = intel_region_alloc(intel->intelScreen, 221 if (!mt->region) { 241 struct intel_region *region = calloc(1, sizeof(*region)); local 242 if (!region) 260 free(region); 551 struct intel_region *region = mt->region; local [all...] |
intel_blit.c | 159 * this copy when the region's pitch is less than 32k. 161 if (src_mt->region->pitch > 32768 || 162 dst_mt->region->pitch > 32768) { 173 int src_pitch = src_mt->region->pitch; 192 src_mt->region->bo, src_mt->offset, 193 src_mt->region->tiling, 194 dst_mt->region->pitch, 195 dst_mt->region->bo, dst_mt->offset, 196 dst_mt->region->tiling, 398 struct intel_region *region; local 651 struct intel_region *region = mt->region; local [all...] |
/external/libmojo/mojo/public/cpp/bindings/tests/ |
struct_unittest.cc | 103 NamedRegionPtr region; local 105 NamedRegionPtr clone_region = region.Clone(); 108 region = NamedRegion::New(); 109 clone_region = region.Clone(); 113 region->name.emplace("hello world"); 114 clone_region = region.Clone(); 115 EXPECT_EQ(region->name, clone_region->name); 117 region->rects.emplace(2); 118 (*region->rects)[1] = MakeRect(); 119 clone_region = region.Clone() [all...] |
/external/syslinux/gpxe/src/arch/i386/firmware/pcbios/ |
hidemem.c | 36 * A hidden region of gPXE 38 * This represents a region that will be edited out of the system's 79 * Hide region of memory from system memory map 81 * @v region Hidden memory region 82 * @v start Start of region 83 * @v end End of region 85 static void hide_region ( struct hidden_region *region, 88 /* Some operating systems get a nasty shock if a region of the 90 * safer by rounding out our edited region [all...] |
/external/webrtc/webrtc/modules/desktop_capture/ |
desktop_region.h | 23 // DesktopRegion represents a region of the screen or window. 25 // Internally each region is stored as a set of rows where each row contains one 47 // Row represents a single row of a region. A row is set of rectangles that 59 // Type used to store list of rows in the region. The bottom position of row 66 // The region must not be mutated while the iterator is used. 101 bool Equals(const DesktopRegion& region) const; 103 // Reset the region to be empty. 106 // Reset region to contain just |rect|. 109 // Adds specified rect(s) or region to the region [all...] |
desktop_region.cc | 58 bool DesktopRegion::Equals(const DesktopRegion& region) const { 61 Rows::const_iterator it2 = region.rows_.begin(); 63 if (it2 == region.rows_.end() || 73 return it2 == region.rows_.end(); 168 void DesktopRegion::AddRegion(const DesktopRegion& region) { 171 for (Iterator it(region); !it.IsAtEnd(); it.Advance()) { 263 void DesktopRegion::IntersectWith(const DesktopRegion& region) { 266 Intersect(old_region, region); 270 DesktopRegion region; local 271 region.AddRect(rect) 365 DesktopRegion region; local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
AndroidXmlAutoEditStrategy.java | 101 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(textStart); local 102 if (region != null && region.getType().equals(XML_TAG_NAME)) { 177 } else if (region != null && region.getType().equals(XML_CONTENT)) { 198 String text = region.getText(); 199 int regionStart = region.getStartOffset(); 210 IStructuredDocumentRegion previous = region.getPrevious(); 269 IStructuredDocumentRegion next = region.getNext(); 380 IStructuredDocumentRegion region local 405 IStructuredDocumentRegion region = doc.getRegionAtCharacterOffset(start); local [all...] |
/system/core/libsystem/include/system/ |
radio.h | 65 /* Region a particular radio band configuration corresponds to. Not used at the HAL. 67 * individual band descriptors for each supported region. */ 122 /* Used internally by the framework to represent a band for s specific region */ 124 radio_region_t region; member in struct:radio_band_config 148 * unique handle and one band configuration per region. */ 224 radio_rds_t radio_rds_for_region(bool rds, radio_region_t region) { 227 switch(region) { 241 radio_deemphasis_t radio_demephasis_for_region(radio_region_t region) { 242 switch(region) {
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
ICUCurrencyMetaInfo.java | 75 // priorities in order within region. This means we don't need 82 if (filter.region != null) { 83 needed |= Region; 96 if (filter.region != null) { 97 ICUResourceBundle b = regionInfo.findWithFallback(filter.region); 114 String region = b.getKey(); local 115 if (needed == Region) { 164 collector.collect(region, currency, from, to, i, tender); 200 // Data is already unique by region/priority, so we don't need to be concerned 205 public void collect(String region, String currency, long from, long to, int priority, boolean tender) [all...] |
/external/icu/icu4j/main/classes/currdata/src/com/ibm/icu/impl/ |
ICUCurrencyMetaInfo.java | 73 // priorities in order within region. This means we don't need 80 if (filter.region != null) { 81 needed |= Region; 94 if (filter.region != null) { 95 ICUResourceBundle b = regionInfo.findWithFallback(filter.region); 112 String region = b.getKey(); local 113 if (needed == Region) { 162 collector.collect(region, currency, from, to, i, tender); 198 // Data is already unique by region/priority, so we don't need to be concerned 203 public void collect(String region, String currency, long from, long to, int priority, boolean tender) [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
ZoomView.java | 97 // to find out the partial region in the full res image that we need 104 // Now the visible region we have is rotated, we need to reverse the 105 // rotation to find out the region in the original image 111 // Decode region 112 Rect region = new Rect(); local 113 visibleInImage.round(region); 115 // Make sure region to decode is inside the image. 116 region.intersect(0, 0, imageSize.x - 1, imageSize.y - 1); 118 if (region.width() == 0 || region.height() == 0) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
Utils.java | 21 String region = ""; local 26 region = language.substring(x+1); 29 x = region.indexOf("_"); 31 variant = region.substring(x+1); 32 region = region.substring(0, x); 34 return new Locale(language, region, variant);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
Utils.java | 17 String region = ""; local 22 region = language.substring(x+1); 25 x = region.indexOf("_"); 27 variant = region.substring(x+1); 28 region = region.substring(0, x); 30 return new Locale(language, region, variant);
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Collections/ |
HashList.cs | 53 #region Helper classes 70 #region Constructors 92 #region IDictionaryEnumerator Members 132 #region IEnumerator Members 188 #region Constructors 245 #region ICollection Members 269 #region IEnumerable Members 283 #region Constructors 316 #region ICollection Members 340 #region IEnumerable Member [all...] |
/external/libunwind/src/mi/ |
Gdyn-remote.c | 32 free_regions (unw_dyn_region_info_t *region) 34 if (region->next) 35 free_regions (region->next); 36 free (region); 59 unw_dyn_region_info_t *region; local 66 return 0; /* NULL region-list */ 73 region = calloc (1, _U_dyn_region_info_size (op_count)); 74 if (!region) 80 region->insn_count = insn_count; 81 region->op_count = op_count [all...] |
/external/icu/icu4c/source/common/ |
loclikely.cpp | 122 * Create a tag string from the supplied parameters. The lang, script and region 126 * If any of the language, script or region parameters are empty, and the alternateTags 127 * parameter is not NULL, it will be parsed for potential language, script and region tags 145 * @param region The region tag to use. 146 * @param regionLength The length of the region tag. 161 const char* region, 184 * script and region code without worrying about overrunning 282 region, 291 * Parse the alternateTags string for the region 863 char region[ULOC_COUNTRY_CAPACITY]; local 970 char region[ULOC_COUNTRY_CAPACITY]; local [all...] |
/external/skia/tests/ |
RegionTest.cpp | 65 // These test SkRegion::contains(Rect) and SkRegion::contains(Region) 234 DEF_TEST(Region, reporter) { 269 static void test_write(const SkRegion& region, skiatest::Reporter* r) { 270 const size_t bytesNeeded = region.writeToMemory(nullptr); 272 const size_t bytesWritten = region.writeToMemory(storage.get()); 278 REPORTER_ASSERT(r, region == copy); 282 // Test an empty region. 283 SkRegion region; local 284 REPORTER_ASSERT(r, region.isEmpty()); 285 test_write(region, r) 314 SkRegion region; local [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
ArrayBoundCheckerV2.cpp | 69 const MemRegion *region) { 71 switch (region->getKind()) { 79 region = cast<SubRegion>(region)->getSuperRegion(); 89 // some new logic here that reasons directly about memory region extents. 94 // memory access is within the extent of the base region. Since we 95 // have some flexibility in defining the base region, we can achieve 109 // before the first valid offset in the memory region. 254 /// Compute a raw byte offset from a base region. Used for array bounds 260 const MemRegion *region = location.getAsRegion() local [all...] |