1. 24 Nov, 2009 1 commit
  2. 18 Nov, 2009 4 commits
  3. 17 Nov, 2009 3 commits
    • Elliott Hughes's avatar
      Fix Formatter.format's handling of Formattable. · 3cc642cb
      Elliott Hughes authored
      This doesn't make much difference to performance, but it is
      slightly faster and I think it reads better too. Proof of the
      latter is the fact that the rewritten form accidentally fixed
      bug 1767: the old code was storing up literal text until after
      handling the next format specifier, which is wrong if the
      format specifier has side effects caused by the use of
      Formattable.
      
      (I don't plan on doing any more on the performance bug for now,
      though I note that %g allocates and manipulates BigDecimal
      instances, which would be worth looking at when we get round to
      the bug that causes it to fail a harmony test.)
      
      Bug: 1476, 1767
      3cc642cb
    • Elliott Hughes's avatar
      Consistently use Formatter's cached NumberFormat. · c707cc4e
      Elliott Hughes authored
      %f is a lot more expensive than it should be because we're not using the cached
      NumberFormat (as we are for %d). Running the microbenchmark I added to the
      bug (times in ms, on a Cortex A8):
      
                                      old       new
            new Formatter %f         1732       811
            String.format %d          635       651
            String.format %f         1752       900
            reuse Formatter %f       1521       188
            Double.toString +         149       148
            Double.toString append     33        33
            StringBuilder.append      143       139
      
      Bug: 1476
      c707cc4e
    • Andy McFadden's avatar
      Reduce logging. · 2604b38d
      Andy McFadden authored
      This cuts out some unnecessarily verbose dalvikvm chatter, notably:
      
        Trying to load lib /system/lib/librs_jni.so 0x0
        Added shared lib /system/lib/librs_jni.so 0x0
      
      These messages can be useful for people trying to get their apps to
      work with the NDK, so I'm only suppressing them when the path starts
      with "/system".  The result is that you can boot the system and run all
      standard apps without seeing them, but we'll still see app-private libs
      being loaded.
      
      Also LOGI->LOGV for "Debugger thread not active, ignoring DDM send",
      which seemed to be firing on startup for APp NaMe events.  Ditto for
      "Splitting out new zygote heap", which only happens once, but doesn't
      strike me as a particularly useful thing to log.
      2604b38d
  4. 09 Nov, 2009 1 commit
  5. 07 Nov, 2009 1 commit
  6. 15 Oct, 2009 1 commit
  7. 08 Oct, 2009 4 commits
  8. 06 Oct, 2009 1 commit
  9. 01 Oct, 2009 3 commits
    • Android (Google) Code Review's avatar
      Merge change I96cd6f5b into eclair · bd2f7bbe
      Android (Google) Code Review authored
      * changes:
        Make the socket test accept ::1 as a valid result for InetAddress.getByName(null) if the system is set to prefer IPv6 addresses.
      bd2f7bbe
    • Lorenzo Colitti's avatar
      Make the socket test accept ::1 as a valid result for · a72ee9c1
      Lorenzo Colitti authored
      InetAddress.getByName(null) if the system is set to prefer IPv6 addresses.
      
      Change-Id: I96cd6f5b632994b73af13e341cf6f684f6eee4cd
      a72ee9c1
    • Lorenzo Colitti's avatar
      More multicast fixes. · beeef8ae
      Lorenzo Colitti authored
      1. Make native code properly set network interface indexes that are used for
         new-style multicast socket options.
      2. For IP_MULTICAST_IF, check that the address is IPv4, not the socket.
      3. Remove a @KnownFailure annotation for a test that now passes.
      
      This removes one test error and changes it into a more benign failure. The
      remaining test failures seem to be due to Linux bening permissive about which
      interfaces you can receive multicast traffic on, which is probably good enough
      for now.
      
      Change-Id: Id1fddee338addcfce821672b983485c7dd4983d4
      beeef8ae
  10. 30 Sep, 2009 12 commits
  11. 26 Sep, 2009 1 commit
  12. 25 Sep, 2009 2 commits
    • Jesse Wilson's avatar
      Deprecate many of the accidentally-published APIs in dalvik.system. · 04aaaf18
      Jesse Wilson authored
      See bug 2021674 for discussion. I searched Google Code Search to
      sample which of these APIs are being used. None of these APIs
      were used by applications, so I'm quite confident that removing
      them will not break applications or upset developers.
      
      These APIs were neither formerly documented, nor intended for use
      by application developers. I am deprecating them now to discourage
      their use going forward. We should remove them in a future release.
      04aaaf18
    • Jesse Wilson's avatar
      DO NOT MERGE: Cleaning up PipedInputStream · e175af7b
      Jesse Wilson authored
      e175af7b
  13. 24 Sep, 2009 1 commit
    • Andy McFadden's avatar
      Remove ((noreturn)) from dvmAbort(). · cbb67b37
      Andy McFadden authored
      Functions that could call dvmAbort() from more than one place were
      merging the calls together, which is great until you need to decode a
      native stack trace.
      
      For 2144313.
      cbb67b37
  14. 23 Sep, 2009 2 commits
    • Android (Google) Code Review's avatar
      Merge change 26285 into eclair · d8f217f6
      Android (Google) Code Review authored
      * changes:
        Use native code to convert strings to IP addresses.
      d8f217f6
    • Lorenzo Colitti's avatar
      Use native code to convert strings to IP addresses. · 7356e563
      Lorenzo Colitti authored
      1. Add an ipStringToByteArray method to the OSNetworkSystem interface and
         provide a native implementation for it.
      2. Change InetAddress to use the new method.
      3. Remove  a mid-sized chunk of Inet6Util, which is now redundant.
      4. Remove the KnownFailure annotations from the InetAddress, InetAddress and
         Inet6Address tests that expected 1.2.3, 1.3 and 3 to be valid IPv4
         addresses. These tests now pass again.
      5. Removed an unused native method.
      6. Added a comment to the top of the native socket implementation to the effect
         that the file is significantly different from harmony.
      
      Change-Id: I3665f82b00ebc089e9133cc6166dda5a99fa10e4
      7356e563
  15. 22 Sep, 2009 3 commits