Merge "Move moveable non-public framework resources up to SystemUI"
Before Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 138 B |
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<bitmap
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:tileMode="repeat"
|
||||
android:src="@android:drawable/notify_panel_notification_icon_bg"
|
||||
/>
|
@ -22,8 +22,6 @@
|
||||
<drawable name="screen_background_dark">#ff000000</drawable>
|
||||
<drawable name="status_bar_closed_default_background">#ff000000</drawable>
|
||||
<drawable name="status_bar_opened_default_background">#ff000000</drawable>
|
||||
<drawable name="notification_item_background_color">#ff111111</drawable>
|
||||
<drawable name="notification_item_background_color_pressed">#ff454545</drawable>
|
||||
<drawable name="search_bar_default_color">#ff000000</drawable>
|
||||
<drawable name="safe_mode_background">#60000000</drawable>
|
||||
<!-- Background drawable that can be used for a transparent activity to
|
||||
|
@ -67,18 +67,6 @@
|
||||
<!-- Size of lockscreen outerring on unsecure unlock LockScreen -->
|
||||
<dimen name="keyguard_lockscreen_outerring_diameter">270dp</dimen>
|
||||
|
||||
<!-- Default target placement radius for GlowPadView. Should be 1/2 of outerring diameter. -->
|
||||
<dimen name="glowpadview_target_placement_radius">135dip</dimen>
|
||||
|
||||
<!-- Default glow radius for GlowPadView -->
|
||||
<dimen name="glowpadview_glow_radius">75dip</dimen>
|
||||
|
||||
<!-- Default distance beyond which GlowPadView snaps to the matching target -->
|
||||
<dimen name="glowpadview_snap_margin">40dip</dimen>
|
||||
|
||||
<!-- Default distance from each snap target that GlowPadView considers a "hit" -->
|
||||
<dimen name="glowpadview_inner_radius">15dip</dimen>
|
||||
|
||||
<!-- Preference activity side margins -->
|
||||
<dimen name="preference_screen_side_margin">0dp</dimen>
|
||||
<!-- Preference activity side margins negative-->
|
||||
|
@ -3926,26 +3926,6 @@
|
||||
<!-- Description of the sliding handle in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="content_description_sliding_handle">"Sliding handle. Touch & hold."</string>
|
||||
|
||||
<!-- Description of the up direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_direction_up">Slide up for <xliff:g id="target_description" example="Unlock">%s</xliff:g>.</string>
|
||||
<!-- Description of the down direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_direction_down">Slide down for <xliff:g id="target_description" example="Unlock">%s</xliff:g>.</string>
|
||||
<!-- Description of the left direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_direction_left">"Slide left for <xliff:g id="target_description" example="Unlock">%s</xliff:g>.</string>
|
||||
<!-- Description of the right direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_direction_right">Slide right for <xliff:g id="target_description" example="Unlock">%s</xliff:g>.</string>
|
||||
|
||||
<!-- Description of the unlock target in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_target_unlock">Unlock</string>
|
||||
<!-- Description of the camera target in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_target_camera">Camera</string>
|
||||
<!-- Description of the silent target in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_target_silent">Silent</string>
|
||||
<!-- Description of the sound on target in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_target_soundon">Sound on</string>
|
||||
<!-- Description of the unlock target in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_target_search">Search</string>
|
||||
|
||||
<!-- Description of the unlock handle in the Slide unlock screen for tablets. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_target_unlock_tablet">Swipe to unlock.</string>
|
||||
|
||||
|
@ -1087,7 +1087,6 @@
|
||||
<java-symbol type="drawable" name="unlock_halo" />
|
||||
<java-symbol type="drawable" name="unlock_ring" />
|
||||
<java-symbol type="drawable" name="unlock_wave" />
|
||||
<java-symbol type="drawable" name="ic_action_assist_generic" />
|
||||
<java-symbol type="drawable" name="notification_bg" />
|
||||
<java-symbol type="drawable" name="notification_bg_low" />
|
||||
<java-symbol type="drawable" name="notification_template_icon_bg" />
|
||||
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 538 B |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 964 B After Width: | Height: | Size: 964 B |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@ -17,6 +17,6 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
|
||||
|
||||
<item android:state_pressed="true" android:drawable="@*android:drawable/notification_item_background_color_pressed" />
|
||||
<item android:state_pressed="true" android:drawable="@drawable/notification_item_background_color_pressed" />
|
||||
<item android:state_pressed="false" android:drawable="@drawable/notification_item_background_legacy_color" />
|
||||
</selector>
|
||||
|
@ -19,7 +19,7 @@
|
||||
android:opacity="translucent"
|
||||
>
|
||||
<item
|
||||
android:drawable="@*android:drawable/notification_item_background_color"
|
||||
android:drawable="@drawable/notification_item_background_color"
|
||||
/>
|
||||
</layer-list>
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<bitmap
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:tileMode="repeat"
|
||||
android:src="@*android:drawable/notify_panel_notification_icon_bg"
|
||||
/>
|
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<bitmap
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:tileMode="repeat"
|
||||
android:src="@*android:drawable/notify_panel_notification_icon_bg"
|
||||
/>
|
@ -20,7 +20,7 @@
|
||||
>
|
||||
<!-- the large icon extends 12dp beyond the edge of the status bar -->
|
||||
<item
|
||||
android:drawable="@*android:drawable/notification_item_background_color"
|
||||
android:drawable="@drawable/notification_item_background_color"
|
||||
android:top="12dp"
|
||||
/>
|
||||
</layer-list>
|
||||
|
@ -51,13 +51,13 @@
|
||||
prvandroid:directionDescriptions="@array/navbar_search_direction_descriptions"
|
||||
prvandroid:outerRingDrawable="@drawable/navbar_search_outerring"
|
||||
prvandroid:outerRadius="@dimen/navbar_search_outerring_radius"
|
||||
prvandroid:innerRadius="@*android:dimen/glowpadview_inner_radius"
|
||||
prvandroid:innerRadius="@dimen/glowpadview_inner_radius"
|
||||
prvandroid:snapMargin="@dimen/navbar_search_snap_margin"
|
||||
prvandroid:feedbackCount="0"
|
||||
prvandroid:vibrationDuration="@integer/config_vibration_duration"
|
||||
prvandroid:alwaysTrackFinger="true"
|
||||
prvandroid:glowRadius="@*android:dimen/glowpadview_glow_radius"
|
||||
prvandroid:pointDrawable="@*android:drawable/ic_lockscreen_glowdot"
|
||||
prvandroid:glowRadius="@dimen/glowpadview_glow_radius"
|
||||
prvandroid:pointDrawable="@drawable/ic_lockscreen_glowdot"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
@ -37,12 +37,12 @@
|
||||
prvandroid:directionDescriptions="@array/navbar_search_direction_descriptions"
|
||||
prvandroid:outerRingDrawable="@drawable/navbar_search_outerring"
|
||||
prvandroid:outerRadius="@dimen/navbar_search_outerring_radius"
|
||||
prvandroid:innerRadius="@*android:dimen/glowpadview_inner_radius"
|
||||
prvandroid:innerRadius="@dimen/glowpadview_inner_radius"
|
||||
prvandroid:snapMargin="@dimen/navbar_search_snap_margin"
|
||||
prvandroid:feedbackCount="0"
|
||||
prvandroid:vibrationDuration="@integer/config_vibration_duration"
|
||||
prvandroid:alwaysTrackFinger="true"
|
||||
prvandroid:glowRadius="@*android:dimen/glowpadview_glow_radius"
|
||||
prvandroid:pointDrawable="@*android:drawable/ic_lockscreen_glowdot"/>
|
||||
prvandroid:glowRadius="@dimen/glowpadview_glow_radius"
|
||||
prvandroid:pointDrawable="@drawable/ic_lockscreen_glowdot"/>
|
||||
|
||||
</com.android.systemui.SearchPanelView>
|
||||
|
@ -51,13 +51,13 @@
|
||||
prvandroid:directionDescriptions="@array/navbar_search_direction_descriptions"
|
||||
prvandroid:outerRingDrawable="@drawable/navbar_search_outerring"
|
||||
prvandroid:outerRadius="@dimen/navbar_search_outerring_radius"
|
||||
prvandroid:innerRadius="@*android:dimen/glowpadview_inner_radius"
|
||||
prvandroid:innerRadius="@dimen/glowpadview_inner_radius"
|
||||
prvandroid:snapMargin="@dimen/navbar_search_snap_margin"
|
||||
prvandroid:feedbackCount="0"
|
||||
prvandroid:vibrationDuration="@integer/config_vibration_duration"
|
||||
prvandroid:alwaysTrackFinger="true"
|
||||
prvandroid:glowRadius="@*android:dimen/glowpadview_glow_radius"
|
||||
prvandroid:pointDrawable="@*android:drawable/ic_lockscreen_glowdot"
|
||||
prvandroid:glowRadius="@dimen/glowpadview_glow_radius"
|
||||
prvandroid:pointDrawable="@drawable/ic_lockscreen_glowdot"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
@ -22,21 +22,21 @@
|
||||
<array name="navbar_search_targets">
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
<item>@*android:drawable/ic_action_assist_generic</item>
|
||||
<item>@drawable/ic_action_assist_generic</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
||||
<array name="navbar_search_target_descriptions">
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
<item>@*android:string/description_target_search</item>
|
||||
<item>@string/description_target_search</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
||||
<array name="navbar_search_direction_descriptions">
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
<item>@*android:string/description_direction_left</item>
|
||||
<item>@string/description_direction_left</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
||||
|
@ -21,21 +21,21 @@
|
||||
|
||||
<array name="navbar_search_targets">
|
||||
<item>@null</item>
|
||||
<item>@*android:drawable/ic_action_assist_generic</item>
|
||||
<item>@drawable/ic_action_assist_generic</item>
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
||||
<array name="navbar_search_target_descriptions">
|
||||
<item>@null</item>
|
||||
<item>@*android:string/description_target_search</item>
|
||||
<item>@string/description_target_search</item>
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
||||
<array name="navbar_search_direction_descriptions">
|
||||
<item>@null</item>
|
||||
<item>@*android:string/description_direction_left</item>
|
||||
<item>@string/description_direction_left</item>
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
@ -21,21 +21,21 @@
|
||||
|
||||
<array name="navbar_search_targets">
|
||||
<item>@null</item>
|
||||
<item>@*android:drawable/ic_action_assist_generic</item>
|
||||
<item>@drawable/ic_action_assist_generic</item>
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
||||
<array name="navbar_search_target_descriptions">
|
||||
<item>@null</item>
|
||||
<item>@*android:string/description_target_search</item>
|
||||
<item>@string/description_target_search</item>
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
||||
<array name="navbar_search_direction_descriptions">
|
||||
<item>@null</item>
|
||||
<item>@*android:string/description_direction_up</item>
|
||||
<item>@string/description_direction_up</item>
|
||||
<item>@null</item>
|
||||
<item>@null</item>
|
||||
</array>
|
||||
|
@ -36,4 +36,6 @@
|
||||
<color name="batterymeter_charge_color">#FFFFFFFF</color>
|
||||
<color name="batterymeter_bolt_color">#B2000000</color><!-- 70% black -->
|
||||
<color name="status_bar_clock_color">#FFFFFFFF</color>
|
||||
<drawable name="notification_item_background_color">#ff111111</drawable>
|
||||
<drawable name="notification_item_background_color_pressed">#ff454545</drawable>
|
||||
</resources>
|
||||
|
@ -220,4 +220,10 @@
|
||||
|
||||
<!-- used by DessertCase -->
|
||||
<dimen name="dessert_case_cell_size">192dp</dimen>
|
||||
|
||||
<!-- Default glow radius for GlowPadView -->
|
||||
<dimen name="glowpadview_glow_radius">75dip</dimen>
|
||||
|
||||
<!-- Default distance from each snap target that GlowPadView considers a "hit" -->
|
||||
<dimen name="glowpadview_inner_radius">15dip</dimen>
|
||||
</resources>
|
||||
|
@ -513,4 +513,10 @@
|
||||
linebreak to position it correctly. [CHAR LIMIT=45] -->
|
||||
<string name="ssl_ca_cert_warning">Network may\nbe monitored</string>
|
||||
|
||||
<!-- Description of the unlock target in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_target_search">Search</string>
|
||||
<!-- Description of the up direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_direction_up">Slide up for <xliff:g id="target_description" example="Unlock">%s</xliff:g>.</string>
|
||||
<!-- Description of the left direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] -->
|
||||
<string name="description_direction_left">"Slide left for <xliff:g id="target_description" example="Unlock">%s</xliff:g>.</string>
|
||||
</resources>
|
||||
|
@ -135,7 +135,7 @@ public class SearchPanelView extends FrameLayout implements
|
||||
public void onTrigger(View v, final int target) {
|
||||
final int resId = mGlowPadView.getResourceIdForTarget(target);
|
||||
switch (resId) {
|
||||
case com.android.internal.R.drawable.ic_action_assist_generic:
|
||||
case R.drawable.ic_action_assist_generic:
|
||||
mWaitingForLaunch = true;
|
||||
startAssistActivity();
|
||||
vibrate();
|
||||
@ -175,7 +175,7 @@ public class SearchPanelView extends FrameLayout implements
|
||||
ComponentName component = intent.getComponent();
|
||||
if (component == null || !mGlowPadView.replaceTargetDrawablesIfPresent(component,
|
||||
ASSIST_ICON_METADATA_NAME,
|
||||
com.android.internal.R.drawable.ic_action_assist_generic)) {
|
||||
R.drawable.ic_action_assist_generic)) {
|
||||
if (DEBUG) Log.v(TAG, "Couldn't grab icon for component " + component);
|
||||
}
|
||||
}
|
||||
|