Revert "Using Transaction directly instead of building surface p..."
Revert "Removing unused surface transaction wrappers" Revert submission 19933596-tcompat Reason for revert: b/246899728 Reverted Changes: I31123dff7:Using Transaction directly instead of building sur... I2e2526d21:Removing unused surface transaction wrappers Change-Id: I63d1d8bb723b7bd05d345fb21a67f88e5fb36bc1
This commit is contained in:
@@ -36,6 +36,7 @@ import android.appwidget.AppWidgetProviderInfo;
|
||||
import android.content.ComponentName;
|
||||
import android.os.UserHandle;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import androidx.test.filters.SmallTest;
|
||||
@@ -110,6 +111,7 @@ public final class WidgetsPredicationUpdateTaskTest {
|
||||
doReturn(allWidgets).when(manager).getInstalledProvidersForProfile(eq(myUserHandle()));
|
||||
doAnswer(i -> {
|
||||
String pkg = i.getArgument(0);
|
||||
Log.e("Hello", "Getting v " + pkg);
|
||||
return TextUtils.isEmpty(pkg) ? allWidgets : allWidgets.stream()
|
||||
.filter(a -> pkg.equals(a.provider.getPackageName()))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Reference in New Issue
Block a user