Commit Graph

4534 Commits

Author SHA1 Message Date
Dianne Hackborn
d21c55665c Some tweaks to the loader API demo.
Unfinished, but checkpointing.

Change-Id: Ib832a6915847302e8bbb23c6cf111c932fdacabf
2010-08-05 18:20:35 -07:00
Dianne Hackborn
46e70551eb New API demo for clipboard.
Change-Id: Ifcf52b2f7bae10e77c074868414a57c2d8f67c3c
2010-08-05 12:28:14 -07:00
Chet Haase
b9461fc8ef Add ApiDemo to show the new seeking behavior of Animator
Change-Id: I4ad4e322af9c1d8419e1d7f8bea6b20951a1dc4f
2010-08-05 11:51:13 -07:00
Oscar Montemayor
d53965f305 Attempting to add new Corp App to demo Global Proxy.
Making ApiDemos device admin able to set the Global Proxy.

Change-Id: I565ccf5d05b1c7d775aea968e99e04894c3f8b64
2010-08-04 16:02:39 -07:00
Thomas Tuttle
fa91b7edaf Merge "elftree: Recursively display ELF dependencies in a tree" 2010-08-04 15:31:58 -07:00
Adam Powell
a19298d0cf Added PopupMenu demo
Change-Id: Ib4ed4203dc78a4706963cb36e7bac7ec58a5747a
2010-08-04 11:37:05 -07:00
Andrew Stadler
45ae9c3def Cleanup fragment api demos
* Cleaned up extra whitespace & made vertical whitespace more consistent
* 100col wrap
* Remove unused imports
* Add @Override where necessary

Change-Id: I1ad404ffc4ce7fa9c4b661f7cc1783c86356316b
2010-08-03 17:39:20 -07:00
Dianne Hackborn
132ab286a1 Update preference example to show switching with fragments.
Change-Id: I2b1db31b5e1a0e83d843ad68b0a177048d2914f4
2010-08-03 17:07:45 -07:00
Scott Main
6e9821c667 change fragment stack button from "next" to "new fragment"
also move text in the dialog demo to the top to make dialogs easier to read

Change-Id: I76c44f773098e64c79465060efb4bb6edab1fa3a
2010-08-03 14:12:43 -07:00
Dianne Hackborn
721a184e0a Add new sample for multi-pane PreferenceActivity.
Also re-arrange all preference API demos to go in their own
package, since the preferfence APIs themselves are in their own package.

Change-Id: I305f77dc09748bb60d1de8a23d063db64c11bb1e
2010-08-03 10:39:14 -07:00
Thomas Tuttle
60a7ddf27e elftree: Recursively display ELF dependencies in a tree
Change-Id: Ifec17edf90796d0f810341cf62c9e5dfdee083c2
2010-08-02 16:53:33 -07:00
Dan Morrill
95a3a10dfb Staging a push for the 2.2 compatibility launch.
Includes changes to add CDD PDF and CTS ZIP to the
downloads page, and adds a blurb on the landing page in the "News" section.

Change-Id: I8fac5ceddec21df5c2d81794a3e1f7c92e89720e
2010-08-02 15:52:30 -07:00
Adam Powell
d8e26b836a List selection mode demo
Change-Id: I0a29551c8bc5fa537255d2a6307fc70bead3242d
2010-08-02 10:02:28 -07:00
Xavier Ducrohet
3cf2a3ac06 am 7d3106be: am b86b7f72: Re-organize the SDK, moving the build tools out of the platforms.
Merge commit '7d3106bebbfe76a334567c59303a75897af915b2'

* commit '7d3106bebbfe76a334567c59303a75897af915b2':
  Re-organize the SDK, moving the build tools out of the platforms.
2010-07-30 11:33:05 -07:00
Xavier Ducrohet
7d3106bebb am b86b7f72: Re-organize the SDK, moving the build tools out of the platforms.
Merge commit 'b86b7f72db1549cb526a141ca8b6158908483f1a' into gingerbread-plus-aosp

* commit 'b86b7f72db1549cb526a141ca8b6158908483f1a':
  Re-organize the SDK, moving the build tools out of the platforms.
