104713 Commits

Author SHA1 Message Date
quddusc
40765a4a53 am 2ef3952d: cherrypick from jb-mr2-docs docs: Android training for Activity testing. Change-Id: I7167732c849d5a4a36c808cc852ddfcdc8e60bd7
* commit '2ef3952d8e62b71baca176b3e17315a37facd34a':
  cherrypick from jb-mr2-docs docs: Android training for Activity testing. Change-Id: I7167732c849d5a4a36c808cc852ddfcdc8e60bd7
2013-08-29 11:12:44 -07:00
quddusc
2ef3952d8e cherrypick from jb-mr2-docs docs: Android training for Activity testing. Change-Id: I7167732c849d5a4a36c808cc852ddfcdc8e60bd7
Change-Id: Idce540108d048d76fc2c4bc37ecf2118b82588c5
2013-08-29 10:52:49 -07:00
Wink Saville
8cb2f42eea am 948282b0: Add support for handling mobile provisioning networks.
* commit '948282b0e6cf5310f09db97a4ae939db7c1cef72':
  Add support for handling mobile provisioning networks.
2013-08-29 10:22:55 -07:00
Wink Saville
948282b0e6 Add support for handling mobile provisioning networks.
When a sim is new or it has expired it needs to be provisioned
with the carrier. Basically provisioning is associating a sim with
a user account. When a sim isn't provisioned then operators will
restrict access to the network and only allow certain addresses
or services to be used.

This set of changes allows two types of provisioning networks to be
recognized. The first is a network that causes all DNS lookups to be
redirected to a different address than was intended. This is exemplified
by how T-Mobile works.

The second technique uses a special apn for provisioning. An example is
AT&T where lwaactivate is the provisioning apn and broadband is the
normal apn. We first try broadband and if we are unable to connect we
try lwaactivate. When we see the activate we identify it as special and
the ApnContext.isProvisioningApn will return true.

In the future our plan is to create a new network type that can be added
to the apn list, but for now it identified by name.

Here is a list of significant changes:

 - CaptivePortalTracker now only test WiFi networks instead of all networks
 - checkMobileProvisioning checks for provisioning networks and doesn't
   try to ping.
 - IConnectivityManager.aidl changes:
   * getProvisioningOrActiveNetworkInfo was added to and used by Manage
     mobile plan in WirelessSettings so even when there is no active
     network it will still allow provisioning. Otherwise it would report
     no internet connection.
   * setSignInErrorNotificationVisible is used by both
     CaptiviePortalTracker and checkMobileProvisioning so they use the
     same code for the notifications.
   * checkMobileProvisioning was simplified to have only a timeout as
     returning the result is now harder as we abort simultaneous call
     otherwise we'd could get into loops because we now check every time
     we connect to mobile.
 - Enhanced MDST to handle the provisioning network.
 - Added CONNECTED_TO_PROVISIONING_NETWORK to NetworkInfo to make a new
   state so we don't announce to the world we're connected.
 - TelephonyIntents.ACTION_DATA_CONNECTION_CONNECTED_TO_PROVISIONING_APN
   is sent by the low level data connection code to notify Connectivity
   Service that a provisioning apn has connected. This allows CS to
   handle the connection differently than a normal connection.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
2013-08-29 08:55:16 -07:00
Dirk Dougherty
6d3fbd0073 am 8236443b: Doc change: update spam policy image.
* commit '8236443bdac2ba7c7630ddcc4ce9a18a03fe31a1':
  Doc change: update spam policy image.
2013-08-28 11:42:05 -07:00
Dirk Dougherty
8236443bda Doc change: update spam policy image.
Change-Id: Ib19ea838f0f72725cedf2cea8aff505ccc477a45
2013-08-28 11:37:05 -07:00
Scott Main
bb6b1ff012 am d608d5e3: add jb mr2 uses-feature items to reference page and fix a couple doc bugs
* commit 'd608d5e3fa08cd9935f03144b192ea5934c715a8':
  add jb mr2 uses-feature items to reference page and fix a couple doc bugs
