Lines Matching refs:adj

1266      * Keep track of the number of cached hidden procs, to balance oom adj
5169 // Note that we always want to do oom adj to update our state with the
5923 // Skip process if it doesn't meet our oom adj requirement.
10651 // adj level. Not sure what to do about this, but at least
12711 int adj = proc.setAdj;
12712 if (adj >= worstType && !proc.killedByAm) {
12758 final int adj = proc.setAdj;
12759 if (adj > belowAdj && !proc.killedByAm) {
13739 int adj = app.curAdj;
13741 outInfo.importance = procStateToImportance(procState, adj, outInfo);
14773 void printOomLevel(PrintWriter pw, String name, int adj) {
14775 if (adj >= 0) {
14777 if (adj < 10) pw.print(' ');
14779 if (adj > -10) pw.print(' ');
14781 pw.print(adj);
14785 pw.print(stringifySize(mProcessList.getMemLevel(adj), 1024));
15825 pw.println(" --oom: only show processes organized by oom adj.");
16626 + " (adj " + (proc != null ? proc.setAdj : "??") + ")", true);
19080 int adj;
19087 adj = ProcessList.FOREGROUND_APP_ADJ;
19094 adj = ProcessList.FOREGROUND_APP_ADJ;
19103 adj = ProcessList.FOREGROUND_APP_ADJ;
19111 adj = ProcessList.FOREGROUND_APP_ADJ;
19120 // At this point we don't actually know the adjustment. Use the cached adj
19122 adj = cachedAdj;
19146 if (adj > ProcessList.VISIBLE_APP_ADJ) {
19147 adj = ProcessList.VISIBLE_APP_ADJ;
19165 if (adj > ProcessList.PERCEPTIBLE_APP_ADJ) {
19166 adj = ProcessList.PERCEPTIBLE_APP_ADJ;
19177 if (adj > ProcessList.PERCEPTIBLE_APP_ADJ) {
19178 adj = ProcessList.PERCEPTIBLE_APP_ADJ;
19203 if (adj == ProcessList.VISIBLE_APP_ADJ) {
19204 adj += minLayer;
19208 if (adj > ProcessList.PERCEPTIBLE_APP_ADJ
19212 adj = ProcessList.PERCEPTIBLE_APP_ADJ;
19219 adj = ProcessList.PERCEPTIBLE_APP_ADJ;
19229 if (adj > ProcessList.HEAVY_WEIGHT_APP_ADJ) {
19231 adj = ProcessList.HEAVY_WEIGHT_APP_ADJ;
19242 if (adj > ProcessList.HOME_APP_ADJ) {
19245 adj = ProcessList.HOME_APP_ADJ;
19256 if (adj > ProcessList.PREVIOUS_APP_ADJ) {
19260 adj = ProcessList.PREVIOUS_APP_ADJ;
19270 if (false) Slog.i(TAG, "OOM " + app + ": initial adj=" + adj
19278 app.curRawAdj = adj;
19283 if (adj > ProcessList.BACKUP_APP_ADJ) {
19285 adj = ProcessList.BACKUP_APP_ADJ;
19300 is >= 0 && (adj > ProcessList.FOREGROUND_APP_ADJ
19315 if (adj > ProcessList.SERVICE_ADJ) {
19323 if (adj > ProcessList.SERVICE_ADJ) {
19324 adj = ProcessList.SERVICE_ADJ;
19332 if (adj > ProcessList.SERVICE_ADJ) {
19339 conni >= 0 && (adj > ProcessList.FOREGROUND_APP_ADJ
19345 i < clist.size() && (adj > ProcessList.FOREGROUND_APP_ADJ
19377 if (adj > clientAdj) {
19381 clientAdj = adj;
19391 if (adj > clientAdj) {
19394 clientAdj = adj;
19398 if (adj > clientAdj) {
19412 adj = clientAdj >= ProcessList.PERSISTENT_SERVICE_ADJ
19416 && adj > ProcessList.PERCEPTIBLE_APP_ADJ) {
19417 adj = ProcessList.PERCEPTIBLE_APP_ADJ;
19419 adj = clientAdj;
19421 if (adj > ProcessList.VISIBLE_APP_ADJ) {
19422 adj = Math.max(clientAdj, ProcessList.VISIBLE_APP_ADJ);
19503 if (a != null && adj > ProcessList.FOREGROUND_APP_ADJ &&
19506 adj = ProcessList.FOREGROUND_APP_ADJ;
19528 provi >= 0 && (adj > ProcessList.FOREGROUND_APP_ADJ
19534 i >= 0 && (adj > ProcessList.FOREGROUND_APP_ADJ
19551 if (adj > clientAdj) {
19556 adj = clientAdj > ProcessList.FOREGROUND_APP_ADJ
19600 if (adj > ProcessList.FOREGROUND_APP_ADJ) {
19601 adj = ProcessList.FOREGROUND_APP_ADJ;
19614 if (adj > ProcessList.PREVIOUS_APP_ADJ) {
19615 adj = ProcessList.PREVIOUS_APP_ADJ;
19660 if (adj == ProcessList.SERVICE_ADJ) {
19684 adj = ProcessList.SERVICE_B_ADJ;
19688 app.curRawAdj = adj;
19691 // " adj=" + adj + " curAdj=" + app.curAdj + " maxAdj=" + app.maxAdj);
19692 if (adj > app.maxAdj) {
19693 adj = app.maxAdj;
19699 // Do final modification to adj. Everything we do between here and applying
19701 // it when computing the final cached adj later. Note that we don't need to
19702 // worry about this for max adj above, since max adj will always be used to
19704 app.curAdj = app.modifyRawOomAdj(adj);
20103 "Set " + app.pid + " " + app.processName + " adj " + app.curAdj + ": "
20487 // need to do a complete oom adj.
20581 // If we haven't yet assigned the final cached adj
20593 + " adj: " + app.curAdj + " (curCachedAdj=" + curCachedAdj
20616 + " adj: " + app.curAdj + " (curEmptyAdj=" + curEmptyAdj
21008 // Now update the oom adj for all processes.