File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
libraries/test_session_current/src/androidTest/java/androidx/media3/session Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 33
33
import static com .google .common .truth .Truth .assertWithMessage ;
34
34
import static java .util .concurrent .TimeUnit .MILLISECONDS ;
35
35
36
+ import android .annotation .SuppressLint ;
36
37
import android .app .PendingIntent ;
37
38
import android .content .Context ;
38
39
import android .os .Bundle ;
@@ -157,6 +158,9 @@ public void builder() throws Exception {
157
158
}
158
159
}
159
160
161
+ // Ignore warning about getCreatorPackage as this is just used as a test assertion to see if the
162
+ // correct activity has been received by the controller.
163
+ @ SuppressLint ("PendingIntentCreator" )
160
164
@ Test
161
165
public void getSessionActivity () throws Exception {
162
166
RemoteMediaSession session = createRemoteMediaSession (TEST_GET_SESSION_ACTIVITY , null );
Original file line number Diff line number Diff line change 43
43
import static java .util .concurrent .TimeUnit .MILLISECONDS ;
44
44
import static java .util .concurrent .TimeUnit .SECONDS ;
45
45
46
+ import android .annotation .SuppressLint ;
46
47
import android .app .PendingIntent ;
47
48
import android .content .Context ;
48
49
import android .content .Intent ;
@@ -361,6 +362,9 @@ public void getSessionVersion() throws Exception {
361
362
assertThat (controller .getConnectedToken ().getSessionVersion ()).isLessThan (1_000_000 );
362
363
}
363
364
365
+ // Ignore warning about getCreatorPackage as this is just used as a test assertion to see if the
366
+ // correct activity has been received by the controller.
367
+ @ SuppressLint ("PendingIntentCreator" )
364
368
@ Test
365
369
public void getSessionActivity () throws Exception {
366
370
Intent sessionActivity = new Intent (context , MockActivity .class );
You can’t perform that action at this time.
0 commit comments