2010-07-30 11:29:30 -07:00
David 'Digit' Turner
4d425f9b49 am d1314040: am f4790e6f: Separate platform files and samples by API level.
Merge commit 'd1314040fefdae9ebade02e2af072a3cf6e9d844'

* commit 'd1314040fefdae9ebade02e2af072a3cf6e9d844':
  Separate platform files and samples by API level.
2010-07-29 22:24:58 -07:00
David 'Digit' Turner
d1314040fe am f4790e6f: Separate platform files and samples by API level.
Merge commit 'f4790e6f9e47347996e62ecd27ff55b6499cf97a' into gingerbread-plus-aosp

* commit 'f4790e6f9e47347996e62ecd27ff55b6499cf97a':
  Separate platform files and samples by API level.
2010-07-29 18:27:20 -07:00
David 'Digit' Turner
f4790e6f9e Separate platform files and samples by API level.
Remove all duplicate platform files, i.e development/ndk/platforms/android-N now
only contains files that are introduced in API level 'N' and not found in level 'N-1'

(This makes it easier to manage independent platform release branches, and makes
 platform additions trivial to examine and maintain).

Move samples that depends on features of API level 'N' into platforms/android-N/samples

+ update tests/run-all.sh accordingly

Change-Id: I04c4c67c6c674c1714d5812d461d0524a4f4cfd9
2010-07-29 18:07:56 -07:00
Dianne Hackborn
05c2cb0748 Add sample code for PreferenceFragment.
Change-Id: I64222124daa117a2ea61dc55f2e26af78d3689c2
2010-07-28 16:07:15 -07:00
Xavier Ducrohet
b86b7f72db Re-organize the SDK, moving the build tools out of the platforms.
Change-Id: I4526310a1c882ad33084d94e118b1c74b3181a6a
2010-07-28 16:01:06 -07:00
Brett Chabot
3a5897a4fe am d53cf3ba: am 8ddb2873: Change hosttestlib to use ddm-prebuilt.
Merge commit 'd53cf3ba04f48d234200e8418876db62cb0b6b56'

* commit 'd53cf3ba04f48d234200e8418876db62cb0b6b56':
  Change hosttestlib to use ddm-prebuilt.
2010-07-28 11:46:55 -07:00
Brett Chabot
d53cf3ba04 am 8ddb2873: Change hosttestlib to use ddm-prebuilt.
Merge commit '8ddb2873df96c7181c9358f5c9286e273648bf89' into gingerbread-plus-aosp

* commit '8ddb2873df96c7181c9358f5c9286e273648bf89':
  Change hosttestlib to use ddm-prebuilt.
2010-07-28 11:37:12 -07:00
Brett Chabot
8ddb2873df Change hosttestlib to use ddm-prebuilt.
Change-Id: Ibd1c44096893bc8804a4d7644fc83d2edd443bb2
2010-07-27 17:57:38 -07:00
Bill Napier
1794ebca8f Merge "Remove the rest of the monkeyrunner files." 2010-07-27 17:30:42 -07:00
Bill Napier
f821305c75 am 255ee00e: (-s ours) am 32553f52: Remove monkeyrunner so it can move to the SDK project.
Merge commit '255ee00edcb05e4477771f5de7351ada4a2ab6ce'

* commit '255ee00edcb05e4477771f5de7351ada4a2ab6ce':
  Remove monkeyrunner so it can move to the SDK project.
2010-07-27 17:29:48 -07:00
Bill Napier
4a8359add3 Remove the rest of the monkeyrunner files.
Change-Id: I2336e5342c2dcd495ca3ecb981f2200a549097ba
2010-07-27 17:28:42 -07:00
Bill Napier
255ee00edc am 32553f52: Remove monkeyrunner so it can move to the SDK project.
Merge commit '32553f5291b1e0c5363db8bd7f280037f4f600e2' into gingerbread-plus-aosp

* commit '32553f5291b1e0c5363db8bd7f280037f4f600e2':
  Remove monkeyrunner so it can move to the SDK project.
2010-07-27 17:12:57 -07:00
Bill Napier
2e163ac649 Move MonkeyRunner from development to sdk.
Change-Id: I87ac348a48d64706aee2e66cf833944b15b70dd8
2010-07-27 17:07:58 -07:00
Eric Fischer
fa4a0311ae am b5ebc485: am cc7fc9e8: Update time zone data to the new version 2010k.
Merge commit 'b5ebc48565ceb23feba21cc12fbbb2cc34802209'

