History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
af8d6c44f06d2f8baac2c5774a9efdae3fc36797 07-May-2014 John Spurlock <jspurlock@google.com> New quick settings implementation.

Bug:14133785
Change-Id: I7f57f8e7ebcc3e1a06fa5204f477470f14299e1f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
a2b73480c0958ba5605ea3fe097af0f032a2257e 05-Sep-2013 David Christie <dnchrist@google.com> Fix QuickSettings to honor location setting for restricted users (b/10553306).
Generally when a user is location restricted, location will be off.
But just in case location is on and locked in that state, we should
respect that in the UI.

Change-Id: I112139db447ba6dbf4c7c38600406fb5ba6a1fa8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
0e907e8350d01ea6d8093470fd5cf7d1ae008de3 05-Sep-2013 John Spurlock <jspurlock@google.com> Merge "SystemUI demo mode." into klp-dev
b12ba933f3db9280edcb6a3591741d29c109a4e2 04-Sep-2013 David Christie <dnchrist@google.com> Make location QuickSettings multi-user compatible (b/10563313)

Change-Id: I8ae5238e66fa2d6890ffe5697d3e6d5f50413c3e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
3c87566c115e1fce3fdc09a6fe40488bcdc04cde 31-Aug-2013 John Spurlock <jspurlock@google.com> SystemUI demo mode.

Control the status bar visuals via a simple intent protocol.
Useful for comprehensive visual testing reachable assets
and the various bar modes.

Protected behind a global system setting. To enable:
adb shell settings put global sysui_demo_allowed 1

Remove obsolete sync failing asset, and tighten up
BluetoothController to represent reality.

Bug:10502089
Change-Id: I28443af3d6b22fcb7b367ef70e1d95fc23ebd407
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
a324ac787564aa4e113dc7905667fd8776f4c406 26-Aug-2013 Tom O'Neill <tomo@google.com> Address API council comments on location mode API council

- Start fixing b/10461763

Change-Id: Ic5305bdca38329765a1de565c0a25da12e8ab19d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
448baa08d09e4ae9159fa9318b8a2b05250a4c94 21-Aug-2013 David Christie <dnchrist@google.com> Switch QuickSettings to new LocationMode setting api.

Change-Id: Ie3981741ae422562e9c703b76d10278f285739c6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
ef20fd1ea09f1f0d7fb396d55d2a648ef1b06124 14-Aug-2013 David Christie <dnchrist@google.com> Don't allow airplane mode to affect location status icon.
Gps still operates when airplane mode is on, and consumes
just as much power so the icon shouldn't be hidden.

Change-Id: I10edc8771d3dd1831e94d26c6f61ca82d805cc12
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
69b9eff155254f1c274b8adbbf5501ddec4da089 13-Aug-2013 David Christie <dnchrist@google.com> Merge "Update Quick Settings to use new consolidated master location method. This is an effort to consolidate the logic of what the "master location switch" means. Quick settings will no longeer explicitly enable/disable gps and network providers." into klp-dev
d4544b75f108f373e32f9c98b3d3c12539064c94 08-Aug-2013 David Christie <dnchrist@google.com> Update Quick Settings to use new consolidated master location method.
This is an effort to consolidate the logic of what the "master
location switch" means. Quick settings will no longeer explicitly
enable/disable gps and network providers.

Change-Id: I78e1337561f72aca81ba5b14321845a0a9d0b597
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
c750c1fb83fbdec895e236dda7207db4da14ec49 08-Aug-2013 David Christie <dnchrist@google.com> Update gps status icon to be a "high power" location icon.
Move icon to right side of the screen and synchronize status with
AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION.

Change-Id: Iea2570501cb18be0489669fd4ea240dc63f9567a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
03ed0127dae141d99b003ede9ba3ea937128e471 31-Jul-2013 David Christie <dnchrist@google.com> Modify quicksettings to have new location behavior.

Location tile is always present, and long pressing
toggles the master location enabled switch.

Change-Id: I54d5ccaa3b04e14ebebd68f5fafa8e65311debb4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
209bede6b9edb9171e5bee4077b48e35004a37b4 17-Jul-2013 John Spurlock <jspurlock@google.com> Remove trailing whitespace from system ui.

Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
de84f0e77ea2bf713d15c290264059a413c2486a 12-Jun-2013 John Spurlock <jspurlock@google.com> Organize the imports in systemui.

To follow android conventions, more importantly to remove the
unused.

Change-Id: I75881718e84360a579a3b02c26489ad250bc9227
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
5feceebb892d4cb5777cea3c6174b206705d456b 23-Mar-2013 Daniel Sandler <dsandler@android.com> New NotificationListenerService.

This is the best and only way for apps to listen for
notifications: create a NotificationListenerService, wait
for the NoMan to bind to you (as a result of the user
checking a box somewhere in Settings and agreeing to a
scary dialog box), and you'll start receiving notification
posted and dismissed callbacks. Your service, while enabled,
will also be able to clear one or all notifications.

Use this power wisely.

This change moves StatusBarNotification out of
com.android.internal into android.service.notification.
[Internal customers, including System UI and early users of
the system-only listener binder API, will need to be
updated.]

