191 Commits

Author SHA1 Message Date
Andreas Huber
bfea1e1396 resolved conflicts for merge of f585be7f to eclair-mr2 2009-10-16 15:32:50 -07:00
Andreas Huber
11ebbfd903 A few more testcases for the vendor to reproduce issues with their decoder. Not part of the shipping image. 2009-10-16 15:05:45 -07:00
Andreas Huber
784202ea11 Reimplement the OMX backend for stagefright.
Besides a major cleanup and refactoring, OMX is now a singleton living in the media server, it listens for death notifications of node observers/clients that allocated OMX nodes and performs/attempts cleanup.

Changed APIs to conform to the rest of the system.
2009-10-16 11:22:43 -07:00
Andreas Huber
cfd55579c2 OMXCodec now notifies the reader of changes in the output format by returning a special result/error code. 2009-10-13 09:46:46 -07:00
Andreas Huber
fa8de75250 Change to a int64_t usecs representation for timestamps and duration throughout stagefright. 2009-10-12 16:00:07 -07:00
Dianne Hackborn
b80b8d5637 Fix issue #2175693: Add vmallocinfo to dumpstate
Change-Id: I88c6e2679919e56f581fcf79dbe683393dd8ce27
2009-10-08 16:33:30 -07:00
San Mehat
b7c34cecd1 dumpstate: 'RAMCONSOLE' -> 'LAST KMSG'
Signed-off-by: San Mehat <san@google.com>
2009-10-08 07:48:21 -07:00
Mike Lockwood
bb6fa17558 dumpstate: Emit a logcat message at beginning and end of execution.
Since the logcat is not printed until later in the output, this will
make it easier to determine at what point the user pressed the key sequence
to initiate the bugreport, which can be helpful when debugging timing dependent problems.

b/2164183

Change-Id: I5b650a6163c383183ff28e344dac36fab11a2c7b
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-05 23:26:34 -04:00
Dianne Hackborn
68d881cf2d Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast
Tell the broadcast receiver whether it is getting an initial sticky value,
so it will be quiet about attempts to do ordered broadcast stuff.

Note that the original bug being reported was not actually a crash, just
an error log.  So all we are doing here is making the log quieter.

Change-Id: Iaf1b718d82093ec1197142410a64feff47eb3859
2009-10-05 15:52:32 -07:00
Mike Lockwood
2ecf3f5e00 dumpstate: Add backlight information to bugreport output.
To help diagnose bugs b/2164183 and b/2164647

Change-Id: Ie80c3b205c231c485d8a24e68b0a9c5e025da479
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-04 17:21:05 -04:00
San Mehat
af6863447c dumpstate: Display mtime instead of ctime
Signed-off-by: San Mehat <san@google.com>
2009-10-02 13:15:53 -07:00
Mathias Agopian
a8826d6709 improve boot animation a bit 2009-10-01 03:14:30 -07:00
Dianne Hackborn
039c68e756 The touch screen is probably a feature.
Also extend the feature APIs a bit.

Change-Id: I99e932d7f4e61edb0e20f75c55e9831e4b59a14d
2009-09-26 16:39:23 -07:00
Xavier Ducrohet
23b4faf694 Use reflection to figure out a readable string from install error code.
Instead of a switch that needs to be maintained, the code now
look for public static final int fields in PackageManager
whose names start with INSTALL_FAILED or INSTALL_PARSE_FAILED.

If their int value match the error code, the name of the field
is used as a human readable error string.

Change-Id: If58ddc4d9ccc40a9a8aaec9de4cc7e4931db0292
2009-09-25 11:57:44 -07:00
Chia-chi Yeh
b5597801ad keystore: remove old implementation and test.
The new tests will be implemented in java.
2009-09-24 13:35:26 +08:00
Mathias Agopian
8434c53693 the boot animation is back! it broke in a recent check-in 2009-09-23 18:52:49 -07:00
Mathias Agopian
b4d5a72691 fix simulator build 2009-09-23 17:05:19 -07:00
Mathias Agopian
bc7261130a fix [2132563] stuck in boot animation (framebuffer_device_open: Failed to create flip chain) 2009-09-23 15:49:32 -07:00
Chia-chi Yeh
1f6802295e keystore: rename scan() to saw(). 2009-09-22 02:57:52 +08:00
Chia-chi Yeh
0af607264e keystore: exclude builds for simulator. 2009-09-22 00:43:13 +08:00
Chia-chi Yeh
626c46b016 keystore: enable delete(), scan(), exist() when keystore is locked.
Also check end-of-file explicitly.
2009-09-21 11:36:33 +08:00
Chia-chi Yeh
c4b144533a keystore: switch to multi-user version. 2009-09-18 17:23:53 +08:00
Chia-chi Yeh
adbc99be6d keystore: add multi-user support.
Change-Id: I60268261110934a1d60efa341ff530f94415724f
2009-09-18 11:49:55 +08:00
Android (Google) Code Review
3065a3cad0 Merge change 25528 into eclair
* changes:
  Another stagefright test-case and ignore end-of-stream notifications while we're flushing.