* commit 'b5ebc48565ceb23feba21cc12fbbb2cc34802209':
  Update time zone data to the new version 2010k.
2010-07-27 16:59:26 -07:00
Eric Fischer
b5ebc48565 am cc7fc9e8: Update time zone data to the new version 2010k.
Merge commit 'cc7fc9e839cee6c33d099a94c5bdb655bd83ccd9' into gingerbread-plus-aosp

* commit 'cc7fc9e839cee6c33d099a94c5bdb655bd83ccd9':
  Update time zone data to the new version 2010k.
2010-07-27 16:35:22 -07:00
Bill Napier
f00f7e42c3 Fix multi-line parsing issue from running instrumentations. This fix means that monkeyrunner can now get back the "stream" from an InstrumentationTestCase.
Change-Id: Ie93b70bd5ccd8155e76006a6b968c8ef183710d7
2010-07-27 16:10:16 -07:00
Bill Napier
32553f5291 Remove monkeyrunner so it can move to the SDK project.
Change-Id: Ibedfae41cf8a71d66f25267cd3a360de222e2644
2010-07-27 16:08:06 -07:00
Brian Muramatsu
ea1113825c Merge "Add Android CTS Download Link to 2.2_r1" 2010-07-27 14:14:37 -07:00
Eric Fischer
cc7fc9e839 Update time zone data to the new version 2010k.
Change-Id: Ifaadb0c75343bf271232dcd72f53fd34bb33aca1
2010-07-26 15:54:28 -07:00
Xavier Ducrohet
9eca9eb6ce Fix Monkeyrunner to use new ddmlib API.
Change-Id: Iaa042e53bf645ec574faabb2f8b62693836afc7a
2010-07-26 12:09:01 -07:00
Xavier Ducrohet
61eba5b68c am 0637952d: (-s ours) am 235a95ae: Update the monkeyrunner to use the new DDMlib API.
Merge commit '0637952dc18fcaae9192d0301a233b3b650bb094'

* commit '0637952dc18fcaae9192d0301a233b3b650bb094':
  Update the monkeyrunner to use the new DDMlib API.
2010-07-26 12:00:48 -07:00
Xavier Ducrohet
0637952dc1 am 235a95ae: Update the monkeyrunner to use the new DDMlib API.
Merge commit '235a95ae49e9dd40003e99c35bd79fe007347fb3' into gingerbread-plus-aosp

* commit '235a95ae49e9dd40003e99c35bd79fe007347fb3':
  Update the monkeyrunner to use the new DDMlib API.
2010-07-26 11:40:38 -07:00
Xavier Ducrohet
235a95ae49 Update the monkeyrunner to use the new DDMlib API.
Change-Id: I0c1e17b450e264ca1e7d98523bde4ddfe1d97252
2010-07-26 10:53:14 -07:00
Dianne Hackborn
22e3194cf0 Merge "Add API demo for DialogFragment." 2010-07-24 11:44:12 -07:00
Dianne Hackborn
cdb8af8170 Add API demo for DialogFragment.
Change-Id: Id02cba60d661f747c36bc113bd81a2b6fe45573a
2010-07-24 11:43:26 -07:00
Jean-Baptiste Queru
cfb814bd81 resolved conflicts for merge of 17c61aaf to master
Change-Id: I288054a9e6997ec3e8e2906058b83c7d629a239a
2010-07-23 18:51:47 -07:00
Jean-Baptiste Queru
17c61aaf46 resolved conflicts for merge of ecd4a4d0 to gingerbread-plus-aosp
Change-Id: I623544ad03ae1a750fac6b0f8a3427fc5590b5c9
2010-07-23 18:45:02 -07:00
Jean-Baptiste Queru
ecd4a4d09c Merge "Corrected Classpath" 2010-07-23 18:35:58 -07:00
Vairavan Srinivasan
5a48825cc0 am 474fe56a: am 688e62cd: Monkey: Changes to release lock before reporting ANR and meminfo
Merge commit '474fe56acccc1372d1b21a7dbf74309005d699c6'