2013-08-26 13:09:46 -07:00
Scott Main
d608d5e3fa add jb mr2 uses-feature items to reference page and fix a couple doc bugs
Change-Id: I1b95d98b083af3dad55f19a9e68f69460d4e6e57
2013-08-26 12:49:39 -07:00
Wink Saville
33283a9726 am dce52cdb: DO NOT MERGE: MDST is not ready until connected to DcTracker.
* commit 'dce52cdbf1eab8bd979bf4676973699c39f7b32e':
  DO NOT MERGE: MDST is not ready until connected to DcTracker.
2013-08-26 11:47:20 -07:00
Wink Saville
b42beeafcf am e63411f2: In isMobileOk don\'t execute finally if mobile data is not supported.
* commit 'e63411f28b81a0c9f7fee1d0b3a0765606c9a6f2':
  In isMobileOk don't execute finally if mobile data is not supported.
2013-08-26 11:40:36 -07:00
Dirk Dougherty
be2f72a187 am 2c30fe8a: Doc change: fix typo in policy docs.
* commit '2c30fe8aedc5af2845e97b9005d6dce570f9d8eb':
  Doc change: fix typo in policy docs.
2013-08-23 15:45:53 -07:00
Dirk Dougherty
2c30fe8aed Doc change: fix typo in policy docs.
Change-Id: Ic9df2511f50d9ead2dcbf4353f387e9106ce4222
2013-08-23 11:31:29 -07:00
Dirk Dougherty
1b6d199009 am 80bd95bf: Merge "Doc change: update Google Play policies descriptions." into jb-mr2-docs
* commit '80bd95bf86e43e5bbca6a08ede708524e5024a1c':
  Doc change: update Google Play policies descriptions.
2013-08-23 10:15:42 -07:00
Dirk Dougherty
80bd95bf86 Merge "Doc change: update Google Play policies descriptions." into jb-mr2-docs 2013-08-23 17:13:05 +00:00
Dirk Dougherty
3d205ab01e Doc change: update Google Play policies descriptions.
Change-Id: I4ebc985159db5f24632bac38cff63c7b663794b8
2013-08-23 10:11:44 -07:00
Scott Main
cd4e1c463e am f151391b: fix markup errors in action bar styling, add more information about using drawables, move \'managing the activity lifecycle\' down a notch, because it\'s less interesting.
* commit 'f151391b72b5ab667ea0681de5bd2fbe0d94d8a9':
  fix markup errors in action bar styling, add more information about using drawables, move 'managing the activity lifecycle' down a notch, because it's less interesting.
2013-08-22 18:54:35 -07:00
Scott Main
f151391b72 fix markup errors in action bar styling,
add more information about using drawables,
move 'managing the activity lifecycle' down a notch, because it's less interesting.

Change-Id: I75012207bfaa499ca881ec5cc3a94e8d66addbad
2013-08-22 18:44:44 -07:00
Dirk Dougherty
de525b442f am 2a4f71df: Merge "Temporarily disable sample code html generation in docs builds." into jb-mr2-docs
* commit '2a4f71df86e42f14705df452b74358e0b7970815':
  Temporarily disable sample code html generation in docs builds.
2013-08-22 10:08:08 -07:00
Dirk Dougherty
2a4f71df86 Merge "Temporarily disable sample code html generation in docs builds." into jb-mr2-docs 2013-08-22 17:03:41 +00:00
Dirk Dougherty
a345833ace Temporarily disable sample code html generation in docs builds.
Change-Id: Ibcf0e4d5ab63968211528f528cc5bee914d7a556
2013-08-21 14:52:00 -07:00
Scott Main
1b3f1533ce am 414905b7: update samples nav for new script
* commit '414905b7044b10b7231f13584bf26e7c8c3e1e12':
  update samples nav for new script
2013-08-20 17:17:34 -07:00
Scott Main
414905b704 update samples nav for new script
Change-Id: I4b357f1edf2d8e3eb7b3810103c60d3fd470e113
2013-08-20 17:07:05 -07:00
Joe Fernandez
d1037efe7e am 9d237204: Merge "Android 4.3 Platform Google APIs r2 system image Release Notes" into jb-mr2-docs
* commit '9d237204da9b000c5debfa1f5650d13a545bb7c8':
  Android 4.3 Platform Google APIs r2 system image Release Notes
