OSDN Git Service

resolve merge conflicts of 5c9e47d28b24 to oc-mr1-dev-plus-aosp
authorTobias Thierer <tobiast@google.com>
Thu, 19 Oct 2017 15:12:57 +0000 (16:12 +0100)
committerJeff Sharkey <jsharkey@google.com>
Thu, 19 Oct 2017 15:33:17 +0000 (15:33 +0000)
Test: This merge conflict was automatically resolved by meld.
      The automatic resolution of the same merge conflict by meld
      from cherrypicking this CL into internal-master has passed
      Treehugger (and was already submitted).
Exempt-From-Owner-Approval: Resolving merge conflicts with no deltas
Change-Id: I61f15aeb79c1ad26cc7c51be2af59ecb7b672a7b

1  2 
core/java/com/android/internal/os/KernelCpuSpeedReader.java
media/java/android/media/MediaPlayer.java
services/core/java/com/android/server/pm/PackageInstallerSession.java
services/core/java/com/android/server/pm/PackageManagerServiceUtils.java

@@@ -51,9 -50,9 +50,9 @@@ public class KernelCpuSpeedReader 
      public KernelCpuSpeedReader(int cpuNumber, int numSpeedSteps) {
          mProcFile = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/stats/time_in_state",
                  cpuNumber);
 -        mLastSpeedTimes = new long[numSpeedSteps];
 -        mDeltaSpeedTimes = new long[numSpeedSteps];
 +        mLastSpeedTimesMs = new long[numSpeedSteps];
 +        mDeltaSpeedTimesMs = new long[numSpeedSteps];
-         long jiffyHz = Libcore.os.sysconf(OsConstants._SC_CLK_TCK);
+         long jiffyHz = Os.sysconf(OsConstants._SC_CLK_TCK);
          mJiffyMillis = 1000/jiffyHz;
      }
  
@@@ -95,12 -78,7 +95,11 @@@ import com.android.server.pm.Installer.
  import com.android.server.pm.PackageInstallerService.PackageInstallObserverAdapter;
  
  import libcore.io.IoUtils;
- import libcore.io.Libcore;
  
 +import org.xmlpull.v1.XmlPullParser;
 +import org.xmlpull.v1.XmlPullParserException;
 +import org.xmlpull.v1.XmlSerializer;
 +
  import java.io.File;
  import java.io.FileDescriptor;
  import java.io.FileFilter;
@@@ -650,9 -513,11 +649,9 @@@ public class PackageInstallerSession ex
              if (!FileUtils.isValidExtFilename(name)) {
                  throw new IllegalArgumentException("Invalid name: " + name);
              }
 -            final File target = new File(resolveStageDir(), name);
 -
 +            final File target = new File(resolveStageDirLocked(), name);
-             final FileDescriptor targetFd = Libcore.os.open(target.getAbsolutePath(), O_RDONLY, 0);
+             final FileDescriptor targetFd = Os.open(target.getAbsolutePath(), O_RDONLY, 0);
              return new ParcelFileDescriptor(targetFd);
 -
          } catch (ErrnoException e) {
              throw e.rethrowAsIOException();
          }