Snap for 12058995 from 27b5476bbf to 24Q4-release
Change-Id: Ibc103435d9ec181d39662ed471428bbea40f43e0
This commit is contained in:
@@ -2799,7 +2799,9 @@
|
||||
<activity android:name=".biometrics.fingerprint.FingerprintSettings"
|
||||
android:exported="false"
|
||||
android:taskAffinity="com.android.settings.root" />
|
||||
<activity android:name=".biometrics.fingerprint.FingerprintEnrollFindSensor" android:exported="false"/>
|
||||
<activity android:name=".biometrics.fingerprint.FingerprintEnrollFindSensor"
|
||||
android:exported="false"
|
||||
android:theme="@style/GlifTheme.Light"/>
|
||||
<activity android:name=".biometrics.fingerprint.FingerprintEnrollEnrolling" android:exported="false"/>
|
||||
<activity android:name=".biometrics.fingerprint.FingerprintEnrollFinish" android:exported="false"/>
|
||||
<activity android:name=".biometrics.fingerprint.FingerprintEnrollParentalConsent" android:exported="false"/>
|
||||
@@ -2832,7 +2834,9 @@
|
||||
android:theme="@style/GlifTheme.Light"
|
||||
android:taskAffinity="com.android.settings.root" />
|
||||
|
||||
<activity android:name=".biometrics.fingerprint.SetupFingerprintEnrollFindSensor" android:exported="false"/>
|
||||
<activity android:name=".biometrics.fingerprint.SetupFingerprintEnrollFindSensor"
|
||||
android:exported="false"
|
||||
android:theme="@style/GlifTheme.Light"/>
|
||||
<activity android:name=".biometrics.fingerprint.SetupFingerprintEnrollEnrolling" android:exported="false"/>
|
||||
<activity android:name=".biometrics.fingerprint.SetupFingerprintEnrollFinish" android:exported="false"/>
|
||||
<activity android:name=".biometrics.fingerprint.SetupFingerprintEnrollIntroduction"
|
||||
|
||||
@@ -56,7 +56,8 @@ public class TrackpadSettings extends DashboardFragment {
|
||||
@Override
|
||||
protected boolean isPageSearchEnabled(Context context) {
|
||||
return FeatureFlagUtils
|
||||
.isEnabled(context, FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_TRACKPAD);
|
||||
.isEnabled(context, FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_TRACKPAD)
|
||||
&& NewKeyboardSettingsUtils.isTouchpad();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -58,7 +58,8 @@ public class TrackpadTouchGestureSettings extends DashboardFragment {
|
||||
return FeatureFlagUtils
|
||||
.isEnabled(
|
||||
context,
|
||||
FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_TRACKPAD_GESTURE);
|
||||
FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_TRACKPAD_GESTURE)
|
||||
&& NewKeyboardSettingsUtils.isTouchpad();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ public class TrackpadTouchGestureSettingsController extends BasePreferenceContro
|
||||
public int getAvailabilityStatus() {
|
||||
boolean isFeatureOn = FeatureFlagUtils
|
||||
.isEnabled(mContext, FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_TRACKPAD_GESTURE);
|
||||
return isFeatureOn ? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
|
||||
boolean isTouchpad = NewKeyboardSettingsUtils.isTouchpad();
|
||||
return (isFeatureOn && isTouchpad) ? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,10 +31,10 @@ import android.os.BatteryManager;
|
||||
|
||||
import androidx.test.core.app.ApplicationProvider;
|
||||
|
||||
import com.android.settings.fuelgauge.BatteryUtils;
|
||||
import com.android.settings.testutils.FakeFeatureFactory;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
@@ -76,17 +76,17 @@ public class BatteryFirstUseDatePreferenceControllerTest {
|
||||
assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE);
|
||||
}
|
||||
|
||||
@Ignore("b/315267179")
|
||||
@Test
|
||||
public void getSummary_available_returnExpectedDate() {
|
||||
when(mFactory.batterySettingsFeatureProvider.isFirstUseDateAvailable(eq(mContext),
|
||||
anyLong())).thenReturn(true);
|
||||
mShadowBatteryManager.setLongProperty(BatteryManager.BATTERY_PROPERTY_FIRST_USAGE_DATE,
|
||||
1669680000L);
|
||||
final CharSequence expectedDate = BatteryUtils.getBatteryInfoFormattedDate(1669680000000L);
|
||||
|
||||
final CharSequence result = mController.getSummary();
|
||||
|
||||
assertThat(result.toString()).isEqualTo("November 29, 2022");
|
||||
assertThat(result).isEqualTo(expectedDate);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -31,10 +31,10 @@ import android.os.BatteryManager;
|
||||
|
||||
import androidx.test.core.app.ApplicationProvider;
|
||||
|
||||
import com.android.settings.fuelgauge.BatteryUtils;
|
||||
import com.android.settings.testutils.FakeFeatureFactory;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
@@ -77,17 +77,17 @@ public class BatteryManufactureDatePreferenceControllerTest {
|
||||
assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE);
|
||||
}
|
||||
|
||||
@Ignore("b/315267179")
|
||||
@Test
|
||||
public void getSummary_available_returnExpectedDate() {
|
||||
when(mFactory.batterySettingsFeatureProvider.isManufactureDateAvailable(eq(mContext),
|
||||
anyLong())).thenReturn(true);
|
||||
mShadowBatteryManager.setLongProperty(BatteryManager.BATTERY_PROPERTY_MANUFACTURING_DATE,
|
||||
1669680000L);
|
||||
final CharSequence expectedDate = BatteryUtils.getBatteryInfoFormattedDate(1669680000000L);
|
||||
|
||||
final CharSequence result = mController.getSummary();
|
||||
|
||||
assertThat(result.toString()).isEqualTo("November 29, 2022");
|
||||
assertThat(result).isEqualTo(expectedDate);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user