Loading services/core/java/com/android/server/wm/ActivityStarter.java +4 −0 Original line number Diff line number Diff line Loading @@ -698,6 +698,10 @@ class ActivityStarter { mRequest.intent, caller, callingUid); } if (mRequest.intent != null) { mRequest.componentSpecified |= mRequest.intent.getComponent() != null; } // If the caller hasn't already resolved the activity, we're willing // to do so here. If the caller is already holding the WM lock here, // and we need to check dynamic Uri permissions, then we're forced Loading services/tests/wmtests/src/com/android/server/wm/ActivityStarterTests.java +4 −0 Original line number Diff line number Diff line Loading @@ -1332,6 +1332,10 @@ public class ActivityStarterTests extends WindowTestsBase { starter.setReason("testNoActivityInfo").setIntent(intent) .setActivityInfo(null).execute(); verify(starter.mRequest).resolveActivity(any()); // Also verifies the value of Request#componentSpecified should be true even the // ActivityStarter#setComponentSpecified is not explicitly set. assertTrue(starter.mRequest.componentSpecified); } @Test Loading Loading
services/core/java/com/android/server/wm/ActivityStarter.java +4 −0 Original line number Diff line number Diff line Loading @@ -698,6 +698,10 @@ class ActivityStarter { mRequest.intent, caller, callingUid); } if (mRequest.intent != null) { mRequest.componentSpecified |= mRequest.intent.getComponent() != null; } // If the caller hasn't already resolved the activity, we're willing // to do so here. If the caller is already holding the WM lock here, // and we need to check dynamic Uri permissions, then we're forced Loading
services/tests/wmtests/src/com/android/server/wm/ActivityStarterTests.java +4 −0 Original line number Diff line number Diff line Loading @@ -1332,6 +1332,10 @@ public class ActivityStarterTests extends WindowTestsBase { starter.setReason("testNoActivityInfo").setIntent(intent) .setActivityInfo(null).execute(); verify(starter.mRequest).resolveActivity(any()); // Also verifies the value of Request#componentSpecified should be true even the // ActivityStarter#setComponentSpecified is not explicitly set. assertTrue(starter.mRequest.componentSpecified); } @Test Loading