Home
last modified time | relevance | path

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

123

/packages/modules/NeuralNetworks/tools/api/
DREADME.md76 context -- the *region* in which that line appears.
85 * A conditional region can enclose a section region.
86 * A section region can enclose a conditional region.
90 * A conditional region can be enclosed by a section region.
91 * A section region can be enclosed by a conditional region.
93 #### null region
95 A *null region* is a sequence of lines that is not part of any other region.
97 `%define` and `%define-kinds` consists of a single null region.
99 Within a null region, all lines other than directives are treated as comments
102 #### conditional region
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DZoomView.java112 Rect region = new Rect(); in doInBackground() local
113 visibleInImage.round(region); in doInBackground()
116 region.intersect(0, 0, imageSize.x - 1, imageSize.y - 1); in doInBackground()
118 if (region.width() == 0 || region.height() == 0) { in doInBackground()
119 Log.e(TAG, "Invalid size for partial region. Region: " + region.toString()); in doInBackground()
129 options.inSampleSize = getSampleFactor(region.width(), region.height()); in doInBackground()
135 options.inSampleSize = getSampleFactor(region.height(), region.width()); in doInBackground()
154 Bitmap b = mDecoder.decodeRegion(region, options); in doInBackground()
/packages/modules/Virtualization/vmbase/src/memory/
Dshared.rs144 let region = MemoryRegion { range: range.clone(), mem_type: MemoryType::ReadOnly }; in alloc_range() localVariable
145 self.check_allocatable(&region)?; in alloc_range()
150 self.add(region) in alloc_range()
163 let region = MemoryRegion { range: range.clone(), mem_type: MemoryType::ReadOnly }; in alloc_range_outside_main_memory() localVariable
164 self.check_no_overlap(&region)?; in alloc_range_outside_main_memory()
169 self.add(region) in alloc_range_outside_main_memory()
174 let region = MemoryRegion { range: range.clone(), mem_type: MemoryType::ReadWrite }; in alloc_range_mut() localVariable
175 self.check_allocatable(&region)?; in alloc_range_mut()
180 self.add(region) in alloc_range_mut()
229 fn check_allocatable(&self, region: &MemoryRegion) -> Result<()> { in check_allocatable()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPostalSplitter.java37 public String region; field in PostalSplitter.Postal
46 region = values.getAsString(StructuredPostal.REGION); in fromValues()
56 values.put(StructuredPostal.REGION, region); in toValues()
87 postal.region, postal.postcode, postal.country in join()
104 final boolean hasRegion = !TextUtils.isEmpty(postal.region); in joinJaJp()
133 builder.append(postal.region); in joinJaJp()
170 final boolean hasRegion = !TextUtils.isEmpty(postal.region); in joinEnUs()
207 builder.append(postal.region); in joinEnUs()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPostalSplitterTest.java99 String neighborhood, String city, String region, String postcode, String country) { in assertSplitPostal() argument
106 assertEquals(region, postal.region); in assertSplitPostal()
112 String neighborhood, String city, String region, String postcode, String country) { in assertJoinedPostal() argument
118 postal.region = region; in assertJoinedPostal()
DPostalSplitterForJapaneseTest.java115 String neighborhood, String city, String region, String postcode, String country) { in assertSplitPostal() argument
122 assertEquals(region, postal.region); in assertSplitPostal()
128 String neighborhood, String city, String region, String postcode, String country) { in assertJoinedPostal() argument
134 postal.region = region; in assertJoinedPostal()
/packages/services/Car/service/src/com/android/car/pm/
DCarAppMetadataReader.java154 for (String region: regions) { in getSupportedDrivingSafetyRegionsForActivityAsUser()
155 if (CarPackageManager.DRIVING_SAFETY_REGION_ALL.equals(region)) { in getSupportedDrivingSafetyRegionsForActivityAsUser()
172 for (String region: regions) { in isRegionSupported()
173 if (CarPackageManager.DRIVING_SAFETY_REGION_ALL.equals(region)) { in isRegionSupported()
176 if (currentRegion.equals(region)) { in isRegionSupported()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DUIStats.java97 public void setRegion(int region) { in setRegion() argument
98 mRegion = region; in setRegion()
156 public @NonNull UIStats.Builder setRegion(int region) { in setRegion() argument
157 mBuilding.mRegion = region; in setRegion()
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
DAttachmentGridItemView.java77 final Rect region = new Rect(); in onFinishInflate()
78 mCheckBox.getHitRect(region); in onFinishInflate()
79 region.inset(-touchAreaIncrease, -touchAreaIncrease); in onFinishInflate()
80 setTouchDelegate(new TouchDelegate(region, mCheckBox)); in onFinishInflate()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DOrientationTouchTransformer.java159 OrientationRectF region = mSwipeTouchRegions.get(mCachedDisplayInfo); in createOrAddTouchRegion() local
160 if (region != null) { in createOrAddTouchRegion()
209 private void resetSwipeRegions(Info region) { in resetSwipeRegions() argument
214 mCachedDisplayInfo = new CachedDisplayInfo(region.currentSize, region.rotation); in resetSwipeRegions()
217 regionToKeep = createRegionForDisplay(region); in resetSwipeRegions()
/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp957 float* region = in TEST_P() local
960 std::generate(region, region + problemSize * problemSize, [this] { return randFrac(); }); in TEST_P()
1339 float* region = static_cast<float*>( in TEST_P() local
1346 region); in TEST_P()
1349 std::fill(region, region + problemSize * problemSize, goldenOutput); in TEST_P()
1377 float* region = static_cast<float*>(ioMemories.getRegion(desc.mMemoryRegion)); in TEST_P() local
1378 std::copy(region, region + problemSize * problemSize, in TEST_P()
1415 float* region = static_cast<float*>(ioMemories.getRegion(desc.mMemoryRegion)); in TEST_P() local
1418 dump(region, region + problemSize * problemSize); in TEST_P()
1420 ASSERT_TRUE(std::equal(region, region + problemSize * problemSize, in TEST_P()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFaceClustering.java58 Rect region = face.getPosition(); in add() local
59 if (mCoverRegion.width() < region.width() && in add()
60 mCoverRegion.height() < region.height()) { in add()
/packages/modules/adb/coverage/
Dreport.sh15 --show-region-summary=false \
22 --show-region-summary=false
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DZonePickerSettingsTest.java115 private void testSelectTimeZone(String region, String timezone, String expectedTimeZoneOffset, in testSelectTimeZone() argument
128 wait(By.res("android", "search_src_text")).setText(region.substring(0, 2)); in testSelectTimeZone()
130 selectItemInList(new UiSelector().textContains(region)) in testSelectTimeZone()
/packages/apps/TV/common/src/com/android/tv/common/util/
DPostalCodeUtils.java106 public static boolean matches(@NonNull CharSequence postcode, @NonNull String region) { in matches() argument
107 Pattern pattern = REGION_PATTERN.get(region.toUpperCase()); in matches()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DIconNormalizer.java141 Region region = new Region(); in normalizeAdaptiveIcon() local
142 region.setPath(path, new Region(0, 0, size, size)); in normalizeAdaptiveIcon()
144 Rect hullBounds = region.getBounds(); in normalizeAdaptiveIcon()
145 int hullArea = GraphicsUtils.getArea(region); in normalizeAdaptiveIcon()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderAlgorithm.java429 private boolean isConfigurationRegionOccupied(Rect region, ItemConfiguration configuration, in isConfigurationRegionOccupied() argument
436 .anyMatch(cellAndSpan -> region.intersect( in isConfigurationRegionOccupied()
544 Rect region = new Rect(targetDestination[0], targetDestination[1], in getDirectionVectorForDrop() local
547 Rect dropRegionRect = mCellLayout.getIntersectingRectanglesInRegion(region, in getDirectionVectorForDrop()
549 if (dropRegionRect == null) dropRegionRect = new Rect(region); in getDirectionVectorForDrop()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarInsetsController.kt414 val region = in <lambda>() constant
429 region.op(bubbleBarBounds, Region.Op.UNION) in <lambda>()
431 insetsInfo.touchableRegion.set(region) in <lambda>()
433 debugTouchableRegion.lastSetTouchableBounds.set(region.bounds) in <lambda>()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/data/
DSectionParserTest.java161 private static RatingRegion createRatingRegionForTest(String values, int region) { in createRatingRegionForTest() argument
175 return new RatingRegion(region, "", regionalRatings); in createRatingRegionForTest()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DPostalCodeFragment.java81 String region = LocationUtils.getCurrentCountry(getContext()); in setOnClickAction()
82 if (postalCode != null && PostalCodeUtils.matches(postalCode, region)) { in setOnClickAction()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardResourceEntry.java305 final String region = postalData.getRegion();
306 if (!TextUtils.isEmpty(region)) {
307 sb.append(region);
/packages/modules/Virtualization/pvmfw/
DREADME.md19 (“pvmfw”) in the pVM from a protected memory region (this prevents the host or
55 Instead, it receives a pre-loaded memory region from a trusted pvmfw loader and
58 to know how to interpret or obtain the content of that region.
80 To support pKVM, ABL is expected to describe the region using a reserved memory
82 page size used by the hypervisor. This single region must include both the pvmfw
84 node describes a region of size `0x40000` at address `0x80000000`:
103 by appending it to the pvmfw binary and including it in the region passed to the
299 loaded at address `0x7fc0_0000` and uses the 2MiB region at address
416 kernel region (see `/config/kernel-{address,size}` described above) to contain
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemView.java105 final Rect region = new Rect(0, 0, getWidth(), getHeight()); in onFinishInflate()
106 setTouchDelegate(new TouchDelegate(region, mCheckBox) { in onFinishInflate()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DDrivingSafetyRegionTest.java272 private void setDrivingSafetyRegion(String region) { in setDrivingSafetyRegion() argument
273 runShellCommand("cmd car_service set-drivingsafety-region " + region); in setDrivingSafetyRegion()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/cobalt/
DMeasurementCobaltLoggerTest.java362 int region, in verifyLoggedEvent() argument
368 ImmutableList.of(surfaceType, sourceTriggerType, statusEvent, region)); in verifyLoggedEvent()

123