Loading packages/SystemUI/res/values/dimens.xml +1 −4 Original line number Original line Diff line number Diff line Loading @@ -115,9 +115,6 @@ <!-- Diameter of outer shape drawable shown in navbar search. Should be 1/2 of above value --> <!-- Diameter of outer shape drawable shown in navbar search. Should be 1/2 of above value --> <dimen name="navbar_search_outerring_radius">170dp</dimen> <dimen name="navbar_search_outerring_radius">170dp</dimen> <!-- Threshold for swipe-up gesture to activate search dialog --> <dimen name="navbar_search_up_threshhold">40dip</dimen> <!-- Height of search panel including navigation bar height --> <!-- Height of search panel including navigation bar height --> <dimen name="navbar_search_panel_height">230dip</dimen> <dimen name="navbar_search_panel_height">230dip</dimen> Loading Loading @@ -420,7 +417,7 @@ <dimen name="search_card_peek_height">100dp</dimen> <dimen name="search_card_peek_height">100dp</dimen> <!-- How far the user needs to drag up to invoke search. --> <!-- How far the user needs to drag up to invoke search. --> <dimen name="search_panel_threshold">150dp</dimen> <dimen name="search_panel_threshold">100dp</dimen> <!-- The width/height of the phone/camera/unlock icon on keyguard. --> <!-- The width/height of the phone/camera/unlock icon on keyguard. --> <dimen name="keyguard_affordance_height">56dp</dimen> <dimen name="keyguard_affordance_height">56dp</dimen> Loading packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +1 −3 Original line number Original line Diff line number Diff line Loading @@ -1323,10 +1323,8 @@ public class KeyguardViewMediator extends SystemUI { // (like recents). Temporary enable/disable (e.g. the "back" button) are // (like recents). Temporary enable/disable (e.g. the "back" button) are // done in KeyguardHostView. // done in KeyguardHostView. flags |= StatusBarManager.DISABLE_RECENT; flags |= StatusBarManager.DISABLE_RECENT; if (!isAssistantAvailable()) { flags |= StatusBarManager.DISABLE_SEARCH; flags |= StatusBarManager.DISABLE_SEARCH; } } } if (isShowingAndNotOccluded()) { if (isShowingAndNotOccluded()) { flags |= StatusBarManager.DISABLE_HOME; flags |= StatusBarManager.DISABLE_HOME; } } Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +3 −10 Original line number Original line Diff line number Diff line Loading @@ -114,7 +114,6 @@ public abstract class BaseStatusBar extends SystemUI implements protected static final int MSG_CANCEL_PRELOAD_RECENT_APPS = 1023; protected static final int MSG_CANCEL_PRELOAD_RECENT_APPS = 1023; protected static final int MSG_SHOW_NEXT_AFFILIATED_TASK = 1024; protected static final int MSG_SHOW_NEXT_AFFILIATED_TASK = 1024; protected static final int MSG_SHOW_PREV_AFFILIATED_TASK = 1025; protected static final int MSG_SHOW_PREV_AFFILIATED_TASK = 1025; protected static final int MSG_OPEN_SEARCH_PANEL = 1026; protected static final int MSG_CLOSE_SEARCH_PANEL = 1027; protected static final int MSG_CLOSE_SEARCH_PANEL = 1027; protected static final int MSG_SHOW_HEADS_UP = 1028; protected static final int MSG_SHOW_HEADS_UP = 1028; protected static final int MSG_HIDE_HEADS_UP = 1029; protected static final int MSG_HIDE_HEADS_UP = 1029; Loading Loading @@ -751,9 +750,9 @@ public abstract class BaseStatusBar extends SystemUI implements @Override @Override public void showSearchPanel() { public void showSearchPanel() { int msg = MSG_OPEN_SEARCH_PANEL; if (mSearchPanelView != null && mSearchPanelView.isAssistantAvailable()) { mHandler.removeMessages(msg); mSearchPanelView.show(true, true); mHandler.sendEmptyMessage(msg); } } } @Override @Override Loading Loading @@ -966,12 +965,6 @@ public abstract class BaseStatusBar extends SystemUI implements case MSG_SHOW_PREV_AFFILIATED_TASK: case MSG_SHOW_PREV_AFFILIATED_TASK: showRecentsPreviousAffiliatedTask(); showRecentsPreviousAffiliatedTask(); break; break; case MSG_OPEN_SEARCH_PANEL: if (DEBUG) Log.d(TAG, "opening search panel"); if (mSearchPanelView != null && mSearchPanelView.isAssistantAvailable()) { mSearchPanelView.show(true, true); } break; case MSG_CLOSE_SEARCH_PANEL: case MSG_CLOSE_SEARCH_PANEL: if (DEBUG) Log.d(TAG, "closing search panel"); if (DEBUG) Log.d(TAG, "closing search panel"); if (mSearchPanelView != null && mSearchPanelView.isShowing()) { if (mSearchPanelView != null && mSearchPanelView.isShowing()) { Loading packages/SystemUI/src/com/android/systemui/statusbar/DelegateViewHelper.java +3 −4 Original line number Original line Diff line number Diff line Loading @@ -20,8 +20,7 @@ import android.app.StatusBarManager; import android.graphics.RectF; import android.graphics.RectF; import android.view.MotionEvent; import android.view.MotionEvent; import android.view.View; import android.view.View; import android.view.ViewConfiguration; import com.android.systemui.R; public class DelegateViewHelper { public class DelegateViewHelper { private View mDelegateView; private View mDelegateView; Loading Loading @@ -107,8 +106,8 @@ public class DelegateViewHelper { public void setSourceView(View view) { public void setSourceView(View view) { mSourceView = view; mSourceView = view; if (mSourceView != null) { if (mSourceView != null) { mTriggerThreshhold = mSourceView.getContext().getResources() mTriggerThreshhold = .getDimension(R.dimen.navbar_search_up_threshhold); ViewConfiguration.get(mSourceView.getContext()).getScaledPagingTouchSlop(); } } } } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarViewTaskSwitchHelper.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -33,6 +33,7 @@ public class NavigationBarViewTaskSwitchHelper extends GestureDetector.SimpleOnG private final int mMinFlingVelocity; private final int mMinFlingVelocity; private boolean mInterceptTouches; private boolean mInterceptTouches; private int mTouchDownX; private int mTouchDownX; private int mTouchDownY; public NavigationBarViewTaskSwitchHelper(Context context) { public NavigationBarViewTaskSwitchHelper(Context context) { ViewConfiguration configuration = ViewConfiguration.get(context); ViewConfiguration configuration = ViewConfiguration.get(context); Loading @@ -58,12 +59,19 @@ public class NavigationBarViewTaskSwitchHelper extends GestureDetector.SimpleOnG switch (action & MotionEvent.ACTION_MASK) { switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { case MotionEvent.ACTION_DOWN: { mTouchDownX = (int) event.getX(); mTouchDownX = (int) event.getX(); mTouchDownY = (int) event.getY(); mInterceptTouches = false; mInterceptTouches = false; break; break; } } case MotionEvent.ACTION_MOVE: { case MotionEvent.ACTION_MOVE: { int x = (int) event.getX(); int x = (int) event.getX(); if (Math.abs(x - mTouchDownX) > mScrollTouchSlop) { int y = (int) event.getY(); int xDiff = Math.abs(x - mTouchDownX); int yDiff = Math.abs(y - mTouchDownY); boolean exceededTouchSlop = !mIsVertical ? xDiff > mScrollTouchSlop && xDiff > yDiff : yDiff > mScrollTouchSlop && yDiff > xDiff; if (exceededTouchSlop) { mInterceptTouches = true; mInterceptTouches = true; return true; return true; } } Loading Loading
packages/SystemUI/res/values/dimens.xml +1 −4 Original line number Original line Diff line number Diff line Loading @@ -115,9 +115,6 @@ <!-- Diameter of outer shape drawable shown in navbar search. Should be 1/2 of above value --> <!-- Diameter of outer shape drawable shown in navbar search. Should be 1/2 of above value --> <dimen name="navbar_search_outerring_radius">170dp</dimen> <dimen name="navbar_search_outerring_radius">170dp</dimen> <!-- Threshold for swipe-up gesture to activate search dialog --> <dimen name="navbar_search_up_threshhold">40dip</dimen> <!-- Height of search panel including navigation bar height --> <!-- Height of search panel including navigation bar height --> <dimen name="navbar_search_panel_height">230dip</dimen> <dimen name="navbar_search_panel_height">230dip</dimen> Loading Loading @@ -420,7 +417,7 @@ <dimen name="search_card_peek_height">100dp</dimen> <dimen name="search_card_peek_height">100dp</dimen> <!-- How far the user needs to drag up to invoke search. --> <!-- How far the user needs to drag up to invoke search. --> <dimen name="search_panel_threshold">150dp</dimen> <dimen name="search_panel_threshold">100dp</dimen> <!-- The width/height of the phone/camera/unlock icon on keyguard. --> <!-- The width/height of the phone/camera/unlock icon on keyguard. --> <dimen name="keyguard_affordance_height">56dp</dimen> <dimen name="keyguard_affordance_height">56dp</dimen> Loading
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +1 −3 Original line number Original line Diff line number Diff line Loading @@ -1323,10 +1323,8 @@ public class KeyguardViewMediator extends SystemUI { // (like recents). Temporary enable/disable (e.g. the "back" button) are // (like recents). Temporary enable/disable (e.g. the "back" button) are // done in KeyguardHostView. // done in KeyguardHostView. flags |= StatusBarManager.DISABLE_RECENT; flags |= StatusBarManager.DISABLE_RECENT; if (!isAssistantAvailable()) { flags |= StatusBarManager.DISABLE_SEARCH; flags |= StatusBarManager.DISABLE_SEARCH; } } } if (isShowingAndNotOccluded()) { if (isShowingAndNotOccluded()) { flags |= StatusBarManager.DISABLE_HOME; flags |= StatusBarManager.DISABLE_HOME; } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +3 −10 Original line number Original line Diff line number Diff line Loading @@ -114,7 +114,6 @@ public abstract class BaseStatusBar extends SystemUI implements protected static final int MSG_CANCEL_PRELOAD_RECENT_APPS = 1023; protected static final int MSG_CANCEL_PRELOAD_RECENT_APPS = 1023; protected static final int MSG_SHOW_NEXT_AFFILIATED_TASK = 1024; protected static final int MSG_SHOW_NEXT_AFFILIATED_TASK = 1024; protected static final int MSG_SHOW_PREV_AFFILIATED_TASK = 1025; protected static final int MSG_SHOW_PREV_AFFILIATED_TASK = 1025; protected static final int MSG_OPEN_SEARCH_PANEL = 1026; protected static final int MSG_CLOSE_SEARCH_PANEL = 1027; protected static final int MSG_CLOSE_SEARCH_PANEL = 1027; protected static final int MSG_SHOW_HEADS_UP = 1028; protected static final int MSG_SHOW_HEADS_UP = 1028; protected static final int MSG_HIDE_HEADS_UP = 1029; protected static final int MSG_HIDE_HEADS_UP = 1029; Loading Loading @@ -751,9 +750,9 @@ public abstract class BaseStatusBar extends SystemUI implements @Override @Override public void showSearchPanel() { public void showSearchPanel() { int msg = MSG_OPEN_SEARCH_PANEL; if (mSearchPanelView != null && mSearchPanelView.isAssistantAvailable()) { mHandler.removeMessages(msg); mSearchPanelView.show(true, true); mHandler.sendEmptyMessage(msg); } } } @Override @Override Loading Loading @@ -966,12 +965,6 @@ public abstract class BaseStatusBar extends SystemUI implements case MSG_SHOW_PREV_AFFILIATED_TASK: case MSG_SHOW_PREV_AFFILIATED_TASK: showRecentsPreviousAffiliatedTask(); showRecentsPreviousAffiliatedTask(); break; break; case MSG_OPEN_SEARCH_PANEL: if (DEBUG) Log.d(TAG, "opening search panel"); if (mSearchPanelView != null && mSearchPanelView.isAssistantAvailable()) { mSearchPanelView.show(true, true); } break; case MSG_CLOSE_SEARCH_PANEL: case MSG_CLOSE_SEARCH_PANEL: if (DEBUG) Log.d(TAG, "closing search panel"); if (DEBUG) Log.d(TAG, "closing search panel"); if (mSearchPanelView != null && mSearchPanelView.isShowing()) { if (mSearchPanelView != null && mSearchPanelView.isShowing()) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/DelegateViewHelper.java +3 −4 Original line number Original line Diff line number Diff line Loading @@ -20,8 +20,7 @@ import android.app.StatusBarManager; import android.graphics.RectF; import android.graphics.RectF; import android.view.MotionEvent; import android.view.MotionEvent; import android.view.View; import android.view.View; import android.view.ViewConfiguration; import com.android.systemui.R; public class DelegateViewHelper { public class DelegateViewHelper { private View mDelegateView; private View mDelegateView; Loading Loading @@ -107,8 +106,8 @@ public class DelegateViewHelper { public void setSourceView(View view) { public void setSourceView(View view) { mSourceView = view; mSourceView = view; if (mSourceView != null) { if (mSourceView != null) { mTriggerThreshhold = mSourceView.getContext().getResources() mTriggerThreshhold = .getDimension(R.dimen.navbar_search_up_threshhold); ViewConfiguration.get(mSourceView.getContext()).getScaledPagingTouchSlop(); } } } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarViewTaskSwitchHelper.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -33,6 +33,7 @@ public class NavigationBarViewTaskSwitchHelper extends GestureDetector.SimpleOnG private final int mMinFlingVelocity; private final int mMinFlingVelocity; private boolean mInterceptTouches; private boolean mInterceptTouches; private int mTouchDownX; private int mTouchDownX; private int mTouchDownY; public NavigationBarViewTaskSwitchHelper(Context context) { public NavigationBarViewTaskSwitchHelper(Context context) { ViewConfiguration configuration = ViewConfiguration.get(context); ViewConfiguration configuration = ViewConfiguration.get(context); Loading @@ -58,12 +59,19 @@ public class NavigationBarViewTaskSwitchHelper extends GestureDetector.SimpleOnG switch (action & MotionEvent.ACTION_MASK) { switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { case MotionEvent.ACTION_DOWN: { mTouchDownX = (int) event.getX(); mTouchDownX = (int) event.getX(); mTouchDownY = (int) event.getY(); mInterceptTouches = false; mInterceptTouches = false; break; break; } } case MotionEvent.ACTION_MOVE: { case MotionEvent.ACTION_MOVE: { int x = (int) event.getX(); int x = (int) event.getX(); if (Math.abs(x - mTouchDownX) > mScrollTouchSlop) { int y = (int) event.getY(); int xDiff = Math.abs(x - mTouchDownX); int yDiff = Math.abs(y - mTouchDownY); boolean exceededTouchSlop = !mIsVertical ? xDiff > mScrollTouchSlop && xDiff > yDiff : yDiff > mScrollTouchSlop && yDiff > xDiff; if (exceededTouchSlop) { mInterceptTouches = true; mInterceptTouches = true; return true; return true; } } Loading