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
e2ddd9d2
Commit
e2ddd9d2
authored
3 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Do not canonicalize overlay config test paths"
parents
71afce93
2c968557
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/java/android/content/pm/PackagePartitions.java
+11
-0
11 additions, 0 deletions
core/java/android/content/pm/PackagePartitions.java
core/java/com/android/internal/content/om/OverlayConfig.java
+1
-1
1 addition, 1 deletion
core/java/com/android/internal/content/om/OverlayConfig.java
with
12 additions
and
1 deletion
core/java/android/content/pm/PackagePartitions.java
+
11
−
0
View file @
e2ddd9d2
...
...
@@ -119,6 +119,9 @@ public class PackagePartitions {
@Nullable
private
final
DeferredCanonicalFile
mOverlayFolder
;
@NonNull
private
final
File
mNonConicalFolder
;
private
SystemPartition
(
@NonNull
File
folder
,
@PartitionType
int
type
,
boolean
containsPrivApp
,
boolean
containsOverlay
)
{
this
.
type
=
type
;
...
...
@@ -128,6 +131,7 @@ public class PackagePartitions {
:
null
;
this
.
mOverlayFolder
=
containsOverlay
?
new
DeferredCanonicalFile
(
folder
,
"overlay"
)
:
null
;
this
.
mNonConicalFolder
=
folder
;
}
public
SystemPartition
(
@NonNull
SystemPartition
original
)
{
...
...
@@ -136,6 +140,7 @@ public class PackagePartitions {
this
.
mAppFolder
=
original
.
mAppFolder
;
this
.
mPrivAppFolder
=
original
.
mPrivAppFolder
;
this
.
mOverlayFolder
=
original
.
mOverlayFolder
;
this
.
mNonConicalFolder
=
original
.
mNonConicalFolder
;
}
/**
...
...
@@ -153,6 +158,12 @@ public class PackagePartitions {
return
mFolder
.
getFile
();
}
/** Returns the non-canonical folder of the partition. */
@NonNull
public
File
getNonConicalFolder
()
{
return
mNonConicalFolder
;
}
/** Returns the canonical app folder of the partition. */
@Nullable
public
File
getAppFolder
()
{
...
...
This diff is collapsed.
Click to expand it.
core/java/com/android/internal/content/om/OverlayConfig.java
+
1
−
1
View file @
e2ddd9d2
...
...
@@ -111,7 +111,7 @@ public class OverlayConfig {
// Rebase the system partitions and settings file on the specified root directory.
partitions
=
new
ArrayList
<>(
PackagePartitions
.
getOrderedPartitions
(
p
->
new
OverlayPartition
(
new
File
(
rootDirectory
,
p
.
getFolder
().
getPath
()),
new
File
(
rootDirectory
,
p
.
get
NonConical
Folder
().
getPath
()),
p
)));
}
...
...
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