2013-08-19 16:49:44 -07:00
Joe Fernandez
9d237204da Merge "Android 4.3 Platform Google APIs r2 system image Release Notes" into jb-mr2-docs 2013-08-19 23:47:24 +00:00
Joe Fernandez
312d29ed3d Android 4.3 Platform Google APIs r2 system image Release Notes
Google APIs System image update with Google Play Services 3.2.25

Change-Id: Iac6987a9dcb55bd971da9ca57c5a5dae0c357be5
2013-08-19 16:43:57 -07:00
Dirk Dougherty
364fe3a856 am b6bc020d: doc change: Samples browsing first changes: Samples dir and file starters.
* commit 'b6bc020d728960dc876a510c9e40cc441a9a9b6b':
  doc change: Samples browsing first changes: Samples dir and file starters.
2013-08-19 12:09:45 -07:00
Dirk Dougherty
b6bc020d72 doc change: Samples browsing first changes: Samples dir and file starters.
Change-Id: I6cc8c03bf4c2bcc771d4531619db5b3acd62601f
2013-08-19 11:19:38 -07:00
Wink Saville
dce52cdbf1 DO NOT MERGE: MDST is not ready until connected to DcTracker.
When the system becomes loaded the PhoneApp can be delayed
significantly and a call to setEnableFailFastMobileData may not
occur because the channel between the MobileDataStateTracker (MDST)
and DcTracker (DCT) is not connected.

Solution: Add a isReady to MDST and isMobileDataStateTrackerReady to
ConnectivityService and call it from isMobileOk.

Bug: 10351868
Change-Id: I92f9d58121b88186b636cd71c2fd2ef9a28f7cf6
2013-08-16 17:17:28 -07:00
Scott Main
8f5a76d2bf am b4f96287: add latest Roboto fonts to DAC and update download links
* commit 'b4f96287285cd0886954d1576157b7a38995af88':
  add latest Roboto fonts to DAC and update download links
2013-08-16 10:55:07 -07:00
Scott Main
b4f9628728 add latest Roboto fonts to DAC and update download links
Change-Id: I6232cf02486d5b82d503ebe8c6035a7da2a1093d
2013-08-16 10:41:31 -07:00
Wink Saville
e63411f28b In isMobileOk don't execute finally if mobile data is not supported.
Move the early return outside the try {} finally so we don't call
setEnableFailFastMobileData(DctContants.DISABLED). Otherwise
referencing counting is wrong and an exception is thrown in DcTrackerBase.

Bug: 10304904
Change-Id: I5ba5121e473bada9f3daa8d6f3d3577cec8212fc
2013-08-15 21:14:30 -07:00
Roman Nurik
8ab80f1a02 am 1a5bb9d5: Update Typography design guide Bug: 6947941
* commit '1a5bb9d5cf13a2d2f9086926a7a020cfa08efd66':
  Update Typography design guide Bug: 6947941
2013-08-14 11:21:45 -07:00
Roman Nurik
1a5bb9d5cf Update Typography design guide
Bug: 6947941

Change-Id: I18a5c9cfd9de511c280d8aa7e410b5b9939c6774
2013-08-14 10:48:26 -07:00
Kenny Root
965eb25843 am 1c2cb653: am 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit '1c2cb6533bfebf8b930850215e24327420e34a4b':
  Use hostname verifier directly instead of instance
2013-08-13 17:57:10 -07:00
Kenny Root
1c2cb6533b am 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit '999ddae70360fc99e804d0b176af487582cd37c8':
  Use hostname verifier directly instead of instance
2013-08-13 17:54:18 -07:00
Kenny Root
999ddae703 am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit 'ae24c0d539414805a6c979f9318d0765506221ae':
  Use hostname verifier directly instead of instance
2013-08-13 17:51:15 -07:00
Kenny Root
ae24c0d539 am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit 'bf15c7cecefba8fdb3070c389a4966f11a8d8656':
  Use hostname verifier directly instead of instance
2013-08-13 17:48:20 -07:00
Kenny Root
bf15c7cece am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit 'dceda36b0052aca7a93a265ea6eb8e8fb71cd322':
  Use hostname verifier directly instead of instance
2013-08-13 17:44:27 -07:00
Kenny Root
dceda36b00 am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit '1c5e33d37dd4f8c68ccc16758e21572f193a8eb2':
  Use hostname verifier directly instead of instance
2013-08-13 17:42:45 -07:00
Kenny Root
1c5e33d37d am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit '3bc3240ffb51358fa706099cfc5e120cf0f1b60d':
  Use hostname verifier directly instead of instance
2013-08-13 17:36:42 -07:00
Kenny Root
3bc3240ffb am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
* commit 'a6226a2d202619ddb7e3e9765a3dc9f20241f853':
  Use hostname verifier directly instead of instance
2013-08-13 17:31:32 -07:00
Kenny Root
a6226a2d20 am 32c99004: Use hostname verifier directly instead of instance
* commit '32c990044f027542a034a7606cf010dca6df252f':
  Use hostname verifier directly instead of instance
2013-08-13 17:27:49 -07:00
Kenny Root
32c990044f Use hostname verifier directly instead of instance
Instead of local instance of the default HostnameVerifier, use it
directly from HttpsURLConnection. This avoids class preloading creating
an instance of it before it's necessary.

(cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c)

Bug: 9984058
Change-Id: I56565afa0394dc98054abbaef06ac9bfff009e56
2013-08-13 14:13:08 -07:00
Kenny Root
61768c97d6 am 3870c570: Use hostname verifier directly instead of instance DO NOT MERGE
* commit '3870c570bbd438cefd09a061b9481314a15dd659':
  Use hostname verifier directly instead of instance DO NOT MERGE
2013-08-13 11:41:11 -07:00
Kenny Root
3870c570bb Use hostname verifier directly instead of instance DO NOT MERGE
Instead of local instance of the default HostnameVerifier, use it
directly from HttpsURLConnection. This avoids class preloading creating
an instance of it before it's necessary.

(cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c)

Bug: 9984058
Change-Id: I79d8a934bfc390e4cd503fd592e21bc4e5446a7d
2013-08-13 11:00:10 -07:00
Scott Main
261e00cb04 am b478b10f: Revert "Doc change: collapse key fix." To resolve conflict. I\'ll fix it all later.
* commit 'b478b10f34a9fa9c6b42f54047eb9e77111a16c7':
  Revert "Doc change: collapse key fix." To resolve conflict. I'll fix it all later.
2013-08-13 10:57:31 -07:00
Katie McCormick
e50078961a am e78b4f53: Doc change: collapse key fix... clean version of kmccormick\'s change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
* commit 'e78b4f53392d25eda4a121670aca518df9615f71':
  Doc change: collapse key fix... clean version of kmccormick's change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
2013-08-12 12:18:45 -07:00
Katie McCormick
e78b4f5339 Doc change: collapse key fix... clean version of kmccormick's change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
Change-Id: I620150b14ecd59db05f40c4422f8e2d09e05ebcb
2013-08-12 12:07:26 -07:00
Scott Main
6dd38cc534 Revert "Revert "resolved conflicts for merge of 45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i'll fix it all later."
Submitted the original revert too soon.

This reverts commit ebcee19783c4fe5ba776353e95974383850a4685.

Change-Id: I7c76b9c37a8d919cdf319dae1ae8f444300ed3d4
2013-08-12 17:40:37 +00:00
Scott Main
ebcee19783 Revert "resolved conflicts for merge of 45178b13 to jb-mr2-ub-dev"
revert to fix conflicts, i'll fix it all later.

This reverts commit 385bb2eb5184686c2d953fe4757522e61acb3392.

Change-Id: Ie0a995b185c3354ff369fce87f73810c1027a0b2
2013-08-12 17:08:28 +00:00