* commit '474fe56acccc1372d1b21a7dbf74309005d699c6':
  Monkey: Changes to release lock before reporting ANR and meminfo
2010-07-22 09:32:25 -07:00
Vairavan Srinivasan
474fe56acc am 688e62cd: Monkey: Changes to release lock before reporting ANR and meminfo
Merge commit '688e62cd116d0bc17ad162915908764c67dd6045' into gingerbread-plus-aosp

* commit '688e62cd116d0bc17ad162915908764c67dd6045':
  Monkey: Changes to release lock before reporting ANR and meminfo
2010-07-22 09:30:38 -07:00
Xavier Ducrohet
bf844b1fdc am 58e763b0: am 98de4a25: Update source.properties for SDK platform component.
Merge commit '58e763b01994cae774439534d50c4f6a3f3aaa8b'

* commit '58e763b01994cae774439534d50c4f6a3f3aaa8b':
  Update source.properties for SDK platform component.
2010-07-21 18:13:57 -07:00
Xavier Ducrohet
58e763b019 am 98de4a25: Update source.properties for SDK platform component.
Merge commit '98de4a25089c9e604e45e72db5fcde67add66643' into gingerbread-plus-aosp

* commit '98de4a25089c9e604e45e72db5fcde67add66643':
  Update source.properties for SDK platform component.
2010-07-21 17:01:40 -07:00
Xavier Ducrohet
98de4a2508 Update source.properties for SDK platform component.
Change-Id: I4226a31d33fffbeb326ef2aea792a0676139fb1a
2010-07-21 16:30:05 -07:00
Andrew Stadler
fd199df40a Fix classpath:
* add launcher2's renderscript intermediates
* add media provider intermediates

Change-Id: I48ec899635c396db3dec08441aa04e4dd8552b8b
2010-07-21 15:13:36 -07:00
Vairavan Srinivasan
688e62cd11 Monkey: Changes to release lock before reporting ANR and meminfo
Report ANR, dumpsys after releasing lock on Monkey.this.
This ensures the availability of the lock to Activity controller's
appNotResponding.

Reporting dumpsys while holding the lock on this causes a cyclic
deadlock, when twoANRs are reported (one after the other).

Monkey's ActivityController is registered to ActivityManagerService
for handling ANR.The first ANR caused by either service timeout or
broadcast timeout is reported byActivityManagerService to Monkey's
ActivityController via Binder. Meanwhile, the lock on
ActivityManagerService is held by serviceTimeout or broadcastTimeout.

appNotResponding corresponding to first ANR reports procrank and
acquires a lock onMonkey.this and sets few bool variables like
mRequestAnrTraces and mRequestDumpsysMemInfoand returns the control
to ActivityManagerService's service/broadcast timeout.
VM executing monkey process switches the control to main monkey
thread and it acquires thelock on Monkey.this and proceeds to report
ANR traces.

Meanwhile, a second ANR occurs and Activity Manager Service invokes
ActivityController's appNotResponding (via binder). appNotResponding
reports the procrank and waits to acquire the lock on Monkey.this
which is being held by Monkey's main thread(busy reporting first ANR).
This results in a blocking wait for ActivityManagerService's
appNotRespondingLocked() (corresponding to second ANR).

Meanwhile, the monkey's main thread (holding lock on Monkey.this)
tries to report the meminfo for first ANR, invokes
reportDumpsysMemInfo(), which in turn causes the android runtime to
launch dumpsys process. The dumpsys process queries service manager
to get a reference to meminfo service and invoke dump() on the same.
The meminfo service is created by ActivityManagerService's
setSystemProcess(). The dump() method tries to acquire a lock on
ActivityManagerService which is held by ActivityManagerService's
service/broadcasttimeout (awaiting the response from
ActivityController for the second ANR).

This cyclic deadlock continues for a minute after which WatchDog
thread of system_server kills system_server as it hasn't got the
response from ActivityManagerService's monitor(). The monitor()
of ActivityManagerService too tries to acquire lock on this and is
invoked once in every minute.

DEADLOCK:
--------

ActivityManager --> ActivityController  --> Monkey Main  --> MemInfo
--> ActivityManager

Change-Id: I7718eff332e5551b1950ab1c45395bf1ff4b1bda
2010-07-20 16:07:25 -07:00