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
116c3655
Commit
116c3655
authored
3 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Adding module permission for SubscriptionManager"
parents
58340703
6a646db6
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/api/module-lib-current.txt
+5
-0
5 additions, 0 deletions
core/api/module-lib-current.txt
telephony/java/android/telephony/SubscriptionManager.java
+5
-3
5 additions, 3 deletions
telephony/java/android/telephony/SubscriptionManager.java
with
10 additions
and
3 deletions
core/api/module-lib-current.txt
+
5
−
0
View file @
116c3655
...
...
@@ -160,6 +160,11 @@ package android.telephony {
method public static int getNumSignalStrengthLevels();
}
public class SubscriptionManager {
method public void addSubscriptionInfoRecord(@NonNull String, @Nullable String, int, int);
method public void removeSubscriptionInfoRecord(@NonNull String, int);
}
public class TelephonyManager {
method @NonNull public static int[] getAllNetworkTypes();
}
...
...
This diff is collapsed.
Click to expand it.
telephony/java/android/telephony/SubscriptionManager.java
+
5
−
3
View file @
116c3655
...
...
@@ -1827,8 +1827,9 @@ public class SubscriptionManager {
* @param subscriptionType the {@link #SUBSCRIPTION_TYPE}
* @hide
*/
public
void
addSubscriptionInfoRecord
(
String
uniqueId
,
String
displayName
,
int
slotIndex
,
int
subscriptionType
)
{
@SystemApi
(
client
=
SystemApi
.
Client
.
MODULE_LIBRARIES
)
public
void
addSubscriptionInfoRecord
(
@NonNull
String
uniqueId
,
@Nullable
String
displayName
,
int
slotIndex
,
int
subscriptionType
)
{
if
(
VDBG
)
{
logd
(
"[addSubscriptionInfoRecord]+ uniqueId:"
+
uniqueId
+
", displayName:"
+
displayName
+
", slotIndex:"
+
slotIndex
...
...
@@ -1863,7 +1864,8 @@ public class SubscriptionManager {
* @param subscriptionType the {@link #SUBSCRIPTION_TYPE}
* @hide
*/
public
void
removeSubscriptionInfoRecord
(
String
uniqueId
,
int
subscriptionType
)
{
@SystemApi
(
client
=
SystemApi
.
Client
.
MODULE_LIBRARIES
)
public
void
removeSubscriptionInfoRecord
(
@NonNull
String
uniqueId
,
int
subscriptionType
)
{
if
(
VDBG
)
{
logd
(
"[removeSubscriptionInfoRecord]+ uniqueId:"
+
uniqueId
+
", subscriptionType: "
+
subscriptionType
);
...
...
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