Bug: 8199624
Change-Id: I1be46f823d4b3ddc901109ec1e085cd6deb740c2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
f265ea9d8307282ff1da3915978625a94fc2859e 01-Feb-2013 Dianne Hackborn <hackbod@google.com> App ops: vibration, neighboring cells, dialing, etc.

Improve handling of vibration op, so that apps are
better blamed (there is now a hidden vibrator API that
supplies the app to blame, and the system now uses this
when vibrating on behalf of an app).

Add operation for retrieving neighboring cell information.

Add a new op for calling a phone number. This required
plumbing information about the launching package name through
the activity manager, which required changing the internal
startActivity class, which required hitting a ton of code that
uses those internal APIs.

Change-Id: I3f8015634fdb296558f07fe654fb8d53e5c94d07
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
38389b6cf7bd2ef49d2bd20ff1bca8677596590e 30-Sep-2012 Victoria Lease <violets@google.com> Route GPS notifications to all users.

This takes the easy way around notifying the correct users
about GPS state transitions by notifying ALL the users(!).

I've also laid groundwork for proper multiuser support in
LocationManager and did a tiny bit of cleanup in
GpsNetInitiatedHandler while I was looking at notifications.

Bug: 7213552
Change-Id: I2d6dc65c459e55d110ac0f5f79ae7a87ad638ede
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
e641b6a99cabad7076e10694a5b1b30f449de462 11-Sep-2012 Winson Chung <winsonc@google.com> Adding alarm to quick settings.

- Cleaning up some code

Change-Id: Iaea2077084ba16b4fb4d47c8b2df5da6983ceb91
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
d63c59786509aadd6a8d0c5cb45ed696339f16b7 06-Sep-2012 Winson Chung <winsonc@google.com> Initial changes to add QuickSettings.

Change-Id: If510f74d6046929e5e8a794c6dc2fddb15a03d6b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
4120375d46091df8527bb701882e056fbb0e6b06 31-Aug-2012 Dianne Hackborn <hackbod@google.com> Remove Binder.getOrigCallingUid().

Replaced all remaining places that used it with explicit user
specification.

While doing this, I ran into stuff that was creating PendingIntent
objects (that now need to specify the explicit user they are for),
which are also posting notifications... but have no way to specify
the user for the notification.

So the notification manager in the system process now also gets a
formal concept of a user associated with the notification, which
is passed in to all the necessary aidl calls. I also removed the
old deprecated aidl interface for posting/cancelling notifications,
since we now always need a user supplied.

There is more work that needs to be done here, though. For example
I think we need to be able to specify USER_ALL for a notification that
should be shown to all users (such as low storage or low battery).
Along with that, the PendingIntent creation needs to be tweaked to
be able to handle USER_CURRENT by evaluating the user at the point the
pending intent is sent.

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
2561b0b10a55841a08e0e1d467e73e10b1bf256d 14-Feb-2012 Daniel Sandler <dsandler@android.com> New notification priority and related APIs.

This change introduces a few new bits of data on
Notification that will help the Notification Manager and
System UI route and display them more intelligently:

-> priority: an integer in a predefined range that
indicates the app's best guess as to the relative
importance (to the user, right now) of that information

-> kind: a tag (really, set of tags) indicating the general
type of notification (realtime, asynchronous, etc)

-> extras: a Bundle of additional key/value pairs
associated with this notification (currently @hidden)

The notification manager takes these data into account when
assigning to each notification a score which is passed with
the notification on to the system UI, where it can be used to
affect presentation. For example:

- Spammy apps (identified explicitly by the user or by
some other means) will have their notifications scored
very negatively by the notification manager, allowing
the UI to suppress them
- Notifications of higher score might be shown larger
or in a different way
- Very important notifications (indicated by a very high
score) might interrupt the user during an otherwise
important task (videochat, game, etc)

Implementation note: This replaces/extends the old internal
notion of "priority", which was mostly used to organize
ongoings and system notifications at the top of the panel.

Change-Id: Ie063dc75f198a68e2b5734a3aa0cacb5aba1ac39
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
e5e764ad0bb74d8c1405d018b4e0fe92d6554660 04-Feb-2011 Romain Guy <romainguy@google.com> Open the location settings when clicking the GPS notification.

Change-Id: I4203d75b7d18ab61f1f8e77452440bdc47161a10
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java
e40451a89dc91dfd636af7cb32a23b4a4cc93fdc 03-Feb-2011 Daniel Sandler <dsandler@google.com> Ongoing notification for GPS use.

This change improves upon the notification priority API
introduced in change I9e738cc4, allowing privileged clients
to set the priority of a notification when posting it
directly to INotificationManager. StatusBarTest is updated
to test this new feature.

The new LocationController in SystemUI uses this facility to
post a high-priority ongoing notification whenever GPS is in
use (replacing the functionality of the legacy GPS status
bar icon).

Also happens to fix http://b/3325472 (adding a log message
when notifications are dropped because of a missing icon).

Bug: 3412807

Change-Id: I523016ffa53bf979be98ddc4a2deb55a6270c68a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/LocationController.java