Loading core/java/android/hardware/camera2/impl/CameraConstrainedHighSpeedCaptureSessionImpl.java +5 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.hardware.camera2.params.OutputConfiguration; import android.hardware.camera2.params.StreamConfigurationMap; import android.hardware.camera2.utils.SurfaceUtils; import android.os.Handler; import android.os.ConditionVariable; import android.util.Range; import android.view.Surface; Loading @@ -51,6 +52,7 @@ public class CameraConstrainedHighSpeedCaptureSessionImpl extends CameraConstrainedHighSpeedCaptureSession implements CameraCaptureSessionCore { private final CameraCharacteristics mCharacteristics; private final CameraCaptureSessionImpl mSessionImpl; private final ConditionVariable mInitialized = new ConditionVariable(); /** * Create a new CameraCaptureSession. Loading @@ -68,6 +70,7 @@ public class CameraConstrainedHighSpeedCaptureSessionImpl CameraCaptureSession.StateCallback wrapperCallback = new WrapperCallback(callback); mSessionImpl = new CameraCaptureSessionImpl(id, /*input*/null, wrapperCallback, stateExecutor, deviceImpl, deviceStateExecutor, configureSuccess); mInitialized.open(); } @Override Loading Loading @@ -321,11 +324,13 @@ public class CameraConstrainedHighSpeedCaptureSessionImpl @Override public void onConfigured(CameraCaptureSession session) { mInitialized.block(); mCallback.onConfigured(CameraConstrainedHighSpeedCaptureSessionImpl.this); } @Override public void onConfigureFailed(CameraCaptureSession session) { mInitialized.block(); mCallback.onConfigureFailed(CameraConstrainedHighSpeedCaptureSessionImpl.this); } Loading core/java/android/view/ViewRootImpl.java +7 −1 Original line number Diff line number Diff line Loading @@ -1107,7 +1107,13 @@ public final class ViewRootImpl implements ViewParent, */ public void registerRtFrameCallback(FrameDrawingCallback callback) { if (mAttachInfo.mThreadedRenderer != null) { mAttachInfo.mThreadedRenderer.registerRtFrameCallback(callback); mAttachInfo.mThreadedRenderer.registerRtFrameCallback(frame -> { try { callback.onFrameDraw(frame); } catch (Exception e) { Log.e(TAG, "Exception while executing onFrameDraw", e); } }); } } Loading core/java/com/android/internal/app/ChooserActivity.java +4 −2 Original line number Diff line number Diff line Loading @@ -2327,10 +2327,12 @@ public class ChooserActivity extends ResolverActivity { private static final int MAX_SUGGESTED_APP_TARGETS = 4; private static final int MAX_CHOOSER_TARGETS_PER_APP = 2; private static final int MAX_SHORTCUT_TARGETS_PER_APP = 8; private static final int MAX_SERVICE_TARGETS = 8; private final int mMaxShortcutTargetsPerApp = getResources().getInteger(R.integer.config_maxShortcutTargetsPerApp); private int mNumShortcutResults = 0; // Reserve spots for incoming direct share targets by adding placeholders Loading Loading @@ -2648,7 +2650,7 @@ public class ChooserActivity extends ResolverActivity { final float baseScore = getBaseScore(origTarget, isShortcutResult); Collections.sort(targets, mBaseTargetComparator); final int maxTargets = isShortcutResult ? MAX_SHORTCUT_TARGETS_PER_APP final int maxTargets = isShortcutResult ? mMaxShortcutTargetsPerApp : MAX_CHOOSER_TARGETS_PER_APP; float lastScore = 0; boolean shouldNotify = false; Loading core/java/com/android/internal/policy/DecorContext.java +10 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.internal.policy; import android.content.AutofillOptions; import android.content.ContentCaptureOptions; import android.content.Context; import android.content.res.AssetManager; Loading Loading @@ -97,6 +98,15 @@ public class DecorContext extends ContextThemeWrapper { return mActivityResources.getAssets(); } @Override public AutofillOptions getAutofillOptions() { Context activityContext = mActivityContext.get(); if (activityContext != null) { return activityContext.getAutofillOptions(); } return null; } @Override public ContentCaptureOptions getContentCaptureOptions() { Context activityContext = mActivityContext.get(); Loading core/java/com/android/internal/util/function/pooled/PooledLambdaImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -637,6 +637,7 @@ final class PooledLambdaImpl<R> extends OmniFunction<Object, private static String argCountPrefix(int argCount) { switch (argCount) { case MASK_ARG_COUNT: return ""; case 0: return ""; case 1: return ""; case 2: return "Bi"; case 3: return "Tri"; Loading @@ -646,7 +647,7 @@ final class PooledLambdaImpl<R> extends OmniFunction<Object, case 7: return "Hept"; case 8: return "Oct"; case 9: return "Nona"; default: throw new IllegalArgumentException("" + argCount); default: return "" + argCount + "arg"; } } Loading Loading
core/java/android/hardware/camera2/impl/CameraConstrainedHighSpeedCaptureSessionImpl.java +5 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.hardware.camera2.params.OutputConfiguration; import android.hardware.camera2.params.StreamConfigurationMap; import android.hardware.camera2.utils.SurfaceUtils; import android.os.Handler; import android.os.ConditionVariable; import android.util.Range; import android.view.Surface; Loading @@ -51,6 +52,7 @@ public class CameraConstrainedHighSpeedCaptureSessionImpl extends CameraConstrainedHighSpeedCaptureSession implements CameraCaptureSessionCore { private final CameraCharacteristics mCharacteristics; private final CameraCaptureSessionImpl mSessionImpl; private final ConditionVariable mInitialized = new ConditionVariable(); /** * Create a new CameraCaptureSession. Loading @@ -68,6 +70,7 @@ public class CameraConstrainedHighSpeedCaptureSessionImpl CameraCaptureSession.StateCallback wrapperCallback = new WrapperCallback(callback); mSessionImpl = new CameraCaptureSessionImpl(id, /*input*/null, wrapperCallback, stateExecutor, deviceImpl, deviceStateExecutor, configureSuccess); mInitialized.open(); } @Override Loading Loading @@ -321,11 +324,13 @@ public class CameraConstrainedHighSpeedCaptureSessionImpl @Override public void onConfigured(CameraCaptureSession session) { mInitialized.block(); mCallback.onConfigured(CameraConstrainedHighSpeedCaptureSessionImpl.this); } @Override public void onConfigureFailed(CameraCaptureSession session) { mInitialized.block(); mCallback.onConfigureFailed(CameraConstrainedHighSpeedCaptureSessionImpl.this); } Loading
core/java/android/view/ViewRootImpl.java +7 −1 Original line number Diff line number Diff line Loading @@ -1107,7 +1107,13 @@ public final class ViewRootImpl implements ViewParent, */ public void registerRtFrameCallback(FrameDrawingCallback callback) { if (mAttachInfo.mThreadedRenderer != null) { mAttachInfo.mThreadedRenderer.registerRtFrameCallback(callback); mAttachInfo.mThreadedRenderer.registerRtFrameCallback(frame -> { try { callback.onFrameDraw(frame); } catch (Exception e) { Log.e(TAG, "Exception while executing onFrameDraw", e); } }); } } Loading
core/java/com/android/internal/app/ChooserActivity.java +4 −2 Original line number Diff line number Diff line Loading @@ -2327,10 +2327,12 @@ public class ChooserActivity extends ResolverActivity { private static final int MAX_SUGGESTED_APP_TARGETS = 4; private static final int MAX_CHOOSER_TARGETS_PER_APP = 2; private static final int MAX_SHORTCUT_TARGETS_PER_APP = 8; private static final int MAX_SERVICE_TARGETS = 8; private final int mMaxShortcutTargetsPerApp = getResources().getInteger(R.integer.config_maxShortcutTargetsPerApp); private int mNumShortcutResults = 0; // Reserve spots for incoming direct share targets by adding placeholders Loading Loading @@ -2648,7 +2650,7 @@ public class ChooserActivity extends ResolverActivity { final float baseScore = getBaseScore(origTarget, isShortcutResult); Collections.sort(targets, mBaseTargetComparator); final int maxTargets = isShortcutResult ? MAX_SHORTCUT_TARGETS_PER_APP final int maxTargets = isShortcutResult ? mMaxShortcutTargetsPerApp : MAX_CHOOSER_TARGETS_PER_APP; float lastScore = 0; boolean shouldNotify = false; Loading
core/java/com/android/internal/policy/DecorContext.java +10 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.internal.policy; import android.content.AutofillOptions; import android.content.ContentCaptureOptions; import android.content.Context; import android.content.res.AssetManager; Loading Loading @@ -97,6 +98,15 @@ public class DecorContext extends ContextThemeWrapper { return mActivityResources.getAssets(); } @Override public AutofillOptions getAutofillOptions() { Context activityContext = mActivityContext.get(); if (activityContext != null) { return activityContext.getAutofillOptions(); } return null; } @Override public ContentCaptureOptions getContentCaptureOptions() { Context activityContext = mActivityContext.get(); Loading
core/java/com/android/internal/util/function/pooled/PooledLambdaImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -637,6 +637,7 @@ final class PooledLambdaImpl<R> extends OmniFunction<Object, private static String argCountPrefix(int argCount) { switch (argCount) { case MASK_ARG_COUNT: return ""; case 0: return ""; case 1: return ""; case 2: return "Bi"; case 3: return "Tri"; Loading @@ -646,7 +647,7 @@ final class PooledLambdaImpl<R> extends OmniFunction<Object, case 7: return "Hept"; case 8: return "Oct"; case 9: return "Nona"; default: throw new IllegalArgumentException("" + argCount); default: return "" + argCount + "arg"; } } Loading