Extend forkAndSpecialize to take further input arguments.

Extend forkAndSpecialize to take two further input arguments,
a seInfo string and the niceName for the process.  These can be used
as further selectors in determining the SELinux security context for
the process.

Change-Id: If3a654070025e699b2266425f6eb8ab7e6b8c562
BT: Adding support for wrf files to BT OPP

This patch adds support for wrf files to BT OPP.
Proper mime type /application/octet-stream with extension
wrf was added to webkit framework.

Change-Id: I2cdd961a78281129b96fba51d5df37c534c5c893
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
Avoid a wavy result for InterruptReadable/WritableChannel test

Currently Thread#interrupt() API cannot interrupt (just close fd)
even if a thread is blocking in I/O operation for an InterruptibleChannel.
In other words, if a thread is blocked by read()/write() operation,
then the Thread#interrupt() from another thread will close fd,
but it cannot interrupt the blocking operation of Channel.
In this test case, if the calling sequence is interrupt() -->read()/
write() (actually it occurs on many dual core ICS devices),
then the test passes. Because the fd has already been closed.
However, if the order of the calling sequence would change to
read()/write() --> interrupt(), the test fails (i.e, I/O operation
will not return). It occurs on a device which has a  single core
processor. Indeed, if I change the test case by adding sleep()
before interrupt() then it fails on Galaxy Nexus.

The blocking call stack is below;
at libcore.io.Posix.readBytes(Native Method) <-- BLOCKED!
at libcore.io.Posix.read(Posix.java:113)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:144)
at java.nio.FileChannelImpl.readImpl(FileChannelImpl.java:294)
at java.nio.FileChannelImpl.read(FileChannelImpl.java:278)
at java.nio.PipeImpl$PipeSourceChannel.read(PipeImpl.java:89)
at libcore.java.io.InterruptedStreamTest.
        testInterruptReadableChannel(InterruptedStreamTest.java:133)
...

So the test should be wait before interrupting the current thread
in order to avoid a wavy result for these test cases.
They will pass after the interruption of blocked operation
in Channel is implemented correctly.

And also I correct a wrong method call from
testInterruptWritableSocketChannel().

Change-Id: Iaae3128d264070e818dc82d831ea8048bb43ad4a
Merge "BT: Adding support for wrf files to BT OPP"
Merge "Avoid a wavy result for InterruptReadable/WritableChannel test"
am a42068e9: Merge "BT: Adding support for wrf files to BT OPP"

* commit 'a42068e945d5c4de5926710d87feaf95969a2001':
  BT: Adding support for wrf files to BT OPP
am 1f6685a5: Merge "Avoid a wavy result for InterruptReadable/WritableChannel test"

* commit '1f6685a54ab419fe56ed75825942ac27cd6c5614':
  Avoid a wavy result for InterruptReadable/WritableChannel test
am 0253fff2: am a42068e9: Merge "BT: Adding support for wrf files to BT OPP"

* commit '0253fff2a77a0db11a1ddd879e222b36aca8a368':
  BT: Adding support for wrf files to BT OPP
am a36f03eb: am 1f6685a5: Merge "Avoid a wavy result for InterruptReadable/WritableChannel test"

* commit 'a36f03eb342871647c23c9cf748e96ff69f39c2f':
  Avoid a wavy result for InterruptReadable/WritableChannel test
am 0afb10f6: Avoid session reuse to fix test_SSL_do_handshake_clientCertificateRequested_throws_after_renegotiate for OpenSSL 1.0.1

* commit '0afb10f667ef9c19aa2ea4797af6ba0bc328f148':
  Avoid session reuse to fix test_SSL_do_handshake_clientCertificateRequested_throws_after_renegotiate for OpenSSL 1.0.1
am 88f3ec9e: NativeCrypto should honor timeout less than one second

* commit '88f3ec9ebfd60998eb321f8c182009dace9bf983':
  NativeCrypto should honor timeout less than one second
[MIPS] Add MIPS Architecture support

Change-Id: Idce58bad54a3f25dbe984c580cb6a48cc906ba76
Signed-off-by: Chris Dearman <chris@mips.com>
Merge "[MIPS] Add MIPS Architecture support"
am 31e127f9: Merge "[MIPS] Add MIPS Architecture support"

* commit '31e127f978e383d54d6864c06c1e16523d675b17':
  [MIPS] Add MIPS Architecture support
am 47d9600b: am 31e127f9: Merge "[MIPS] Add MIPS Architecture support"

* commit '47d9600b5c908b171811ca2893cdef3261589def':
  [MIPS] Add MIPS Architecture support
4.6: Disable unused-but-set-variable warning build

Author: Pavel Chupin <pavel.v.chupin@intel.com>
Reviewed-by: Lu, Hongjiu <hongjiu.lu@intel.com>
Reviewed-by: Beare, Bruce J <bruce.j.beare@intel.com>
Merge "4.6: Disable unused-but-set-variable warning build"
am e17581ec: Merge "4.6: Disable unused-but-set-variable warning build"

* commit 'e17581ecefc56881509b891fe52b790f42ffe0ff':
  4.6: Disable unused-but-set-variable warning build
Ignore from AOSP - not necessary in JellyBean

Change-Id: I07a75ae0c0433012f34578671cc01859c6f80636
am 7cd6760f: Make libjavacore independent of libnativehelper for the PDK.

* commit '7cd6760f7045d771faae8080a8c6150bf678f679':
  Make libjavacore independent of libnativehelper for the PDK.