2009-09-17 14:46:45 -04:00
Andreas Huber
1a77b68e90 Another stagefright test-case and ignore end-of-stream notifications while we're flushing. 2009-09-17 11:16:52 -07:00
Hung-ying Tyan
5b680802b6 Fix a minor bug in is_alnum_string()...
and remove some verbose logging
2009-09-17 12:17:29 +08:00
Andreas Huber
9f9afef3d5 Added an API IOMX::createRendererFromJavaSurface.
This api allows to instantiate a renderer by specifying the hosting java Surface object. This hides the implementation details of (java-)Surface, (native-)Surface and friends.
2009-09-15 12:49:11 -07:00
Android (Google) Code Review
3ccfaaa70f Merge change 24673 into eclair
* changes:
  Add tests and misc fixes on keystore.
2009-09-13 23:44:52 -04:00
Android (Google) Code Review
66c2a97670 Merge change 24762 into eclair
* changes:
  dumpstate: Switch back to running as non-root
2009-09-11 17:45:10 -04:00
Mike Lockwood
5a131e52cc dumpstate: Switch back to running as non-root
Now that we have straightened out the permissions on /data/dontpanic,
root is no longer necessary.

Change-Id: Ic895d712c2e929e4935707da321e1a2b015285c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-11 17:12:27 -04:00
Andreas Huber
2aa39c4507 Only build the "full" stagefright (including MediaExtractors and MediaPlayer) if BUILD_WITH_FULL_STAGEFRIGHT define is set (to true). 2009-09-11 09:54:52 -07:00
Andreas Huber
6026a51424 Move JPEGSource.{cpp,h} into libstagefright. 2009-09-11 07:49:50 -07:00
Hung-ying Tyan
a7df557aa2 Add tests and misc fixes on keystore.
* Refactor netkeystore.c to make client and server code testable.
* Add a client test for setting new passwd and changing passwd.
* Exclude "." and ".." from reset_keystore().
* Change ServerCommand.executeCommand() to accept variable length of
  arguments and add convert() to marshalling the args to bytes.
* Keystore.java is revised accordingly.
2009-09-11 19:30:13 +08:00
Andreas Huber
e6c409632f Media MIME types now have corresponding constants in MediaDefs.h, new codec enumeration API. 2009-09-10 14:43:36 -07:00
Android (Google) Code Review
4e60d7e60b Merge change 24179 into eclair
* changes:
  Support encoding amr-wb content in stagefright.
2009-09-09 13:55:48 -04:00
Chung-yih Wang
801b73f661 Replace the delimiter whitespace with '\0'.
+ Use '\0' as the delimiter.
+ Allow whitespace character for keystore password.

In previous implementation, we use space as the delimiter. That
will stop user from using passphrase with whitespace character.
2009-09-09 15:00:43 +08:00
Andreas Huber
ee606e66b0 Support encoding amr-wb content in stagefright. 2009-09-08 12:55:50 -07:00
San Mehat
a4eb91da03 dumpstate: Add the ctime (time the file was harvested out of /proc) to dump.
Signed-off-by: San Mehat <san@google.com>
2009-09-05 15:20:20 -07:00
Andreas Huber
54ee7849ab Add another testcase for moto to reproduce bug #2099685 to the stagefright commandline app. 2009-09-03 16:09:33 -07:00
Android (Google) Code Review
e131b7466c Merge change 23861 into eclair
* changes:
  Replace the bugreport symlink with a tool that starts the new dumpstate service.
2009-09-03 14:18:51 -07:00
Mike Lockwood
308f31d8e2 Replace the bugreport symlink with a tool that starts the new dumpstate service.
Change-Id: I57acae2344a264751f38b910e1e2bc750a1f1d24
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-03 16:12:09 -04:00
Android (Google) Code Review
f619028470 Merge change 23715 into eclair
* changes:
  Setting the component role appears to be mandatory now for all mime types.
2009-09-03 09:40:17 -07:00
Android (Google) Code Review
8e65337d06 Merge change 23714 into eclair
* changes:
  Some work to make audio encoding work.
2009-09-03 09:40:08 -07:00
Mike Lockwood
8d5337301b dumpstate: Add option to output to socket, disable code that switched to nonroot
This will be used to allow running dumpstate as root from the init process
to enable gathering debugging information that requires root to access.

Change-Id: I5bb7e83071fad2b377e549058f318a5118194061
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-02 20:31:33 -04:00
Andreas Huber
4c48342572 Setting the component role appears to be mandatory now for all mime types.
Also using CODEC_LOGV instead of vanilla LOGV to include the component name the message related to.
2009-09-02 16:05:36 -07:00
Andreas Huber
da050cf206 Some work to make audio encoding work. 2009-09-02 14:01:43 -07:00
San Mehat
30b9f57c8b dumpstate: Add support for apanic crash data
Signed-off-by: San Mehat <san@google.com>
2009-09-01 14:41:13 -07:00
Xavier Ducrohet
f03fb486ac Add error output to pm for FAILED_MISSING_FEATURE
Change-Id: Ib9955b69b69db7d442402ab33e148cb40dec3d40
2009-08-31 16:42:12 -07:00
Andreas Huber
e915a8591c More assert => CHECK 2009-08-28 13:32:48 -07:00
Andreas Huber
a84b0e0c59 Fixing the build. 2009-08-28 08:40:00 -07:00