/frameworks/rs/toolkit/ |
D | Utils.cpp | 48 bool validRestriction(const char* tag, size_t sizeX, size_t sizeY, const Restriction* restriction) { in validRestriction() argument 49 if (restriction == nullptr) { in validRestriction() 52 if (restriction->startX >= sizeX || restriction->endX > sizeX) { in validRestriction() 55 tag, sizeX, restriction->startX, restriction->endY); in validRestriction() 58 if (restriction->startY >= sizeY && restriction->endY > sizeY) { in validRestriction() 61 tag, sizeY, restriction->startY, restriction->endY); in validRestriction() 64 if (restriction->startX >= restriction->endX) { in validRestriction() 67 tag, restriction->startX, restriction->endX); in validRestriction() 70 if (restriction->startY >= restriction->endY) { in validRestriction() 73 tag, restriction->startY, restriction->endY); in validRestriction()
|
D | JniEntryPoints.cpp | 161 Restriction restriction; member in RestrictionParameter 181 restriction.startX = env->GetIntField(jRestriction, startXId); 182 restriction.startY = env->GetIntField(jRestriction, startYId); 183 restriction.endX = env->GetIntField(jRestriction, endXId); 184 restriction.endY = env->GetIntField(jRestriction, endYId); 186 Restriction* get() { return isNull ? nullptr : &restriction; } in get() 202 jbyteArray dest_array, jint size_x, jint size_y, jobject restriction) { in Java_android_renderscript_toolkit_Toolkit_nativeBlend() argument 205 RestrictionParameter restrict {env, restriction}; in Java_android_renderscript_toolkit_Toolkit_nativeBlend() 214 jobject dest_bitmap, jobject restriction) { in Java_android_renderscript_toolkit_Toolkit_nativeBlendBitmap() argument 217 RestrictionParameter restrict {env, restriction}; in Java_android_renderscript_toolkit_Toolkit_nativeBlendBitmap() [all …]
|
D | RenderScriptToolkit.h | 193 size_t sizeX, size_t sizeY, const Restriction* _Nullable restriction = nullptr); 224 size_t vectorSize, int radius, const Restriction* _Nullable restriction = nullptr); 318 const Restriction* _Nullable restriction = nullptr); 351 const Restriction* _Nullable restriction = nullptr); 355 const Restriction* _Nullable restriction = nullptr); 382 size_t vectorSize, const Restriction* _Nullable restriction = nullptr); 414 const Restriction* _Nullable restriction = nullptr); 445 const Restriction* _Nullable restriction = nullptr); 477 const Restriction* _Nullable restriction = nullptr); 506 const Restriction* _Nullable restriction = nullptr);
|
D | Lut.cpp | 43 const Restriction* restriction) in LutTask() argument 44 : Task{sizeX, sizeY, 4, true, restriction}, in LutTask() 70 const uint8_t* alpha, const Restriction* restriction) { in lut() argument 72 if (!validRestriction(LOG_TAG, sizeX, sizeY, restriction)) { in lut() 77 LutTask task(input, output, sizeX, sizeY, red, green, blue, alpha, restriction); in lut()
|
D | Histogram.cpp | 45 uint32_t threadCount, const Restriction* restriction); 64 const Restriction* restriction); 72 uint32_t threadCount, const Restriction* restriction) in HistogramTask() argument 73 : Task{sizeX, sizeY, vectorSize, true, restriction}, in HistogramTask() 155 const Restriction* restriction) in HistogramDotTask() argument 156 : Task{sizeX, sizeY, vectorSize, true, restriction}, mIn{in}, mSums(256 * threadCount, 0) { in HistogramDotTask() 248 size_t vectorSize, const Restriction* restriction) { in histogram() argument 250 if (!validRestriction(LOG_TAG, sizeX, sizeY, restriction)) { in histogram() 259 HistogramTask task(in, sizeX, sizeY, vectorSize, processor->getNumberOfThreads(), restriction); in histogram() 266 const Restriction* restriction) { in histogramDot() argument [all …]
|
/frameworks/rs/toolkit/java/ |
D | Toolkit.kt | 82 restriction: Range2d? = null in blend() 92 validateRestriction("blend", sizeX, sizeY, restriction) in blend() 94 nativeBlend(nativeHandle, mode.value, sourceArray, destArray, sizeX, sizeY, restriction) in blend() 124 restriction: Range2d? = null in blend() 140 validateRestriction("blend", sourceBitmap.width, sourceBitmap.height, restriction) in blend() 142 nativeBlendBitmap(nativeHandle, mode.value, sourceBitmap, destBitmap, restriction) in blend() 182 restriction: Range2d? = null in blur() 194 validateRestriction("blur", sizeX, sizeY, restriction) in blur() 198 nativeHandle, inputArray, vectorSize, sizeX, sizeY, radius, outputArray, restriction in blur() 229 fun blur(inputBitmap: Bitmap, radius: Int = 5, restriction: Range2d? = null): Bitmap { in blur() [all …]
|
/frameworks/rs/toolkit/test/ |
D | AllTests.kt | 36 val restriction: Range2d? in <lambda>() constant in com.example.testapp.TestLayout 121 commonLayoutsToTry.all { (sizeX, sizeY, restriction) -> in <lambda>() method 122 testOneRandomBlend(timer, sizeX, sizeY, mode, restriction) in <lambda>() 133 restriction: Range2d? in <lambda>() 145 restriction in <lambda>() 149 toolkit.blend(mode, sourceArray, toolkitDestArray, sizeX, sizeY, restriction) in <lambda>() 154 referenceBlend(mode, sourceArray, referenceDestArray, sizeX, sizeY, restriction) in <lambda>() 160 println("blend $mode ($sizeX, $sizeY) $restriction") in <lambda>() 175 restriction: Range2d? in <lambda>() 184 renderscriptContext, mode, sourceBitmap, intrinsicDestBitmap, restriction in <lambda>() [all …]
|
D | IntrinsicHistogram.kt | 37 restriction: Range2d? in intrinsicHistogram() 54 if (restriction != null) { in intrinsicHistogram() 56 options.setX(restriction.startX, restriction.endX) in intrinsicHistogram() 57 options.setY(restriction.startY, restriction.endY) in intrinsicHistogram() 75 restriction: Range2d? in intrinsicHistogram() 89 if (restriction != null) { in intrinsicHistogram() 91 options.setX(restriction.startX, restriction.endX) in intrinsicHistogram() 92 options.setY(restriction.startY, restriction.endY) in intrinsicHistogram() 113 restriction: Range2d? in intrinsicHistogramDot() 139 if (restriction != null) { in intrinsicHistogramDot() [all …]
|
D | IntrinsicConvolve.kt | 39 restriction: Range2d? in intrinsicConvolve() 50 if (restriction != null) { in intrinsicConvolve() 58 restriction, in intrinsicConvolve() 72 restriction: Range2d? in intrinsicConvolve() 80 if (restriction != null) { in intrinsicConvolve() 88 restriction, in intrinsicConvolve() 102 restriction: Range2d?, in invokeConvolveKernel() 111 if (restriction != null) { in invokeConvolveKernel() 113 options.setX(restriction.startX, restriction.endX) in invokeConvolveKernel() 114 options.setY(restriction.startY, restriction.endY) in invokeConvolveKernel() [all …]
|
D | IntrinsicBlur.kt | 38 restriction: Range2d? in intrinsicBlur() 60 if (restriction != null) { in intrinsicBlur() 63 options.setX(restriction.startX, restriction.endX) in intrinsicBlur() 64 options.setY(restriction.startY, restriction.endY) in intrinsicBlur() 81 restriction: Range2d? in intrinsicBlur() 93 if (restriction != null) { in intrinsicBlur() 96 options.setX(restriction.startX, restriction.endX) in intrinsicBlur() 97 options.setY(restriction.startY, restriction.endY) in intrinsicBlur()
|
D | IntrinsicResize.kt | 38 restriction: Range2d? in intrinsicResize() 57 if (restriction != null) { in intrinsicResize() 60 options.setX(restriction.startX, restriction.endX) in intrinsicResize() 61 options.setY(restriction.startY, restriction.endY) in intrinsicResize() 81 restriction: Range2d? in intrinsicResize() 103 if (restriction != null) { in intrinsicResize() 106 options.setX(restriction.startX, restriction.endX) in intrinsicResize() 107 options.setY(restriction.startY, restriction.endY) in intrinsicResize()
|
D | ReferenceBlur.kt | 33 radius: Int = 5, restriction: Range2d?): ByteArray { in <lambda>() 44 val scratch = horizontalBlur(inputInFloat, gaussian, radius, restriction) in <lambda>() 45 val outInFloat = verticalBlur(scratch, gaussian, radius, restriction) in <lambda>() 58 restriction: Range2d? in horizontalBlur() 61 if (restriction != null) { in horizontalBlur() 65 restriction.startX, in horizontalBlur() 66 restriction.endX, in horizontalBlur() 67 max(restriction.startY - radius, 0), in horizontalBlur() 68 min(restriction.endY + radius, input.sizeY) in horizontalBlur() 90 restriction: Range2d? in verticalBlur() [all …]
|
D | IntrinsicLut.kt | 41 restriction: Range2d? in intrinsicLut() 62 if (restriction != null) { in intrinsicLut() 65 options.setX(restriction.startX, restriction.endX) in intrinsicLut() 66 options.setY(restriction.startY, restriction.endY) in intrinsicLut() 88 restriction: Range2d? in intrinsicLut() 103 if (restriction != null) { in intrinsicLut() 106 options.setX(restriction.startX, restriction.endX) in intrinsicLut() 107 options.setY(restriction.startY, restriction.endY) in intrinsicLut()
|
D | IntrinsicLut3d.kt | 38 restriction: Range2d? in intrinsicLut3d() 63 if (restriction != null) { in intrinsicLut3d() 66 options.setX(restriction.startX, restriction.endX) in intrinsicLut3d() 67 options.setY(restriction.startY, restriction.endY) in intrinsicLut3d() 88 restriction: Range2d? in intrinsicLut3d() 106 if (restriction != null) { in intrinsicLut3d() 109 options.setX(restriction.startX, restriction.endX) in intrinsicLut3d() 110 options.setY(restriction.startY, restriction.endY) in intrinsicLut3d()
|
D | IntrinsicColorMatrix.kt | 42 restriction: Range2d? in intrinsicColorMatrix() 91 if (restriction != null) { in intrinsicColorMatrix() 94 options.setX(restriction.startX, restriction.endX) in intrinsicColorMatrix() 95 options.setY(restriction.startY, restriction.endY) in intrinsicColorMatrix() 116 restriction: Range2d? in intrinsicColorMatrix() 147 if (restriction != null) { in intrinsicColorMatrix() 150 options.setX(restriction.startX, restriction.endX) in intrinsicColorMatrix() 151 options.setY(restriction.startY, restriction.endY) in intrinsicColorMatrix()
|
D | IntrinsicBlend.kt | 39 restriction: Range2d? in intrinsicBlend() 51 callBlendForEach(scriptBlend, sourceAllocation, destAllocation, mode, restriction) in intrinsicBlend() 65 restriction: Range2d? in intrinsicBlend() 73 callBlendForEach(scriptBlend, sourceAllocation, destAllocation, mode, restriction) in intrinsicBlend() 86 restriction: Range2d? in callBlendForEach() 88 if (restriction != null) { in callBlendForEach() 90 options.setX(restriction.startX, restriction.endX) in callBlendForEach() 91 options.setY(restriction.startY, restriction.endY) in callBlendForEach()
|
D | ReferenceHistogram.kt | 38 restriction: Range2d? in <lambda>() 43 input.forEach(restriction) { x, y -> in <lambda>() 65 restriction: Range2d? in referenceHistogramDot() 83 input.forEach(restriction) { x, y -> in referenceHistogramDot()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 341 public static boolean isValidRestriction(@NonNull String restriction) { in isValidRestriction() argument 342 if (!USER_RESTRICTIONS.contains(restriction)) { in isValidRestriction() 362 msg.append(restriction); in isValidRestriction() 363 if (restriction != null && isSystemApp(uid, pkgs)) { in isValidRestriction() 461 public static boolean contains(@Nullable Bundle in, String restriction) { in contains() argument 462 return in != null && in.getBoolean(restriction); in contains() 481 public static boolean canDeviceOwnerChange(String restriction) { in canDeviceOwnerChange() argument 482 return !IMMUTABLE_BY_OWNERS.contains(restriction); in canDeviceOwnerChange() 503 String restriction, in canProfileOwnerChange() argument 507 if (IMMUTABLE_BY_OWNERS.contains(restriction)) { in canProfileOwnerChange() [all …]
|
D | RestrictionsSet.java | 95 public boolean removeRestrictionsForAllUsers(String restriction) { in removeRestrictionsForAllUsers() argument 100 if (UserRestrictionsUtils.contains(restrictions, restriction)) { in removeRestrictionsForAllUsers() 101 restrictions.remove(restriction); in removeRestrictionsForAllUsers() 111 public void moveRestriction(@NonNull RestrictionsSet destRestrictions, String restriction) { in moveRestriction() argument 116 if (UserRestrictionsUtils.contains(from, restriction)) { in moveRestriction() 117 from.remove(restriction); in moveRestriction() 121 to.putBoolean(restriction, true); in moveRestriction() 124 to.putBoolean(restriction, true); in moveRestriction() 159 public @NonNull List<UserManager.EnforcingUser> getEnforcingUsers(String restriction, in getEnforcingUsers() argument 162 if (getRestrictionsNonNull(userId).containsKey(restriction)) { in getEnforcingUsers() [all …]
|
/frameworks/base/core/java/android/content/ |
D | RestrictionsManager.java | 626 RestrictionEntry restriction; in loadManifestRestrictions() local 632 restriction = loadRestrictionElement(appContext, xml); in loadManifestRestrictions() 633 if (restriction != null) { in loadManifestRestrictions() 634 restrictions.add(restriction); in loadManifestRestrictions() 683 RestrictionEntry restriction = new RestrictionEntry(restrictionType, key); in loadRestriction() local 684 restriction.setTitle(title); in loadRestriction() 685 restriction.setDescription(description); in loadRestriction() 687 restriction.setChoiceEntries(appContext, entries); in loadRestriction() 690 restriction.setChoiceValues(appContext, entryValues); in loadRestriction() 697 restriction.setSelectedString( in loadRestriction() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/ |
D | ActionDisabledByAdminControllerFactory.java | 44 String restriction, DeviceAdminStringProvider stringProvider, in createInstance() argument 46 if (doesBiometricRequireParentalConsent(context, restriction)) { in createInstance() 51 return new SupervisedDeviceActionDisabledByAdminController(stringProvider, restriction); in createInstance() 75 String restriction) { in doesBiometricRequireParentalConsent() argument 76 if (!TextUtils.equals(UserManager.DISALLOW_BIOMETRIC, restriction)) { in doesBiometricRequireParentalConsent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/ui/compose/ |
D | BrightnessSlider.kt | 51 restriction: PolicyRestriction, in <lambda>() 62 val isRestricted = restriction is PolicyRestriction.Restricted 83 if (restriction is PolicyRestriction.Restricted) { in <lambda>() 84 onRestrictedClick(restriction) in <lambda>() 112 val restriction by in BrightnessSliderContainer() constant 122 restriction = restriction, in BrightnessSliderContainer()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallStart.java | 321 for (String restriction : restrictions) { in checkDevicePolicyRestrictions() 322 if (!mUserManager.hasUserRestrictionForUser(restriction, Process.myUserHandle())) { in checkDevicePolicyRestrictions() 331 final Intent showAdminSupportDetailsIntent = dpm.createAdminSupportIntent(restriction); in checkDevicePolicyRestrictions() 336 if (mLocalLOGV) Log.i(TAG, "Restriction set by system: " + restriction); in checkDevicePolicyRestrictions() 338 showDialogInner(restriction); in checkDevicePolicyRestrictions() 350 private void showDialogInner(String restriction) { in showDialogInner() argument 351 if (mLocalLOGV) Log.i(TAG, "showDialogInner(" + restriction + ")"); in showDialogInner() 358 DialogFragment newDialog = createDialog(restriction); in showDialogInner() 371 private DialogFragment createDialog(String restriction) { in createDialog() argument 372 if (mLocalLOGV) Log.i(TAG, "createDialog(" + restriction + ")"); in createDialog() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/domain/interactor/ |
D | BrightnessPolicyEnforcementInteractorTest.kt | 61 fun restriction() = in restriction() method in com.android.systemui.brightness.domain.interactor.BrightnessPolicyEnforcementInteractorTest 66 val restriction by collectLastValue(underTest.brightnessPolicyRestriction) in restriction() constant 68 assertThat(restriction).isEqualTo(PolicyRestriction.NoRestriction) in restriction() 72 assertThat(restriction) in restriction() 83 assertThat(restriction).isEqualTo(PolicyRestriction.Restricted(EnforcedAdmin())) in restriction()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiRestrictionsCache.java | 105 Boolean restriction; in getRestriction() local 110 restriction = mUserRestrictions.getBoolean(key); in getRestriction() 111 mRestrictions.put(key, restriction); in getRestriction() 113 return restriction; in getRestriction()
|