/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessMappingStrategy.java | 238 public abstract boolean setAutoBrightnessAdjustment(float adjustment); in setAutoBrightnessAdjustment() argument 376 float adjustment = 0; in inferAutoBrightnessAdjustment() local 381 adjustment = (desiredBrightness - currentBrightness); in inferAutoBrightnessAdjustment() 384 adjustment = -1; in inferAutoBrightnessAdjustment() 387 adjustment = +1; in inferAutoBrightnessAdjustment() 392 adjustment = -MathUtils.log(gamma) / MathUtils.log(maxGamma); in inferAutoBrightnessAdjustment() 394 adjustment = MathUtils.constrain(adjustment, -1, +1); in inferAutoBrightnessAdjustment() 396 Slog.d(TAG, "inferAutoBrightnessAdjustment: " + maxGamma + "^" + -adjustment + "=" + in inferAutoBrightnessAdjustment() 397 MathUtils.pow(maxGamma, -adjustment) + " == " + gamma); in inferAutoBrightnessAdjustment() 401 return adjustment; in inferAutoBrightnessAdjustment() [all …]
|
D | AutomaticBrightnessController.java | 321 float brightness, boolean userChangedBrightness, float adjustment, in configure() argument 332 changed |= setAutoBrightnessAdjustment(adjustment); in configure() 537 private boolean setAutoBrightnessAdjustment(float adjustment) { in setAutoBrightnessAdjustment() argument 538 return mBrightnessMapper.setAutoBrightnessAdjustment(adjustment); in setAutoBrightnessAdjustment()
|
D | DisplayPowerController.java | 1169 public void setTemporaryAutoBrightnessAdjustment(float adjustment) { 1171 Float.floatToIntBits(adjustment), 0 /*unused*/); 1620 private void putAutoBrightnessAdjustmentSetting(float adjustment) { 1621 mAutoBrightnessAdjustment = adjustment; 1623 Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ, adjustment, UserHandle.USER_CURRENT);
|
D | DisplayManagerService.java | 2206 public void setTemporaryAutoBrightnessAdjustment(float adjustment) { in setTemporaryAutoBrightnessAdjustment() argument 2213 mDisplayPowerController.setTemporaryAutoBrightnessAdjustment(adjustment); in setTemporaryAutoBrightnessAdjustment()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationAssistantService.java | 236 public final void adjustNotification(@NonNull Adjustment adjustment) { in adjustNotification() argument 239 setAdjustmentIssuer(adjustment); in adjustNotification() 240 getNotificationInterface().applyEnqueuedAdjustmentFromAssistant(mWrapper, adjustment); in adjustNotification() 257 for (Adjustment adjustment : adjustments) { in adjustNotifications() 258 setAdjustmentIssuer(adjustment); in adjustNotifications() 373 private void setAdjustmentIssuer(@Nullable Adjustment adjustment) { in setAdjustmentIssuer() argument 374 if (adjustment != null) { in setAdjustmentIssuer() 375 adjustment.setIssuer(getOpPackageName() + "/" + getClass().getName()); in setAdjustmentIssuer() 401 Adjustment adjustment = onNotificationEnqueued(sbn, channel); in handleMessage() local 402 setAdjustmentIssuer(adjustment); in handleMessage() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | CropView.java | 293 float[] adjustment = mTempAdjustment; in onTouchEvent() local 297 adjustment[0] = edges.left / scale; in onTouchEvent() 299 adjustment[0] = (edges.right - getWidth()) / scale; in onTouchEvent() 302 adjustment[1] = (float) Math.ceil(edges.top / scale); in onTouchEvent() 304 adjustment[1] = (edges.bottom - getHeight()) / scale; in onTouchEvent() 307 if (coef[dim] > 0) adjustment[dim] = (float) Math.ceil(adjustment[dim]); in onTouchEvent() 310 mInverseRotateMatrix.mapPoints(adjustment); in onTouchEvent() 311 mCenterX += adjustment[0]; in onTouchEvent() 312 mCenterY += adjustment[1]; in onTouchEvent()
|
D | WallpaperCropActivity.java | 695 int adjustment = roundedTrueCrop.left - local 697 roundedTrueCrop.left -= adjustment; 698 roundedTrueCrop.right -= adjustment; 706 int adjustment = roundedTrueCrop.top - local 708 roundedTrueCrop.top -= adjustment; 709 roundedTrueCrop.bottom -= adjustment;
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
D | VolumeCtrl.java | 80 String adjustment = null; in run() local 101 adjustment = cmd.nextArgRequired(); in run() 112 if (adjustment == null) { in run() 116 switch (adjustment) { in run() 121 cmd.showError("Error: no valid volume adjustment, was " + adjustment in run()
|
/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 96 float adjustment = -orientation; in temporalSampler() local 101 if (Math.abs(delta) < Math.abs(adjustment)) { in temporalSampler() 102 adjustment = delta; in temporalSampler() 108 GestureUtils.rotate(pts, adjustment); in temporalSampler()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 548 float adjustment = 0.3f; in testGammaCorrectionChangeAtEdges() local 549 float gamma = (float) MathUtils.pow(MAXIMUM_GAMMA, -adjustment); in testGammaCorrectionChangeAtEdges() 550 strategy.addUserDataPoint(x0, y0 + adjustment); in testGammaCorrectionChangeAtEdges() 551 assertEquals(y0 + adjustment, strategy.getBrightness(x0), 0.01f /* tolerance */); in testGammaCorrectionChangeAtEdges() 554 assertEquals(adjustment, strategy.getAutoBrightnessAdjustment(), 0.01f /* tolerance */); in testGammaCorrectionChangeAtEdges() 556 adjustment = 1.0f - y4; in testGammaCorrectionChangeAtEdges() 557 gamma = (float) MathUtils.pow(MAXIMUM_GAMMA, -adjustment); in testGammaCorrectionChangeAtEdges() 562 assertEquals(adjustment, strategy.getAutoBrightnessAdjustment(), 0.01f /* tolerance */); in testGammaCorrectionChangeAtEdges()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationRecord.java | 600 for (Adjustment adjustment : mAdjustments) { in hasAdjustment() 601 if (adjustment.getSignals().containsKey(key)) { in hasAdjustment() 609 public void addAdjustment(Adjustment adjustment) { in addAdjustment() argument 611 mAdjustments.add(adjustment); in addAdjustment() 618 for (Adjustment adjustment: mAdjustments) { in applyAdjustments() 619 Bundle signals = adjustment.getSignals(); in applyAdjustments() 622 adjustment.getSignals().getStringArrayList(Adjustment.KEY_PEOPLE); in applyAdjustments() 627 adjustment.getSignals().getParcelableArrayList( in applyAdjustments() 633 adjustment.getSignals().getString(Adjustment.KEY_GROUP_KEY); in applyAdjustments() 641 setUserSentiment(adjustment.getSignals().getInt( in applyAdjustments() [all …]
|
D | NotificationManagerService.java | 4038 Adjustment adjustment) { 4047 if (Objects.equals(adjustment.getKey(), r.getKey()) 4048 && Objects.equals(adjustment.getUser(), r.getUserId()) 4050 applyAdjustment(r, adjustment); 4061 applyAdjustmentFromAssistant(token, adjustment); 4071 Adjustment adjustment) { 4073 adjustments.add(adjustment); 4086 for (Adjustment adjustment : adjustments) { 4087 NotificationRecord r = mNotificationsByKey.get(adjustment.getKey()); 4089 applyAdjustment(r, adjustment); [all …]
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | IAudioPolicyCallback.aidl | 36 void notifyVolumeAdjust(int adjustment); in notifyVolumeAdjust() argument
|
D | AudioPolicy.java | 784 public void onVolumeAdjustment(@AudioManager.VolumeAdjustment int adjustment) {} in onVolumeAdjustment() argument 850 public void notifyVolumeAdjust(int adjustment) { 851 sendMsg(MSG_VOL_ADJUST, null /* ignored */, adjustment); 853 Log.v(TAG, "notifyVolumeAdjust: " + adjustment);
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationAdjustmentExtractorTest.java | 63 Adjustment adjustment = new Adjustment("pkg", r.getKey(), signals, "", 0); in testExtractsAdjustment() local 64 r.addAdjustment(adjustment); in testExtractsAdjustment()
|
D | NotificationRecordTest.java | 971 Adjustment adjustment = new Adjustment( in testIgnoreImportanceAdjustmentsForOemLockedChannels() local 974 record.addAdjustment(adjustment); in testIgnoreImportanceAdjustmentsForOemLockedChannels() 995 Adjustment adjustment = new Adjustment( in testIgnoreImportanceAdjustmentsForDefaultAppLockedChannels() local 998 record.addAdjustment(adjustment); in testIgnoreImportanceAdjustmentsForDefaultAppLockedChannels() 1019 Adjustment adjustment = new Adjustment( in testApplyImportanceAdjustmentsForNonOemDefaultAppLockedChannels() local 1022 record.addAdjustment(adjustment); in testApplyImportanceAdjustmentsForNonOemDefaultAppLockedChannels()
|
D | NotificationManagerServiceTest.java | 941 Adjustment adjustment = new Adjustment( in testBlockedNotifications_blockedByAssistant() local 943 mBinderService.applyEnqueuedAdjustmentFromAssistant(null, adjustment); in testBlockedNotifications_blockedByAssistant() 2973 Adjustment adjustment = new Adjustment( in testApplyAdjustmentMultiUser() local 2975 mBinderService.applyAdjustmentFromAssistant(null, adjustment); in testApplyAdjustmentMultiUser() 2992 Adjustment adjustment = new Adjustment( in testAssistantBlockingTriggersCancel() local 2995 mBinderService.applyAdjustmentFromAssistant(null, adjustment); in testAssistantBlockingTriggersCancel() 3015 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_singleUser() local 3017 mBinderService.applyEnqueuedAdjustmentFromAssistant(null, adjustment); in testApplyEnqueuedAdjustmentFromAssistant_singleUser() 3033 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_importance() local 3035 mBinderService.applyEnqueuedAdjustmentFromAssistant(null, adjustment); in testApplyEnqueuedAdjustmentFromAssistant_importance() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | ValueAnimator.java | 1302 long adjustment = frameTime - mLastFrameTime; in commitAnimationFrame() local 1303 if (adjustment > 0) { in commitAnimationFrame() 1304 mStartTime += adjustment; in commitAnimationFrame() 1306 Log.d(TAG, "Adjusted start time by " + adjustment + " ms: " + toString()); in commitAnimationFrame()
|
/frameworks/base/core/java/android/hardware/display/ |
D | IDisplayManager.aidl | 118 void setTemporaryAutoBrightnessAdjustment(float adjustment); in setTemporaryAutoBrightnessAdjustment() argument
|
D | DisplayManager.java | 775 public void setTemporaryAutoBrightnessAdjustment(float adjustment) { in setTemporaryAutoBrightnessAdjustment() argument 776 mGlobal.setTemporaryAutoBrightnessAdjustment(adjustment); in setTemporaryAutoBrightnessAdjustment()
|
D | DisplayManagerGlobal.java | 624 public void setTemporaryAutoBrightnessAdjustment(float adjustment) { in setTemporaryAutoBrightnessAdjustment() argument 626 mDm.setTemporaryAutoBrightnessAdjustment(adjustment); in setTemporaryAutoBrightnessAdjustment()
|
/frameworks/base/core/java/android/app/ |
D | INotificationManager.aidl | 151 …oid applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); in applyEnqueuedAdjustmentFromAssistant() argument 152 void applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); in applyAdjustmentFromAssistant() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManager.java | 482 NotificationUiAdjustment adjustment = in updateNotificationRanking() local 484 oldAdjustments.put(entry.key, adjustment); in updateNotificationRanking()
|
/frameworks/base/core/proto/android/providers/settings/ |
D | secure.proto | 56 // Integer property that specifies the type of color space adjustment to perform.
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessList.java | 1279 long getMemLevel(int adjustment) { 1281 if (adjustment <= mOomAdj[i]) {
|