/frameworks/base/docs/html/guide/topics/location/ |
D | strategies.jd | 18 <li><a href="#StartListening">Deciding when to start listening for updates</a></li> 20 <li><a href="#StopListening">Deciding when to stop listening for updates</a></li> 94 like to receive location updates from the {@link android.location.LocationManager} ("Location 102 and request location updates: 109 // Define a listener that responds to location updates 123 // Register the listener with the Location Manager to receive location updates 130 based location). You can control the frequency at which your listener receives updates 134 {@link android.location.LocationListener}, which receives callbacks for location updates.</p> 136 <p>To request location updates from the GPS provider, use {@link 139 location updates from both the GPS and the Network Location Provider by calling [all …]
|
/frameworks/base/docs/html/training/location/ |
D | receive-location-updates.jd | 11 <li><a href="#updates">Request Location Updates</a></li> 13 <li><a href="#stop-updates">Stop Location Updates</a></li> 54 a more direct approach is to request periodic updates from the fused location 55 provider. In response, the API updates your app periodically with the best 61 <p>This lesson shows you how to request regular updates about a device's 70 periodic location updates. The lesson on 94 <h2 id="updates">Request Location Updates</h2> 96 <p>Before requesting location updates, your app must connect to location 100 the regular updates by calling 114 the updates are affected by the location permissions you've requested and the [all …]
|
D | change-location-settings.jd | 29 <p>If your app needs to request location or receive permission updates, the 87 receive location updates. Note that the location updates may be faster than 88 this rate if another app is receiving updates at a faster rate, or slower 89 than this rate, or there may be no updates at all (if the device has no 98 your app can handle location updates. You need to set this rate because 99 other apps also affect the rate at which updates are sent. The Google Play 100 services location APIs send out updates at the fastest rate that any app 137 but want to receive location updates when available. With this 138 setting, your app does not trigger any location updates, but 162 provider to return location updates that are accurate to within a few feet. [all …]
|
D | index.jd | 61 app to get the current location, get periodic location updates, and look up 86 <b><a href="receive-location-updates.html">Receiving Location 89 Learn how to request and receive periodic location updates.
|
/frameworks/base/docs/html/training/monitoring-device-state/ |
D | battery-monitoring.jd | 32 <p>When you're altering the frequency of your background updates to reduce the effect of those 33 updates on battery life, checking the current battery level and charging state is a good place to 36 <p>The battery-life impact of performing application updates depends on the battery level and 37 charging state of the device. The impact of performing updates while the device is charging over AC 43 even stopping—your updates when the battery charge is nearly exhausted.</p> 56 we'll be handling updates in a later section so it's not necessary.</p> 74 <p>Typically you should maximize the rate of your background updates in the case where the device is 119 the rate of your background updates if the battery charge is below a certain level.</p> 152 <p>It is generally good practice to disable all your background updates when the battery is
|
D | connectivity-monitoring.jd | 34 updates of application data from Internet resources, cache data, or execute long running downloads. 70 <p>Having disabled your updates, it's important that you listen for changes in connectivity in order 80 suspend) your background updates accordingly.</p> 86 this broadcast only when you've previously suspended updates or downloads in order to resume them. 88 should there be none, suspend further updates until connectivity is restored.</p>
|
/frameworks/base/libs/input/ |
D | SpriteController.cpp | 119 Vector<SpriteUpdate> updates; in doUpdateSprites() local 128 updates.push(SpriteUpdate(sprite, sprite->getStateLocked())); in doUpdateSprites() 137 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() 155 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() 196 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() 247 SpriteUpdate& update = updates.editItemAt(i); in doUpdateSprites() 333 const SpriteUpdate& update = updates.itemAt(i); in doUpdateSprites() 348 updates.clear(); in doUpdateSprites()
|
/frameworks/base/docs/html/training/efficient-downloads/ |
D | regular_updates.jd | 31 <p>The optimal frequency of regular updates will vary based on device state, network connectivity, … 33 …That includes disabling background service updates when you lose connectivity and reducing the rat… 35 …efresh frequency can be varied to best mitigate the effect of background updates on the underlying… 55 <p>When scheduling updates, use inexact repeating alarms that allow the system to "phase shift" the… 69 …mplement an exponential back-off pattern to reduce the frequency of your updates (and / or the deg… 102 <p>Alternatively, for transfers that are failure tolerant (such as regular updates), you can simply…
|
D | connectivity_patterns.jd | 34 …icant downloads, preempt scheduled updates, and potentially even temporarily increase the frequenc… 42 …adio active for longer periods during each transfer session to reduce the frequency of updates.</p>
|
/frameworks/base/docs/html/distribute/engage/ |
D | notifications.jd | 17 important notifications and status updates. Notifications are like a news 19 updates since last review. 25 In addition to status updates from friends and family, notifications can also
|
D | app-updates.jd | 3 page.tags="updates" 27 Check out the video below see how Kiwi uses frequent updates to engage and
|
/frameworks/base/docs/html/wear/preview/ |
D | program.jd | 38 We'll provide frequent updates during the preview, so you'll be 102 At key development milestones, we'll deliver updates for your development 103 and testing environment. In general you can expect updates in 140 these updates. 155 keeping your development environment up-to-date as updates are released. 159 We'll notify you when updates are available via the Android Developers 196 We'll provide updates to these development tools at each milestone as
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetHost.java | 189 List<PendingHostUpdate> updates; in startListening() local 191 updates = sService.startListening( in startListening() 198 int N = updates.size(); in startListening() 200 PendingHostUpdate update = updates.get(i); in startListening()
|
/frameworks/base/docs/html/training/swipe/ |
D | index.jd | 36 Even if your app automatically updates its content on a regular basis, you 37 can allow users to request manual updates as well. For example, a weather 39 provide a standard user experience for requesting updates, the Android
|
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
D | DiffUtil.java | 732 private static PostponedUpdate removePostponedUpdate(List<PostponedUpdate> updates, in removePostponedUpdate() argument 734 for (int i = updates.size() - 1; i >= 0; i--) { in removePostponedUpdate() 735 final PostponedUpdate update = updates.get(i); in removePostponedUpdate() 737 updates.remove(i); in removePostponedUpdate() 738 for (int j = i; j < updates.size(); j++) { in removePostponedUpdate() 740 updates.get(j).currentPos += removal ? 1 : -1; in removePostponedUpdate()
|
/frameworks/base/services/core/java/com/android/server/updates/ |
D | SmsShortCodesInstallReceiver.java | 17 package com.android.server.updates;
|
D | CarrierProvisioningUrlsInstallReceiver.java | 17 package com.android.server.updates;
|
D | CertPinInstallReceiver.java | 17 package com.android.server.updates;
|
D | IntentFirewallInstallReceiver.java | 17 package com.android.server.updates;
|
D | ApnDbInstallReceiver.java | 17 package com.android.server.updates;
|
D | TzDataInstallReceiver.java | 17 package com.android.server.updates;
|
/frameworks/base/docs/html/training/wearables/apps/ |
D | always-on.jd | 200 carefully balance display updates against the battery life. You should strongly consider only 204 updates, take into consideration that there is a trade-off between battery life and the frequency of 205 updates. To realize battery savings, updates should be no more than once every 10 seconds. In 233 <p>For apps that require more frequent updates, such as a fitness, time-keeping, and travel 238 <p>To implement an alarm that updates content more frequently in ambient mode, follow these steps: 243 <li>Set the frequency of the updates.</li> 258 <p>The alarm manager launches a pending intent that updates the screen and schedules the next alarm. 305 <h4 id="ScheduleUpdates">Update screen and schedule data updates</h4> 317 // Milliseconds between waking processor/screen for updates
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | IconCache.java | 281 List<OSUInfo> updates = new ArrayList<>(); in notifyIconReceived() local 319 updates.add(querySet.getOsuInfo()); in notifyIconReceived() 332 updates.add(querySet.getOsuInfo()); in notifyIconReceived() 342 mOSUManager.iconResults(updates); in notifyIconReceived()
|
/frameworks/base/docs/html/training/articles/ |
D | wear-location-detection.jd | 39 about where the location data originates; the system retrieves the location updates using the most 62 APIs in the Android framework. The best practice for retrieving location updates is through the 135 location updates. When the system invokes the 147 …<li>Request location updates using <a href="{@docRoot}reference/com/google/android/gms/location/Fu… 150 …<li>Remove location updates using <a href="{@docRoot}reference/com/google/android/gms/location/Fus… 156 <p>The following example shows how to retrieve and remove location updates:</p> 174 Log.d(TAG, "Successfully requested location updates"); 178 "Failed in requesting location updates, " 207 <p>Now that you have enabled location updates, the system calls the {@link android.location.Locatio…
|
/frameworks/base/docs/html/topic/performance/power/network/ |
D | action-server-traffic.jd | 20 solution to this problem is for your appp to periodically poll the server to check for updates. 52 updated on your server, the server sends a brief message to your app telling it updates are 59 eliminates unnecessary connections where polling would return no updates, and it avoids running
|