Skip to content

Commit 52dfe42

Browse files
muhomorrflawedworld
authored andcommitted
skip missing VirtualMachine.setMemoryBalloonByPercent()
1 parent f7341fa commit 52dfe42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libs/framework-virtualization/src/android/system/virtualmachine/VirtualMachine.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,11 @@ public void setMemoryBalloonByPercent(int percent) {
13921392
Log.e(TAG, String.format("Invalid percent value: %d", percent));
13931393
return;
13941394
}
1395+
if (true) {
1396+
Log.d(TAG, "ignored setMemoryBalloonByPercent: " + percent);
1397+
return;
1398+
}
1399+
/*
13951400
synchronized (mLock) {
13961401
try {
13971402
if (mVirtualMachine != null && mVirtualMachine.isMemoryBalloonEnabled()) {
@@ -1402,6 +1407,7 @@ public void setMemoryBalloonByPercent(int percent) {
14021407
Log.w(TAG, "Cannot setMemoryBalloon", e);
14031408
}
14041409
}
1410+
*/
14051411
}
14061412

14071413
private boolean writeEventsToSock(ParcelFileDescriptor sock, List<InputEvent> evtList) {

0 commit comments

Comments
 (0)