Skip to content

Commit 38c904a

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge changes Ia0c2450f,I0fac062f into jb-mr1-dev
* changes: Be a little more lenient with panel-open gestures. Missing copyright headers.
2 parents 4e7f2ff + be2cf32 commit 38c904a

File tree

6 files changed

+99
-5
lines changed

6 files changed

+99
-5
lines changed

packages/SystemUI/src/com/android/systemui/BeanBagDream.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2012 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.android.systemui;
218

319
import android.service.dreams.DreamService;

packages/SystemUI/src/com/android/systemui/statusbar/RotationToggle.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2012 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.android.systemui.statusbar;
218

319
import android.content.Context;

packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2012 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.android.systemui.statusbar.phone;
218

319
import java.util.ArrayList;

packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelHolder.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2012 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.android.systemui.statusbar.phone;
218

319
import android.content.Context;
@@ -63,4 +79,4 @@ public boolean onTouchEvent(MotionEvent event) {
6379
public void setBar(PanelBar panelBar) {
6480
mBar = panelBar;
6581
}
66-
}
82+
}

packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2012 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.android.systemui.statusbar.phone;
218

319
import android.animation.ObjectAnimator;
@@ -320,18 +336,16 @@ public boolean onTouch(View v, MotionEvent event) {
320336
final float deltaY = Math.abs(mFinalTouchY - mInitialTouchY);
321337
if (deltaY < mFlingGestureMinDistPx
322338
|| vel < mFlingExpandMinVelocityPx
323-
|| mJustPeeked) {
339+
) {
324340
vel = 0;
325341
}
326342

327343
if (negative) {
328344
vel = -vel;
329345
}
330346

331-
if (DEBUG) LOG("gesture: dy=%f vraw=(%f,%f) vnorm=(%f,%f) vlinear=%f",
347+
if (DEBUG) LOG("gesture: dy=%f vel=(%f,%f) vlinear=%f",
332348
deltaY,
333-
mVelocityTracker.getXVelocity(),
334-
mVelocityTracker.getYVelocity(),
335349
xVel, yVel,
336350
vel);
337351

packages/SystemUI/src/com/android/systemui/statusbar/policy/CurrentUserTracker.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2012 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.android.systemui.statusbar.policy;
218

319
import android.app.ActivityManager;

0 commit comments

Comments
 (0)