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
eff708b4
Commit
eff708b4
authored
4 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add MediaCommunicationManager#getVersion()" into sc-dev
parents
08078fe9
87e73461
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
apex/media/framework/api/current.txt
+1
-0
1 addition, 0 deletions
apex/media/framework/api/current.txt
apex/media/framework/java/android/media/MediaCommunicationManager.java
+20
-2
20 additions, 2 deletions
...amework/java/android/media/MediaCommunicationManager.java
with
21 additions
and
2 deletions
apex/media/framework/api/current.txt
+
1
−
0
View file @
eff708b4
...
...
@@ -29,6 +29,7 @@ package android.media {
}
public class MediaCommunicationManager {
method @IntRange(from=1) public int getVersion();
}
public class MediaController2 implements java.lang.AutoCloseable {
...
...
This diff is collapsed.
Click to expand it.
apex/media/framework/java/android/media/MediaCommunicationManager.java
+
20
−
2
View file @
eff708b4
...
...
@@ -15,6 +15,7 @@
*/
package
android.media
;
import
android.annotation.IntRange
;
import
android.annotation.NonNull
;
import
android.annotation.SystemService
;
import
android.content.Context
;
...
...
@@ -30,6 +31,16 @@ import com.android.modules.utils.build.SdkLevel;
public
class
MediaCommunicationManager
{
private
static
final
String
TAG
=
"MediaCommunicationManager"
;
/**
* The manager version used from beginning.
*/
private
static
final
int
VERSION_1
=
1
;
/**
* Current manager version.
*/
private
static
final
int
CURRENT_VERSION
=
VERSION_1
;
private
final
Context
mContext
;
private
final
IMediaCommunicationService
mService
;
...
...
@@ -43,7 +54,14 @@ public class MediaCommunicationManager {
mContext
=
context
;
mService
=
IMediaCommunicationService
.
Stub
.
asInterface
(
MediaFrameworkInitializer
.
getMediaServiceManager
()
.
getMediaCommunicationServiceRegisterer
()
.
get
());
.
getMediaCommunicationServiceRegisterer
()
.
get
());
}
/**
* Gets the version of this {@link MediaCommunicationManager}.
*/
public
@IntRange
(
from
=
1
)
int
getVersion
()
{
return
CURRENT_VERSION
;
}
}
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