Merge "Docs: Performance section" into nyc-dev

This commit is contained in:
Joe Fernandez
2016-07-01 21:37:29 +00:00
committed by Android (Google) Code Review
13 changed files with 2453 additions and 7 deletions

View File

@@ -799,10 +799,24 @@ redirects:
to: http://android-developers.blogspot.com/2016/03/first-preview-of-android-n-developer.html
- from: /reference/org/apache/http/...
to: /about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client
- from: /shareables/...
to: https://commondatastorage.googleapis.com/androiddevelopers/shareables/...
- from: /downloads/...
to: https://commondatastorage.googleapis.com/androiddevelopers/...
- from: /shareables/
to: https://commondatastorage.googleapis.com/androiddevelopers/shareables/
- from: /downloads/
to: https://commondatastorage.googleapis.com/androiddevelopers/
- from: /training/performance/battery/network/action-any-traffic.html
to: /topic/performance/power/network/action-any-traffic.html
- from: /training/performance/battery/network/action-app-traffic.html
to: /topic/performance/power/network/action-app-traffic.html
- from: /training/performance/battery/network/action-server-traffic.html
to: /topic/performance/power/network/action-server-traffic.html
- from: /training/performance/battery/network/action-user-traffic.html
to: /topic/performance/power/network/action-user-traffic.html
- from: /training/performance/battery/network/analyze-data.html
to: /topic/performance/power/network/analyze-data.html
- from: /training/performance/battery/network/gather-data.html
to: /topic/performance/power/network/gather-data.html
- from: /training/performance/battery/network/index.html
to: /topic/performance/power/network/index.html
# Redirects for the new [dac]/topic/libraries/ area
@@ -1176,4 +1190,4 @@ redirects:
- from: /r/studio-ui/experimental-to-stable-gradle.html
to: http://tools.android.com/tech-docs/new-build-system/gradle-experimental/experimental-to-stable-gradle
- from: /r/studio-ui/sdk-manager.html
to: https://developer.android.com/studio/intro/update.html#sdk-manager
to: https://developer.android.com/studio/intro/update.html#sdk-manager

View File

