Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java1660 int adj; field in OomAdjuster.ComputeOomAdjWindowCallback
1671 void initialize(ProcessRecord app, int adj, boolean foregroundActivities, in initialize() argument
1675 this.adj = adj; in initialize()
1690 if (adj > VISIBLE_APP_ADJ) { in onVisibleActivity()
1691 adj = VISIBLE_APP_ADJ; in onVisibleActivity()
1714 if (adj > PERCEPTIBLE_APP_ADJ) { in onPausedActivity()
1715 adj = PERCEPTIBLE_APP_ADJ; in onPausedActivity()
1738 if (adj > PERCEPTIBLE_APP_ADJ) { in onStoppingActivity()
1739 adj = PERCEPTIBLE_APP_ADJ; in onStoppingActivity()
1896 int adj; in computeOomAdjLSP() local
[all …]
DProcessServiceRecord.java375 int modifyRawOomAdj(int adj) { in modifyRawOomAdj() argument
382 if (adj < ProcessList.FOREGROUND_APP_ADJ) { in modifyRawOomAdj()
384 } else if (adj < ProcessList.VISIBLE_APP_ADJ) { in modifyRawOomAdj()
385 adj = ProcessList.VISIBLE_APP_ADJ; in modifyRawOomAdj()
386 } else if (adj < ProcessList.PERCEPTIBLE_APP_ADJ) { in modifyRawOomAdj()
387 adj = ProcessList.PERCEPTIBLE_APP_ADJ; in modifyRawOomAdj()
388 } else if (adj < ProcessList.PERCEPTIBLE_LOW_APP_ADJ) { in modifyRawOomAdj()
389 adj = ProcessList.PERCEPTIBLE_LOW_APP_ADJ; in modifyRawOomAdj()
390 } else if (adj < ProcessList.CACHED_APP_MIN_ADJ) { in modifyRawOomAdj()
391 adj = ProcessList.CACHED_APP_MIN_ADJ; in modifyRawOomAdj()
[all …]
DUidRecord.java234 int adj = mProcRecords.valueAt(i).getSetAdj(); in getMinProcAdj() local
235 if (adj < minAdj) { in getMinProcAdj()
236 minAdj = adj; in getMinProcAdj()
DProcessStateRecord.java1113 int adj, boolean foregroundActivities, boolean hasVisibleActivities, int procState, in computeOomAdjFromActivitiesIfNecessary() argument
1118 callback.initialize(mApp, adj, foregroundActivities, hasVisibleActivities, procState, in computeOomAdjFromActivitiesIfNecessary()
1123 mCachedAdj = callback.adj; in computeOomAdjFromActivitiesIfNecessary()
DOomAdjusterModernImpl.java163 static @AdjSlot int adjToSlot(int adj) { in adjToSlot() argument
164 if (adj >= ADJ_SLOT_VALUES[0] && adj <= ADJ_SLOT_VALUES[ADJ_SLOT_VALUES.length - 1]) { in adjToSlot()
166 final int index = Arrays.binarySearch(ADJ_SLOT_VALUES, adj); in adjToSlot()
DProcessList.java4143 int adj = state.getCurAdj();
4145 outInfo.importance = procStateToImportance(procState, adj, outInfo,
4593 final int adj = object2.first.mState.getSetAdj() - object1.first.mState.getSetAdj();
4594 if (adj != 0) {
4595 return adj;
4862 private void printOomLevel(PrintWriter pw, String name, int adj) {
4864 if (adj >= 0) {
4866 if (adj < 10) pw.print(' ');
4868 if (adj > -10) pw.print(' ');
4870 pw.print(adj);
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2.java211 final float adj = Settings.System.getFloatForUser(mContext.getContentResolver(), in updatePendingAutoBrightnessAdjustments() local
213 mPendingAutoBrightnessAdjustment = Float.isNaN(adj) ? Float.NaN in updatePendingAutoBrightnessAdjustments()
214 : BrightnessUtils.clampBrightnessAdjustment(adj); in updatePendingAutoBrightnessAdjustments()
407 final float adj = Settings.System.getFloatForUser(mContext.getContentResolver(), in getAutoBrightnessAdjustmentSetting() local
409 return Float.isNaN(adj) ? 0.0f : BrightnessUtils.clampBrightnessAdjustment(adj); in getAutoBrightnessAdjustmentSetting()
DAutomaticBrightnessStrategy.java265 final float adj = Settings.System.getFloatForUser(mContext.getContentResolver(), in updatePendingAutoBrightnessAdjustments() local
267 mPendingAutoBrightnessAdjustment = Float.isNaN(adj) ? Float.NaN in updatePendingAutoBrightnessAdjustments()
268 : BrightnessUtils.clampBrightnessAdjustment(adj); in updatePendingAutoBrightnessAdjustments()
517 final float adj = Settings.System.getFloatForUser(mContext.getContentResolver(), in getAutoBrightnessAdjustmentSetting() local
519 return Float.isNaN(adj) ? 0.0f : BrightnessUtils.clampBrightnessAdjustment(adj); in getAutoBrightnessAdjustmentSetting()
/frameworks/native/libs/binder/
DIUidObserver.cpp70 virtual void onUidProcAdjChanged(uid_t uid, int32_t adj) { in onUidProcAdjChanged() argument
73 data.writeInt32((int32_t)adj); in onUidProcAdjChanged()
125 int32_t adj = data.readInt32(); in onTransact() local
126 onUidProcAdjChanged(uid, adj); in onTransact()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowAnimationSpec.java258 float adj = 0.25f; in findInterpolationAdjustedTargetFraction() local
260 while (adj >= epsilon) { in findInterpolationAdjustedTargetFraction()
262 val += adj; in findInterpolationAdjustedTargetFraction()
264 val -= adj; in findInterpolationAdjustedTargetFraction()
266 adj /= 2; in findInterpolationAdjustedTargetFraction()
/frameworks/base/core/java/android/app/
DIUidObserver.aidl63 void onUidProcAdjChanged(int uid, int adj); in onUidProcAdjChanged() argument
DUidObserver.java44 public void onUidProcAdjChanged(int uid, int adj) { in onUidProcAdjChanged() argument
/frameworks/native/libs/binder/include_activitymanager/binder/
DIUidObserver.h37 virtual void onUidProcAdjChanged(uid_t uid, int32_t adj) = 0;
/frameworks/base/native/android/
Dactivity_manager.cpp48 void onUidProcAdjChanged(uid_t uid, int32_t adj) override;
124 void UidObserver::onUidProcAdjChanged(uid_t uid __unused, int32_t adj __unused) {} in onUidProcAdjChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceBindingOomAdjPolicyTest.java530 private ProcessRecord addProcessRecord(int pid, int uid, int procState, int adj, int cap, in addProcessRecord() argument
535 procState, adj, cap, 0L, 0L, packageName, packageName, mAms); in addProcessRecord()
573 int connectionGroup, int procState, int adj, int cap, long pss, long rss, in makeProcessRecord() argument
579 app.mState.setCurAdj(adj); in makeProcessRecord()
580 app.mState.setSetAdj(adj); in makeProcessRecord()
/frameworks/av/services/mediaresourcemanager/
DUidObserver.h77 void onUidProcAdjChanged(uid_t uid, int32_t adj) override;
/frameworks/base/core/proto/android/app/
Dactivitymanager.proto38 // report pid oom adj has changed, original value is 1 << 6
/frameworks/native/services/sensorservice/
DSensorService.h306 void onUidProcAdjChanged(uid_t uid __unused, int32_t adj __unused) override {} in onUidProcAdjChanged()
/frameworks/rs/driver/runtime/
Drs_cl.c1274 float adj = 1.f + r + (r2 * 0.5f) + (r2*r * 0.166666f) + (r2*r2 * 0.0416666f); in native_exp2() local
1275 return fo * adj; in native_exp2()
1289 float2 adj = 1.f + r + (r2 * 0.5f) + (r2*r * 0.166666f) + (r2*r2 * 0.0416666f); in native_exp2() local
1290 return fo * adj; in native_exp2()
1304 float4 adj = 1.f + r + (r2 * 0.5f) + (r2*r * 0.166666f) + (r2*r2 * 0.0416666f); in native_exp2() local
1305 return fo * adj; in native_exp2()
/frameworks/av/services/camera/libcameraservice/
DCameraService.h845 void onUidProcAdjChanged(uid_t uid, int adj) override;
DCameraService.cpp4677 void CameraService::UidPolicy::onUidProcAdjChanged(uid_t uid, int32_t adj) { in onUidProcAdjChanged() argument
4686 if (monitoredUid.first != uid && adj > monitoredUid.second.procAdj) { in onUidProcAdjChanged()
4695 if (monitoredUid.second.hasCamera && adj < monitoredUid.second.procAdj) { in onUidProcAdjChanged()
4701 it->second.procAdj = adj; in onUidProcAdjChanged()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.h517 void onUidProcAdjChanged(uid_t uid, int32_t adj) override;
DAudioPolicyService.cpp1603 void AudioPolicyService::UidPolicy::onUidProcAdjChanged(uid_t uid __unused, int32_t adj __unused) { in onUidProcAdjChanged()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobConcurrencyManager.java2670 final int adj = add ? 1 : -1; in adjustPendingJobCount() local
2677 mNumPendingJobs.put(workType, mNumPendingJobs.get(workType) + adj); in adjustPendingJobCount()
/frameworks/base/media/java/android/media/
DAudioManager.java507 public static final String adjustToString(int adj) { in adjustToString() argument
508 switch (adj) { in adjustToString()
515 default: return new StringBuilder("unknown adjust mode ").append(adj).toString(); in adjustToString()

12