summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* Call register_localized_collators() with the current locale.Daisuke Miyakawa2010-05-051-3/+4
| | | | | | | | | | Make JNI function for setLocale() call register_localized_collators() with the current locale, not previous one, every time it is possible. This is a partial cherry-pick of b945639d0c3fa1850c07a2b80f476c8d242a8bde BUG: 2514026 Change-Id: I584f1f68814dc084e699714e9d14a034123b49da
* Everytime Bluetooth was turned off two file descriptors were not closedJohannes Carlsson2010-03-161-5/+12
| | | | | | Using close instead of shutdown on the file descriptors and only clear the file descriptor that was closed. If both file descriptors are cleared the thread will not be able to close it.
* am a66baccc: Merge "Do not merge" into eclairMike Reed2010-01-201-1/+41
|\ | | | | | | | | | | | | Merge commit 'a66baccc8fa9f6fa5f1630845e3c6370cb3418eb' into eclair-plus-aosp * commit 'a66baccc8fa9f6fa5f1630845e3c6370cb3418eb': Do not merge
| * Do not mergeMike Reed2010-01-201-1/+41
| | | | | | | | port stretchy from master
* | am 9f954cf2: Merge "Do not merge" into eclairMike Reed2010-01-201-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '9f954cf27e9e2bb94c836b1686c0e07500234b27' into eclair-plus-aosp * commit '9f954cf27e9e2bb94c836b1686c0e07500234b27': Do not merge
| * Do not mergeMike Reed2010-01-191-1/+1
| | | | | | | | | | | | roll 1-line fix from master here. Fixes crasher when apps use custom fonts fixes http://code.google.com/p/android/issues/detail?id=6030
* | am c93c70c4: Merge "framework: storage: Ensure that filesystems are ↵San Mehat2010-01-121-1/+1
|\ \ | |/ | | | | | | | | | | | | | | unmounted before shutdown/reboot" into eclair Merge commit 'c93c70c4b849d31ff1b5e5cf2fb9462fd60e5da0' into eclair-plus-aosp * commit 'c93c70c4b849d31ff1b5e5cf2fb9462fd60e5da0': framework: storage: Ensure that filesystems are unmounted before shutdown/reboot
| * framework: storage: Ensure that filesystems are unmounted before shutdown/rebootSan Mehat2010-01-121-1/+1
| | | | | | | | Signed-off-by: San Mehat <san@google.com>
* | merge from open-source masterJean-Baptiste Queru2009-12-211-12/+34
|\ \ | |/ |/|
| * Time.parse3339 range checking and proper 'sec-frac' skipKenny Root2009-11-161-12/+34
| | | | | | | | | | | | | | | | | | | | | | The parse3339 JNI code doesn't properly do bounds checking on the input String. These changes do some bounds checking to prevent a buffer underflow condition. parse3339 should allow the fractional seconds to be optional and an arbitrary length as specified in RFC 3339. This will scan through arbitrary precision until it finds the timezone indicators. Change-Id: Ie9d01d0b24163d893c58c747d37873c83b74e6c7
| * eclair snapshotJean-Baptiste Queru2009-11-1354-3253/+3788
| |
| * donut snapshotJean-Baptiste Queru2009-08-313-5/+42
| |
| * donut snapshotJean-Baptiste Queru2009-07-317-57/+118
| |
| * donut snapshotJean-Baptiste Queru2009-07-2910-61/+91
| |
| * donut snapshotJean-Baptiste Queru2009-07-2129-468/+1501
| |
| * donut snapshotJean-Baptiste Queru2009-05-2023-312/+9852
| |
| * AI 143740: Don't clear supported profiles in settings app if getRemoteClass ↵Nick Pelly2009-03-311-5/+5
| | | | | | | | | | | | | | | | | | returns error. Also clean up the error codes returned by the framework, so that the settings app can properly detect an error. BUG=1748881 Automated import of CL 143740
| * Automated import from //branches/cupcake/...@142873,142873Mathias Agopian2009-03-251-3/+3
| |
| * Automated import from //branches/cupcake/...@142481,142481Jack Palevich2009-03-241-112/+193
| |
| * Automated import from //branches/cupcake/...@142370,142370Jean-Michel Trivi2009-03-241-0/+1
| |
| * Automated import from //branches/cupcake/...@141857,141857Jack Palevich2009-03-241-0/+43
| |
| * auto import from //branches/cupcake_rel/...@141571The Android Open Source Project2009-03-191-2/+1
| |
* | Fix issue 2304669: VoiceIME: starting and canceling voice IME yields ↵Eric Laurent2009-12-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | persistent "error 8" state on future attempts and breaks voice search. Fixed AudioFlinger::openInput() broken in change ddb78e7753be03937ad57ce7c3c842c52bdad65e so that an invalid IO handle (0) is returned in case of failure. Applied the same correction to openOutput(). Modified RecordThread start procedure so that a failure occuring during the first read from audio input stream is detected and causes the record start to fail. Modified RecordThread stop procedure to make sure that audio input stream fd is closed before we exit the stop function. Fixed AudioRecord JAVA and JNI implementation to take status of native AudioRecord::start() into account and not change mRecordingState to RECORDSTATE_RECORDING if start fails.
* | Don't accidentally signal multiple exceptions in setThreadPriority()Christopher Tate2009-12-041-0/+1
| | | | | | | | | | | | | | | | | | | | After signalling an exception due to set_sched_policy() failing (probably because the thread in question had exited before this function was called), we proceeded to call setpriority() anyway, and raised *another* exception when it also failed. We don't do this any more; we just bail after signalling the first exception. Change-Id: I397b6a93c73d3f0870176e26759f2bec33e56205
* | base: process: Abort setting the process group if one of the threads fails ↵San Mehat2009-12-031-0/+1
| | | | | | | | | | | | to switch Signed-off-by: San Mehat <san@google.com>
* | Merge change Ia3acc2ee into eclairAndroid (Google) Code Review2009-11-221-0/+0
|\ \ | | | | | | | | | | | | * changes: Fix pairings lost on reboot.
| * | Fix pairings lost on reboot.Jaikumar Ganesh2009-11-201-0/+0
| | | | | | | | | | | | | | | Bug:2277376 Dr No:Eastham
* | | Debugging for issue #2228381 android.view.InflateExceptionDianne Hackborn2009-11-201-5/+22
|/ / | | | | | | | | | | | | | | | | | | Binary XML file line #37: Error inflating class <unknown> after adding a secondary account Now that I have these debug logs, I want to keep them since they will make debugging these kinds of issues a lot easier in the future. (Note in this case there was no problem in the framework.) Change-Id: If2b0bbeda4706b7c5dc1ba4a5db04b74f40e1543
* | jni: GpsLocationProvider: Check for pending callbacks before waitingJared Suttles2009-11-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a corner case where a callback may not get handled until a second callback arrives. This can happen because there is a significant section of the wait_for_event function where the mutex is not locked, and the sPendingCallbacks member could be updated. We now check to see if there is a pending callback to handle before we wait for another callback. Change-Id: I20cfae1e780944bb74133940dda032efc4c55540 Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com> Signed-off-by: Jared Suttles <jared.suttles@motorola.com> Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Fix issue 2203561: Sholes: audio playing out of earpiece.Eric Laurent2009-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | Create a new IAudioTrack interface to AudioFlinger when start() fails due to a broken pipe error. Do the same if start fails due to the same error after time out in obtainBuffer(). Do not indicate that the AudioTrack is started to AudioPolicyManager if IAudioTrack start fails. This avoids that an AudioTrack keeps a dead IAudioTrack after a media server crash. Same modifications for AudioRecord. Add a flag to ToneGenerator indicating that the callback thread can call Java. Without it, when the media server crashes and restarts, the AudioSystem error callback will crash in JNI if the IAudiotrack is created from AudioTrack callback thread.
* | Merge change Iae849da2 into eclairAndroid (Google) Code Review2009-10-301-0/+21
|\ \ | | | | | | | | | | | | * changes: add table maskfilter
| * | add table maskfilterMike Reed2009-10-301-0/+21
| | | | | | | | | | | | | | | | | | hidden for now, since it need only be seen by Launcher2 http://b/issue?id=2210685
* | | process: Disable debuggingSan Mehat2009-10-291-1/+1
|/ / | | | | | | Signed-off-by: San Mehat <san@google.com>
* | Merge change Ia5109a87 into eclairAndroid (Google) Code Review2009-10-291-0/+22
|\ \ | | | | | | | | | | | | * changes: process: Add debug code to log process group transitions
| * | process: Add debug code to log process group transitionsSan Mehat2009-10-291-0/+22
| | | | | | | | | | | | Signed-off-by: San Mehat <san@google.com>
* | | Avoid trying to throw multiple exceptions at once.Jack Palevich2009-10-281-4/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The typical usage pattern for the get_char helper function is: bool thrown = false; n = get_char(env, s, 0, 1000, &thrown); n += get_char(env, s, 1, 100, &thrown); n += get_char(env, s, 2, 10, &thrown); n += get_char(env, s, 3, 1, &thrown); if (thrown) return false; As you can see, get_char is called multiple times before the thrown flag is checked. If the input text contains multiple incorrect characters, then we have to guard against throwing the same exception multiple times. (Because doing so will cause the Dalvik runtime to abort.) The fix is simple: modify get_char to check if an exception has already been thrown before throwing a new exception.
* | Merge change If3c30fc9 into eclairAndroid (Google) Code Review2009-10-231-8/+122
|\ \ | | | | | | | | | | | | * changes: Patching in hidden API to allow app managed preview frame buffers.
| * | Patching in hidden API to allow app managed preview frame buffers.Andrew Harp2009-10-231-8/+122
| | | | | | | | | | | | Commit-Id: If3c30fc932697afa966cc97b17749e9996de92ee
* | | Add size checks for glBufferData and glBufferSubDataJack Palevich2009-10-212-0/+24
|/ / | | | | | | | | | | | | | | | | | | | | | | Without the size checks it's possible for calls to glBufferData and glBufferSubData to read off the end of the Buffer object's data, which can cause page faults. Fix end-of-line characters for the "spec" files. (That's why every line of these files is changed.) Enhance our code emitter to properly handle bounds checks for possibly-null pointers.
* | Revert "Remove STOPSHIP comment."Nick Pelly2009-10-141-1/+1
| | | | | | | | | | | | | | This reverts commit 3d0726b4d8a30e57852b70f1dcf4d8d20508cd1e Change-Id: Ie1ce5d09cc0b799ef0799f30eedc95f0ca5d3fad DrNo: jerrryw
* | Remove STOPSHIP comment.Nick Pelly2009-10-141-2/+1
| | | | | | | | | | | | | | Change-Id: I2492bffe57bded65fdbef5cf98e22cef3937e537 DrNo: eastham Bug: 2089423 Joke: Why don't anteaters get sick? Because they're full of anty-bodies!
* | Encourage developers to connect RFCOMM by UUID instead of Channel.Nick Pelly2009-10-071-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hide createRfcommSocket(int channel) Add createRfcommSocketWithServiceRecord(UUID uuid) Rename listenUsingRfcomm(String,UUID) -> listenUsingRfcommWithServiceRecord(..) Now we have a complete API for developers to make peer-peer RFCOMM connections with hard-coding the limited (30) RFCOMM channels, instead using SDP lookup of an UUID. This commit addresses two serious bugs: - Do not throw IOException on accepting an incoming RFCOMM connection with BluetoothSocket. This was a regression from commit 24bb9b8af4ff6915 - Workaround failure of bluez to update SDP cache when channel changes by trying to use the same RFCOMM channel on the server every time, instead of picking server channels randomly. This is a pretty ugly workaround, and we are still trying to fix the caching issue - but with this workaround we are at least shippable and apps will work at least until they start colliding on the 30 RFCOMM channels. DrNo: eastham Bug: 2158900 Joke: What did the digital watch say to his mom? "Look mom no hands." Change-Id: Ia4879943b83afac06b6f1a3f2391cf1628afce7d
* | add (hidden) setHasAlpha() to allow clients like the view's cache to hint ↵Mike Reed2009-10-071-0/+6
| | | | | | | | | | | | that a bitmap is opaque. Knowing that a 32bit bitmap is opaque is a performance boost for some blits.
* | Add zoom functions and sendCommand.Wu-cheng Li2009-10-061-0/+28
| | | | | | | | b2060030
* | Provide an API for apps to use a dynamic RFCOMM channel and SDP record.Nick Pelly2009-10-062-11/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hide listenUsingRfcommOn(int channel) Add listenUsingRfcomm(String name, ParcelUuid uuid) The new API automatically finds a free RFCOMM channel and registers an SDP record with the given uuid and name. The SDP record is automatically removed when the socket is closed, or if the application dies. Apps are prevented from registering SDP records with the uuid of system Bluetooth profiles, such as A2DP, HFP and OPP. Apps are prevented from removing SDP records that they did not create. This is tracked by pid. TODO: Provide an API for the connecting app to look up an SDP record. Bug: 2158900 DrNo: eastham Joke: "What did the dog say to the tree? bark." Change-Id: Ia92f51c34615a7270a403255ad2b8faa98c4a3f5
* | Fix rfcomm socket connect return code.Jaikumar Ganesh2009-10-011-2/+2
| | | | | | | | | | | | | | | | The phone would say connected even when powered off. Bug id: 2161890 DrNo: Hiroshi Change-Id: I5dbd19941a80e86c7462670fb844a29cf4eb0908
* | Try to reconnect twice when the rfcomm error code is Connection Refused.Jaikumar Ganesh2009-09-301-11/+13
| | | | | | | | | | | | | | This happens when the the remote headset is in a bad state or is not accepting connections. Try twice before giving up. Change-Id: I55e15bad6b72904b8e4ccbca89e17e9bd3ddb61e
* | Bluetooth A2DP suspend/resume functionalityZhu Lan2009-09-291-0/+34
| | | | | | | | Change-Id: I8366852fa9b6ff9dacf18db00ea1c2be0c00ff34
* | Hack to fix issue #2125365: Sports Trivia compatability with EclairDianne Hackborn2009-09-281-5/+5
| | | | | | | | | | | | | | | | | | Adds a mechanism to tell Paint the scaling factor its target canvas will have, for it to compute font metrics based on the correct font size. Only TextView uses this, but that is enough for the large majority of apps. Change-Id: I6cacaa0dd26d40ee3ad959bed0028678d6e9016e
* | Bounds check read and write path in native code.Nick Pelly2009-09-251-2/+20
| | | | | | | | | | | | Already checked in Java, but requested by security review. Change-Id: I5314dbc32546278b977236a154fba03f38610b1a