@@ -3613,6 +3613,59 @@ METADATA['en'].extras = METADATA['en'].extras.concat([
"lang":"en",
"type":"Video"
},
{
"title":"Android Performance Testing Codelab",
"titleFriendly":"",
"summary":"This codelab shows how to create a stable and reusable testing harness to run performance tests on a very simple existing app.",
"url":"https://codelabs.developers.google.com/codelabs/android-perf-testing/index.html",
"group":"",
"keywords": ["testing"],
"tags": [
],
"image":"images/testing/testing-icon.png",
"type":"google"
},
{
"title":"Introduction to Doze",
"category":"android developers",
"summary":"A new way for the device to preserve battery by entering into an idle state.",
"url":"https://www.youtube.com/watch?v=N72ksDKrX6c",
"group":"",
"keywords": ["android, performance","battery"],
"tags": ["video, performance"],
"image":"https://i1.ytimg.com/vi/N72ksDKrX6c/maxresdefault.jpg",
"lang":"en",
"type":"develop"
},
{
"title":"Performance Profiling Tools",
"category":"training",
"summary":"Take a look under the hood to identify performance bottlenecks.",
"url":"https://developer.android.com/tools/performance/index.html",
"group":"",
"keywords": ["android, performance","profiling"],
"tags": ["android, performance"],
"image":"/assets/images/resource-card-default-android.jpg",
"lang":"en",
"type":"develop"
},
{
"title":"Managing Your App's Memory",
"category":"training",
"summary":"Learn how you can proactively reduce memory usage while developing for Android.",
"url":"https://developer.android.com/training/articles/memory.html",
"group":"",
"keywords": ["android, performance","profiling"],
"tags": ["android, performance"],
"image":"/assets/images/resource-card-default-android.jpg",
"lang":"en",
"type":"develop"
},
{
"url":"https://www.youtube.com/watch?v=QDM52bblwlg",
"image": "images/distribute/hero-family-discovery.jpg",
@@ -5379,12 +5432,26 @@ METADATA['en'].collections = {
"preview/support.html"
]
},
"preview/landing/videos/first": {
"title": "",
"resources": [
"https://www.youtube.com/watch?v=CsulIu3UaUM"
]
},
"develop/performance/landing": {
"title": "",
"resources": [
"https://android-developers.blogspot.com/2010/07/multithreading-for-performance.html",
"https://www.udacity.com/course/ud825",
"https://www.youtube.com/watch?v=N72ksDKrX6c",
"https://developer.android.com/tools/performance/index.html",
"https://codelabs.developers.google.com/codelabs/android-perf-testing/index.html",
"https://developer.android.com/training/articles/memory.html",
]
},
"preview/landing/more": {
"title": "",
"resources": [

View File

@@ -0,0 +1,35 @@
toc:
- title: Optimizing Power Consumption
path: /topic/performance/power/index.html
section:
- title: Reducing Network Battery Drain
path: /topic/performance/power/network/index.html
path_attributes:
- name: description
value: Access the network while going easy on battery life.
section:
- title: Collecting Network Traffic Data
path: /topic/performance/power/network/gather-data.html
- title: Analyzing Network Traffic Data
path: /topic/performance/power/network/analyze-data.html
- title: Optimizing User-Initiated Network Use
path: /topic/performance/power/network/action-user-traffic.html
- title: Optimizing Server-Initiated Network Use
path: /topic/performance/power/network/action-server-traffic.html
- title: Optimizing General Network Use
path: /topic/performance/power/network/action-any-traffic.html
- title: Implementing Doze
path: /monitoring-device-state/doze-standby.html
path_attributes:
- name: description
value: Help ensure the device isn't depleting the battery when not in use.
- title: Launch-Time Performance
path: /topic/performance/launch-time.html
- title: Better Performance through Threading
path: /topic/performance/threads.html
- title: Optimizing View Hierarchies
path: /topic/performance/optimizing-view-hierarchies.html
- title: Intelligent Job-Scheduling
path: /topic/performance/scheduling.html
- title: Reducing APK Size
path: /topic/performance/apk/reduce-apk-size.html

View File

@@ -0,0 +1,39 @@
page.title=Performance
page.article=true
page.metaDescription=Android Performance does nice things. Details to come.
meta.tags="performance"
page.tags="performance"
@jd:body
<iframe width="448" height="252" src="//www.youtube.com/embed/qk5F6Bxqhr4?utm_source=dac&utm_medium=video&utm_content=andfuntrain&utm_campaign=udacint?rel=0&hd=1" frameborder="0" allowfullscreen style="float: right; margin: 0 0 20px 20px;"></iframe>
<p>Implementing a cool idea is a great start toward an app that delights users,
but it's just the beginning. The next step is maximizing your app's performance.
For example, users want apps that:</p>
<ul>
<li>Use power sparingly.</li>
<li>Start up quickly.</li>
<li>Respond quickly to user interaction.</li>
</ul>
<p>This section provides you with the know-how you need in order to make
your apps not only cool, but also performant. Read on to discover how to
develop apps that are power-thrifty, responsive, efficient, and well-behaved.</p>
<section class="dac-section dac-small" id="latest-games"><div class="wrap">
<h2 class="norule" style="margin:0 0">More resources</h2>
<div class="resource-widget resource-flow-layout col-16"
data-query="collection:develop/performance/landing"
data-sortOrder="random"
data-cardSizes="6x6"
data-maxResults="24"
data-items-per-page="24"
data-initial-results="6"></div>
</div>
</section>

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,9 @@ page.metaDescription=Starting point for building apps for Auto, with guidelines,
@jd:body
<iframe width="448" height="252" src="//www.youtube.com/embed/ctiaVxgclsg?autohide=1&amp;showinfo=0" frameborder="0" allowfullscreen="" style="float: right; margin: 0 0 20px 20px;"></iframe>
<iframe width="338" height="169" src="//www.youtube.com/embed/LfVBFFoy9Y0?utm_source=dac&utm_medium=video&utm_content=andfuntrain&utm_campaign=udacint?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe>
<p><a href="https://www.udacity.com/course/ud853" class="button"
style="width:100%">Start the video course</a>
<p>
The Android platform enables you to extend your app to work with in-vehicle console systems
@@ -27,7 +29,7 @@ page.metaDescription=Starting point for building apps for Auto, with guidelines,
For more information, follow the links below to learn how to extend your Android app to support
use in vehicles.
</p>
<h2 id="overview">Get Started</h2>
<p>