Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
08139e9
When wifi is on set screen_off_timeout DEFAULT_SCREEN_OFF_TIMEOUT_WIF…
Jul 3, 2012
3e9eba4
Merge branch 'master' of github.com:onyx-intl/platform_frameworks
Jul 3, 2012
52868ee
make update-api for build
Jul 4, 2012
06857cb
Device will shutdown after 20 min no input event
Jul 4, 2012
bdd2002
Fixed shutdown device may fail bug
Jul 9, 2012
e097aff
Screen timeout and wifi modify
Jul 9, 2012
b27eaf8
Merge branch 'master' of github.com:jerry2012/platform_frameworks
Jul 11, 2012
a6a1110
Merge pull request #4 from jerry2012/master
Jul 11, 2012
0a5acbc
Modify TextView
qingyue Jul 11, 2012
56b1fdf
Merge remote-tracking branch 'origin/master' into develop
qingyue Jul 11, 2012
03ea2df
Modify TextView
qingyue Jul 11, 2012
e6fa1e9
Modify the TextView cursor does not blink
qingyue Jul 11, 2012
072138f
Modify onyx_input_method_extract_view
qingyue Jul 12, 2012
d5339bc
Merge branch 'develop' of github.com:qingyue/platform_frameworks into…
qingyue Jul 12, 2012
ee790aa
Settings mExtractEditText maxLines
qingyue Jul 12, 2012
490df3e
Modify InputMethodService
qingyue Jul 12, 2012
298cb4f
Modify InputMethodservice
qingyue Jul 12, 2012
1261ee3
Modify onyx_input_method_extract_view Modify the scrollbars=none
qingyue Jul 12, 2012
a8a7e19
Modify android:scrollbars=vertical
qingyue Jul 12, 2012
4cc46a0
Settings ExtractEditText.setLines(1)
qingyue Jul 12, 2012
d439ed0
Settings InputMethodService ExtractEditText.setLines(2)
qingyue Jul 13, 2012
341c395
Adjust automatically to DPI change for automatic full screen update
ren022a Jul 16, 2012
cf16e45
Merge remote-tracking branch 'origin/master' into develop
qingyue Jul 17, 2012
9f0f6b4
Device will shutdown after 30 min when auto suspend (Interface)
Jul 18, 2012
91cffbd
Merge pull request #5 from jerry2012/master
joycode Jul 19, 2012
6907e47
Merge remote-tracking branch 'origin/master' into develop
qingyue Jul 19, 2012
d8414ee
Add Log to SurfaceFlinger
qingyue Jul 23, 2012
7b58e22
SurfaceFlinger: revert bound checking code for I62's default screen o…
joycode Jul 23, 2012
2426936
Merge remote-tracking branch 'joy_repo/master' into develop
qingyue Jul 23, 2012
db98589
modified status bar background
dxwts Jul 30, 2012
1b3c48b
Merge remote-tracking branch 'dxw_repo/master' into develop
qingyue Jul 30, 2012
4eb8ba6
add home button in status bar
dxwts Jul 31, 2012
80f9ab6
modified status bar home button
dxwts Aug 1, 2012
1cd90c2
modified status bar button
dxwts Aug 1, 2012
3050284
modified status bar battery animation
dxwts Aug 1, 2012
660eeca
Merge remote-tracking branch 'dxw_repo/master' into develop
qingyue Aug 7, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion base/api/current.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76362,7 +76362,7 @@
type="float"
transient="false"
volatile="false"
value="0.001f"
value="0.0010f"
static="true"
final="true"
deprecated="not deprecated"
Expand Down Expand Up @@ -147450,6 +147450,17 @@
visibility="public"
>
</field>
<field name="DEFAULT_SCREEN_OFF_TIMEOUT_WIFI"
type="int"
transient="false"
volatile="false"
value="600000"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="DEVICE_PROVISIONED"
type="java.lang.String"
transient="false"
Expand Down Expand Up @@ -147868,6 +147879,17 @@
visibility="public"
>
</field>
<field name="SCREEN_OFF_TIMEOUT_BACKUP"
type="java.lang.String"
transient="false"
volatile="false"
value="&quot;screen_off_timeout_backup&quot;"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="SETTINGS_CLASSNAME"
type="java.lang.String"
transient="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,7 @@ public void setOnyxContentFrameView() {
}
if (mOnyxContentFrame != null) {
mExtractEditText = (ExtractEditText)onyxView.findViewById(com.android.internal.R.id.onyxInputExtractEditText);
mExtractEditText.setLines(2);
mExtractEditText.setIME(this);
startExtractingText(false);
mOnyxContentFrame.removeAllViews();
Expand Down Expand Up @@ -1583,6 +1584,7 @@ public void onUpdateSelection(int oldSelStart, int oldSelEnd,
* @author qingyue
*/
if (eet != null && !isFullscreenMode()) {
eet.setLines(2);
final int off = mExtractedText.startOffset;
eet.startInternalChanges();
newSelStart -= off;
Expand Down Expand Up @@ -1822,6 +1824,7 @@ boolean doMovementKey(int keyCode, KeyEvent event, int count) {
* @author qingyue
*/
if (eet != null && !isFullscreenMode()) {
eet.setLines(2);
MovementMethod movement = eet.getMovementMethod();
if (movement != null) {
if (count == MOVEMENT_DOWN) {
Expand Down Expand Up @@ -2184,6 +2187,7 @@ && isFullscreenMode()) {
* Initialization mExtractEditText
*/
if (eet != null && !isFullscreenMode()) {
eet.setLines(2);
mExtractedToken++;
ExtractedTextRequest req = new ExtractedTextRequest();
req.token = mExtractedToken;
Expand Down
10 changes: 9 additions & 1 deletion base/core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,14 @@ public static void setShowGTalkServiceStatus(ContentResolver cr, boolean flag) {
* The timeout before the screen turns off.
*/
public static final String SCREEN_OFF_TIMEOUT = "screen_off_timeout";


/**
* The timeout backup when wifi is on.
*/
public static final String SCREEN_OFF_TIMEOUT_BACKUP = "screen_off_timeout_backup";

public static final int DEFAULT_SCREEN_OFF_TIMEOUT_WIFI = 10 * 60 * 1000; /* 10 minutes */

/**
* If 0, the compatibility mode is off for all applications.
* If 1, older applications run under compatibility mode.
Expand Down Expand Up @@ -1818,6 +1825,7 @@ public static void setShowGTalkServiceStatus(ContentResolver cr, boolean flag) {
XEC_DLS_CONTROL,
DIM_SCREEN,
SCREEN_OFF_TIMEOUT,
SCREEN_OFF_TIMEOUT_BACKUP,
SCREEN_BRIGHTNESS,
SCREEN_BRIGHTNESS_MODE,
VIBRATE_ON,
Expand Down
20 changes: 10 additions & 10 deletions base/core/java/android/widget/TextView.java
Original file line number Diff line number Diff line change
Expand Up @@ -6544,19 +6544,19 @@ public void onSpanRemoved(Spannable buf, Object what, int s, int e) {
}

private void makeBlink() {
if (!mCursorVisible || !isTextEditable()) {
if (mBlink != null) {
mBlink.removeCallbacks(mBlink);
}
//if (!mCursorVisible || !isTextEditable()) {
// if (mBlink != null) {
// mBlink.removeCallbacks(mBlink);
// }

return;
}
// return;
//}

if (mBlink == null)
mBlink = new Blink(this);
//if (mBlink == null)
// mBlink = new Blink(this);

mBlink.removeCallbacks(mBlink);
mBlink.postAtTime(mBlink, mShowCursor + BLINK);
//mBlink.removeCallbacks(mBlink);
//mBlink.postAtTime(mBlink, mShowCursor + BLINK);
}

/**
Expand Down
15 changes: 0 additions & 15 deletions base/core/res/res/drawable/stat_sys_battery_charge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,49 +24,34 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/stat_sys_battery_charge_anim0" android:duration="2000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim1" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim2" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim3" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim4" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim5" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="29">
<animation-list
xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/stat_sys_battery_charge_anim1" android:duration="2000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim2" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim3" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim4" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim5" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="49">
<animation-list
xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/stat_sys_battery_charge_anim2" android:duration="2000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim3" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim4" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim5" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="69">
<animation-list
xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/stat_sys_battery_charge_anim3" android:duration="2000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim4" android:duration="1000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim5" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="89">
<animation-list
xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/stat_sys_battery_charge_anim4" android:duration="2000" />
<item android:drawable="@drawable/stat_sys_battery_charge_anim5" android:duration="1000" />
</animation-list>
</item>
<item android:maxLevel="101" android:drawable="@drawable/stat_sys_battery_charge_anim5" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
android:background="@android:drawable/extract_edit_text"
android:gravity="top"
android:inputType="text"
android:minLines="1"
android:lines="2"
android:scrollbars="vertical" >

</android.inputmethodservice.ExtractEditText>
2 changes: 1 addition & 1 deletion base/packages/SettingsProvider/res/values/defaults.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-->
<resources>
<bool name="def_dim_screen">true</bool>
<integer name="def_screen_off_timeout">60000</integer>
<integer name="def_screen_off_timeout">5000</integer>
<bool name="def_airplane_mode_on">false</bool>
<!-- Comma-separated list of bluetooth, wifi, and cell. -->
<string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1014,10 +1014,12 @@ private void loadSystemSettings(SQLiteDatabase db) {
loadBooleanSetting(stmt, Settings.System.DIM_SCREEN,
R.bool.def_dim_screen);
loadSetting(stmt, Settings.System.STAY_ON_WHILE_PLUGGED_IN,
"1".equals(SystemProperties.get("ro.kernel.qemu")) ? 1 : 0);
"1".equals(SystemProperties.get("ro.kernel.qemu")) ? 1 : 3);
loadIntegerSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT,
R.integer.def_screen_off_timeout);

loadIntegerSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT_BACKUP,
R.integer.def_screen_off_timeout);

// Set default cdma emergency tone
loadSetting(stmt, Settings.System.EMERGENCY_TONE, 0);

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added base/packages/SystemUI/res/drawable/home_l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added base/packages/SystemUI/res/drawable/refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions base/packages/SystemUI/res/drawable/status_bar_button.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape>
<gradient android:startColor="#c4c4c4" android:endColor="#c4c4c4" />
<stroke android:color="#000000" android:width="1dp"/>
<corners android:radius="2dip" />
</shape>
</item>
<item android:state_focused="true">
<shape>
<gradient android:startColor="#c4c4c4" android:endColor="#c4c4c4" />
<stroke android:color="#000000" android:width="2dp"/>
<corners android:radius="2dip" />
</shape>
</item>
<item>
<shape>
<gradient android:startColor="#c4c4c4" android:endColor="#c4c4c4" />
<stroke android:color="#000000" android:width="2dp"/>
<corners android:radius="2dip" />
</shape>
</item>
</selector>
Loading