Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base: Screen Recorder (1/3) #2

Merged
merged 1 commit into from
Nov 6, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -2588,6 +2588,12 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean
*/
public static final String BATTERY_LIGHT_FULL_COLOR = "battery_light_full_color";

/**
* Show ScreenRecord in Power Menu
* @hide
*/
public static final String SCREENRECORD_IN_POWER_MENU = "screenrecord_in_power_menu";

/** Sprint MWI Quirk: Show message wait indicator notifications
* @hide
*/
Expand Down
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 core/res/res/drawable-mdpi/ic_lock_screen_record.png
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions core/res/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1665,4 +1665,6 @@
</plurals>
<string name="restr_pin_try_later" msgid="973144472490532377">"Riprova più tardi"</string>
<string name="immersive_mode_confirmation" msgid="7227416894979047467">"Scorri dall\'alto verso il basso per uscire dalla modalità schermo intero."</string>
<!-- label for item that takes screenrecord in the phone options dialog -->
<string name="global_action_screenrecord">Registra schermo</string>
</resources>
3 changes: 3 additions & 0 deletions core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@
<!-- If this is true, key chords can be used to take a screenshot on the device. -->
<bool name="config_enableScreenshotChord">true</bool>

<!-- If this is true, key chords can be used to take a screen record on the device. -->
<bool name="config_enableScreenrecordChord">true</bool>

<!-- If true, the screen can be rotated via the accelerometer in all 4
rotations as the default behavior. -->
<bool name="config_allowAllRotations">false</bool>
Expand Down
3 changes: 3 additions & 0 deletions core/res/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@
<!-- label for item that turns off power in phone options dialog -->
<string name="global_action_power_off">Power off</string>

<!-- label for item that takes screenrecord in the phone options dialog -->
<string name="global_action_screenrecord">Screen record</string>

<!-- label for item that generates a bug report in the phone options dialog -->
<string name="global_action_bug_report">Bug report</string>

Expand Down
4 changes: 4 additions & 0 deletions core/res/res/values/symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@
<java-symbol type="bool" name="config_enableWallpaperService" />
<java-symbol type="bool" name="config_sendAudioBecomingNoisy" />
<java-symbol type="bool" name="config_enableScreenshotChord" />
<java-symbol type="bool" name="config_enableScreenrecordChord" />
<java-symbol type="bool" name="config_bluetooth_default_profiles" />
<java-symbol type="bool" name="config_enableWifiDisplay" />
<java-symbol type="bool" name="config_useDevInputEventForAudioJack" />
Expand Down Expand Up @@ -1318,6 +1319,7 @@
<java-symbol type="drawable" name="ic_jog_dial_sound_on" />
<java-symbol type="drawable" name="ic_jog_dial_unlock" />
<java-symbol type="drawable" name="ic_jog_dial_vibrate_on" />
<java-symbol type="drawable" name="ic_lock_screen_record" />
<java-symbol type="drawable" name="ic_lock_airplane_mode" />
<java-symbol type="drawable" name="ic_lock_airplane_mode_off" />
<java-symbol type="drawable" name="ic_menu_cc" />
Expand Down Expand Up @@ -1384,6 +1386,8 @@
<java-symbol type="string" name="bugreport_message" />
<java-symbol type="string" name="faceunlock_multiple_failures" />
<java-symbol type="string" name="global_action_power_off" />
<java-symbol type="string" name="global_action_screenshot" />
<java-symbol type="string" name="global_action_screenrecord" />
<java-symbol type="string" name="global_actions_airplane_mode_off_status" />
<java-symbol type="string" name="global_actions_airplane_mode_on_status" />
<java-symbol type="string" name="global_actions_toggle_airplane_mode" />
Expand Down
12 changes: 12 additions & 0 deletions packages/SystemUI/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<uses-permission android:name="android.permission.STATUS_BAR" />
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
<uses-permission android:name="android.permission.REMOTE_AUDIO_PLAYBACK" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT" />

<uses-permission android:name="android.permission.MANAGE_USERS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
Expand All @@ -26,6 +29,9 @@
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.GET_APP_OPS_STATS" />

<!-- Screen recording -->
<uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />

<!-- Networking and telephony -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
Expand Down Expand Up @@ -120,6 +126,12 @@
<receiver android:name=".screenshot.DeleteScreenshot"
android:exported="true" />

<!-- started from PhoneWindowManager
TODO: Should have an android:permission attribute -->
<service android:name=".omni.screenrecord.TakeScreenrecordService"
android:process=":screenrecord"
android:exported="false" />

<service android:name=".LoadAverageService"
android:exported="true" />

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.
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.
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.
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.
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.
34 changes: 34 additions & 0 deletions packages/SystemUI/res/values-it/custom_strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The OmniROM Project

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Screenrecord Notification Ticker -->
<string name="screenrecord_notif_ticker">Lo schermo verrà registrato</string>

<!-- Screenrecord notification title -->
<string name="screenrecord_notif_title">Registrazione schermo in corso</string>

<!-- Screenrecord notification action: Stop -->
<string name="screenrecord_notif_stop">Stop</string>

<!-- Screenrecord notification action: show/hide pointer -->
<string name="screenrecord_notif_pointer_on">Mostra puntatore</string>
<string name="screenrecord_notif_pointer_off">Nascondi puntatore</string>

<!-- Screen record notification error title -->
<string name="screenrecord_notif_error">Impossibile registrare lo schermo</string>
</resources>
34 changes: 34 additions & 0 deletions packages/SystemUI/res/values/custom_strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The OmniROM Project

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Screenrecord Notification Ticker -->
<string name="screenrecord_notif_ticker">Screen is being recorded</string>

<!-- Screenrecord notification title -->
<string name="screenrecord_notif_title">Recording screen</string>

<!-- Screenrecord notification action: Stop -->
<string name="screenrecord_notif_stop">Stop</string>

<!-- Screenrecord notification action: show/hide pointer -->
<string name="screenrecord_notif_pointer_on">Show pointer</string>
<string name="screenrecord_notif_pointer_off">Hide pointer</string>

<!-- Screen record notification error title -->
<string name="screenrecord_notif_error">Unable to record screen</string>
</resources>
Loading