Home
last modified time | relevance | path

Searched refs:adjustment (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java264 public abstract boolean setAutoBrightnessAdjustment(float adjustment); in setAutoBrightnessAdjustment() argument
450 float adjustment = 0; in inferAutoBrightnessAdjustment() local
455 adjustment = (desiredBrightness - currentBrightness); in inferAutoBrightnessAdjustment()
458 adjustment = -1; in inferAutoBrightnessAdjustment()
461 adjustment = +1; in inferAutoBrightnessAdjustment()
466 adjustment = -MathUtils.log(gamma) / MathUtils.log(maxGamma); in inferAutoBrightnessAdjustment()
468 adjustment = MathUtils.constrain(adjustment, -1, +1); in inferAutoBrightnessAdjustment()
470 Slog.d(TAG, "inferAutoBrightnessAdjustment: " + maxGamma + "^" + -adjustment + "=" + in inferAutoBrightnessAdjustment()
471 MathUtils.pow(maxGamma, -adjustment) + " == " + gamma); in inferAutoBrightnessAdjustment()
475 return adjustment; in inferAutoBrightnessAdjustment()
[all …]
DAutomaticBrightnessController.java314 float brightness, boolean userChangedBrightness, float adjustment, in configure() argument
325 changed |= setAutoBrightnessAdjustment(adjustment); in configure()
530 private boolean setAutoBrightnessAdjustment(float adjustment) { in setAutoBrightnessAdjustment() argument
531 return mBrightnessMapper.setAutoBrightnessAdjustment(adjustment); in setAutoBrightnessAdjustment()
DDisplayPowerController.java1195 public void setTemporaryAutoBrightnessAdjustment(float adjustment) { in setTemporaryAutoBrightnessAdjustment() argument
1197 Float.floatToIntBits(adjustment), 0 /*unused*/); in setTemporaryAutoBrightnessAdjustment()
1665 private void putAutoBrightnessAdjustmentSetting(float adjustment) { in putAutoBrightnessAdjustmentSetting() argument
1666 mAutoBrightnessAdjustment = adjustment; in putAutoBrightnessAdjustmentSetting()
1668 Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ, adjustment, UserHandle.USER_CURRENT); in putAutoBrightnessAdjustmentSetting() local
DDisplayManagerService.java2421 public void setTemporaryAutoBrightnessAdjustment(float adjustment) { in setTemporaryAutoBrightnessAdjustment() argument
2428 mDisplayPowerController.setTemporaryAutoBrightnessAdjustment(adjustment); in setTemporaryAutoBrightnessAdjustment()
/frameworks/base/core/java/android/service/notification/
DNotificationAssistantService.java262 public final void adjustNotification(@NonNull Adjustment adjustment) { in adjustNotification() argument
265 setAdjustmentIssuer(adjustment); in adjustNotification()
266 getNotificationInterface().applyEnqueuedAdjustmentFromAssistant(mWrapper, adjustment); in adjustNotification()
283 for (Adjustment adjustment : adjustments) { in adjustNotifications()
284 setAdjustmentIssuer(adjustment); in adjustNotifications()
432 private void setAdjustmentIssuer(@Nullable Adjustment adjustment) { in setAdjustmentIssuer() argument
433 if (adjustment != null) { in setAdjustmentIssuer()
434 adjustment.setIssuer(getOpPackageName() + "/" + getClass().getName()); in setAdjustmentIssuer()
463 Adjustment adjustment = onNotificationEnqueued(sbn, channel); in handleMessage() local
464 setAdjustmentIssuer(adjustment); in handleMessage()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java293 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()
DWallpaperCropActivity.java692 int adjustment = roundedTrueCrop.left - local
694 roundedTrueCrop.left -= adjustment;
695 roundedTrueCrop.right -= adjustment;
703 int adjustment = roundedTrueCrop.top - local
705 roundedTrueCrop.top -= adjustment;
706 roundedTrueCrop.bottom -= adjustment;
/frameworks/base/services/core/java/com/android/server/media/
DVolumeCtrl.java75 String adjustment = null; in run() local
96 adjustment = cmd.getNextArgRequired(); in run()
107 if (adjustment == null) { in run()
111 switch (adjustment) { in run()
116 cmd.showError("Error: no valid volume adjustment, was " + adjustment in run()
/frameworks/base/core/java/android/gesture/
DInstance.java96 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/
DBrightnessMappingStrategyTest.java548 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/
DNotificationRecord.java614 for (Adjustment adjustment : mAdjustments) { in hasAdjustment()
615 if (adjustment.getSignals().containsKey(key)) { in hasAdjustment()
623 public void addAdjustment(Adjustment adjustment) { in addAdjustment() argument
625 mAdjustments.add(adjustment); in addAdjustment()
632 for (Adjustment adjustment: mAdjustments) { in applyAdjustments()
633 Bundle signals = adjustment.getSignals(); in applyAdjustments()
636 adjustment.getSignals().getStringArrayList(Adjustment.KEY_PEOPLE); in applyAdjustments()
641 adjustment.getSignals().getParcelableArrayList( in applyAdjustments()
647 adjustment.getSignals().getString(Adjustment.KEY_GROUP_KEY); in applyAdjustments()
655 setUserSentiment(adjustment.getSignals().getInt( in applyAdjustments()
[all …]
DNotificationManagerService.java4824 Adjustment adjustment) {
4833 if (Objects.equals(adjustment.getKey(), r.getKey())
4834 && Objects.equals(adjustment.getUser(), r.getUserId())
4836 applyAdjustment(r, adjustment);
4847 applyAdjustmentFromAssistant(token, adjustment);
4857 Adjustment adjustment) {
4859 adjustments.add(adjustment);
4872 for (Adjustment adjustment : adjustments) {
4873 NotificationRecord r = mNotificationsByKey.get(adjustment.getKey());
4875 applyAdjustment(r, adjustment);
[all …]
/frameworks/base/media/java/android/media/audiopolicy/
DIAudioPolicyCallback.aidl36 void notifyVolumeAdjust(int adjustment); in notifyVolumeAdjust() argument
DAudioPolicy.java871 public void onVolumeAdjustment(@AudioManager.VolumeAdjustment int adjustment) {} in onVolumeAdjustment() argument
937 public void notifyVolumeAdjust(int adjustment) {
938 sendMsg(MSG_VOL_ADJUST, null /* ignored */, adjustment);
940 Log.v(TAG, "notifyVolumeAdjust: " + adjustment);
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAdjustmentExtractorTest.java63 Adjustment adjustment = new Adjustment("pkg", r.getKey(), signals, "", 0); in testExtractsAdjustment() local
64 r.addAdjustment(adjustment); in testExtractsAdjustment()
DNotificationRecordTest.java993 Adjustment adjustment = new Adjustment( in testIgnoreImportanceAdjustmentsForOemLockedChannels() local
996 record.addAdjustment(adjustment); in testIgnoreImportanceAdjustmentsForOemLockedChannels()
1017 Adjustment adjustment = new Adjustment( in testIgnoreImportanceAdjustmentsForDefaultAppLockedChannels() local
1020 record.addAdjustment(adjustment); in testIgnoreImportanceAdjustmentsForDefaultAppLockedChannels()
1041 Adjustment adjustment = new Adjustment( in testApplyImportanceAdjustmentsForNonOemDefaultAppLockedChannels() local
1044 record.addAdjustment(adjustment); in testApplyImportanceAdjustmentsForNonOemDefaultAppLockedChannels()
1186 Adjustment adjustment = new Adjustment( in testIsConversation_withAdjustmentOverride() local
1189 record.addAdjustment(adjustment); in testIsConversation_withAdjustmentOverride()
DNotificationManagerServiceTest.java1176 Adjustment adjustment = new Adjustment( in testBlockedNotifications_blockedByAssistant() local
1178 mBinderService.applyEnqueuedAdjustmentFromAssistant(null, adjustment); in testBlockedNotifications_blockedByAssistant()
3634 Adjustment adjustment = new Adjustment( in testApplyAdjustmentMultiUser() local
3636 mBinderService.applyAdjustmentFromAssistant(null, adjustment); in testApplyAdjustmentMultiUser()
3653 Adjustment adjustment = new Adjustment( in testAssistantBlockingTriggersCancel() local
3656 mBinderService.applyAdjustmentFromAssistant(null, adjustment); in testAssistantBlockingTriggersCancel()
3676 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_singleUser() local
3678 mBinderService.applyEnqueuedAdjustmentFromAssistant(null, adjustment); in testApplyEnqueuedAdjustmentFromAssistant_singleUser()
3694 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_importance() local
3696 mBinderService.applyEnqueuedAdjustmentFromAssistant(null, adjustment); in testApplyEnqueuedAdjustmentFromAssistant_importance()
[all …]
/frameworks/base/core/java/android/hardware/display/
DIDisplayManager.aidl122 void setTemporaryAutoBrightnessAdjustment(float adjustment); in setTemporaryAutoBrightnessAdjustment() argument
DDisplayManager.java821 public void setTemporaryAutoBrightnessAdjustment(float adjustment) { in setTemporaryAutoBrightnessAdjustment() argument
822 mGlobal.setTemporaryAutoBrightnessAdjustment(adjustment); in setTemporaryAutoBrightnessAdjustment()
DDisplayManagerGlobal.java661 public void setTemporaryAutoBrightnessAdjustment(float adjustment) { in setTemporaryAutoBrightnessAdjustment() argument
663 mDm.setTemporaryAutoBrightnessAdjustment(adjustment); in setTemporaryAutoBrightnessAdjustment()
/frameworks/base/core/java/android/animation/
DValueAnimator.java1308 long adjustment = frameTime - mLastFrameTime; in commitAnimationFrame() local
1309 if (adjustment > 0) { in commitAnimationFrame()
1310 mStartTime += adjustment; in commitAnimationFrame()
1312 Log.d(TAG, "Adjusted start time by " + adjustment + " ms: " + toString()); in commitAnimationFrame()
/frameworks/base/core/java/android/app/
DINotificationManager.aidl167 …oid applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); in applyEnqueuedAdjustmentFromAssistant() argument
168 void applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); in applyAdjustmentFromAssistant() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationEntryManager.java704 NotificationUiAdjustment adjustment = in updateNotificationRanking() local
706 oldAdjustments.put(entry.getKey(), adjustment); in updateNotificationRanking() local
/frameworks/base/core/proto/android/providers/settings/
Dsecure.proto56 // Integer property that specifies the type of color space adjustment to perform.
/frameworks/base/services/core/java/com/android/server/am/
DProcessList.java1379 long getMemLevel(int adjustment) {
1381 if (adjustment <= mOomAdj[i]) {

12