Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
7ed8a579
Commit
7ed8a579
authored
7 years ago
by
Calin Juravle
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Also pin vdex file for camera" am:
d4ae914b
am:
a433a9d9
am:
d7a40ace
am:
d2eb85f5
Change-Id: Ia6fa6e66c9d104cc6b274f885e8d2a5ff8d0e721
parents
87b99e0e
d2eb85f5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/core/java/com/android/server/PinnerService.java
+10
-8
10 additions, 8 deletions
services/core/java/com/android/server/PinnerService.java
with
10 additions
and
8 deletions
services/core/java/com/android/server/PinnerService.java
+
10
−
8
View file @
7ed8a579
...
...
@@ -244,20 +244,22 @@ public final class PinnerService extends SystemService {
// get the path to the odex or oat file
String
baseCodePath
=
cameraInfo
.
getBaseCodePath
();
String
odex
=
null
;
String
[]
files
=
null
;
try
{
odex
=
DexFile
.
getDexFileOutputPath
(
baseCodePath
,
arch
);
files
=
DexFile
.
getDexFileOutputPath
s
(
baseCodePath
,
arch
);
}
catch
(
IOException
ioe
)
{}
if
(
odex
==
null
)
{
if
(
files
==
null
)
{
return
true
;
}
//not pinning the oat/odex is not a fatal error
pf
=
pinFile
(
odex
,
0
,
0
,
MAX_CAMERA_PIN_SIZE
);
if
(
pf
!=
null
)
{
mPinnedCameraFiles
.
add
(
pf
);
if
(
DEBUG
)
{
Slog
.
i
(
TAG
,
"Pinned "
+
pf
.
mFilename
);
for
(
String
file
:
files
)
{
pf
=
pinFile
(
file
,
0
,
0
,
MAX_CAMERA_PIN_SIZE
);
if
(
pf
!=
null
)
{
mPinnedCameraFiles
.
add
(
pf
);
if
(
DEBUG
)
{
Slog
.
i
(
TAG
,
"Pinned "
+
pf
.
mFilename
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment