/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/ |
D | LiveDataFunctions.java | 52 private static volatile LiveData<Boolean> sTrueLiveData; 53 private static volatile LiveData<Boolean> sFalseLiveData; 69 public static LiveData<Boolean> trueLiveData() { in trueLiveData() 77 public static LiveData<Boolean> falseLiveData() { in falseLiveData() 95 public static LiveData<Boolean> not(@NonNull LiveData<Boolean> source) { in not() 103 public static LiveData<Boolean> emitsNull(@NonNull LiveData<?> source) { in emitsNull() 144 public static <T> LiveData<T> freezable(@NonNull LiveData<Boolean> isFrozen, in freezable() 152 if (frozen == Boolean.FALSE && mDirty) { in freezable() 158 if (isFrozen.getValue() != Boolean.FALSE) { in freezable() 273 public static LiveData<Boolean> and(@NonNull LiveData<Boolean> x, [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCarrierInfoStoreManagerData.java | 55 Map<Integer, Boolean> toSerializeMergedCarrierNetworkOffloadMap(); in toSerializeMergedCarrierNetworkOffloadMap() 61 Map<Integer, Boolean> toSerializeUnmergedCarrierNetworkOffloadMap(); in toSerializeUnmergedCarrierNetworkOffloadMap() 74 Map<Integer, Boolean> carrierOffloadMap); in fromMergedCarrierNetworkOffloadMapDeserialized() 81 Map<Integer, Boolean> subscriptionOffloadMap); in fromUnmergedCarrierNetworkOffloadMapDeserialized() 136 stringMapToIntegerMap((Map<String, Boolean>) value)); in parseWifiCarrierInfoStoreMaps() 142 stringMapToIntegerMap((Map<String, Boolean>) value)); in parseWifiCarrierInfoStoreMaps() 154 private Map<String, Boolean> integerMapToStringMap(Map<Integer, Boolean> input) { in integerMapToStringMap() 155 Map<String, Boolean> output = new HashMap<>(); in integerMapToStringMap() 159 for (Map.Entry<Integer, Boolean> entry : input.entrySet()) { in integerMapToStringMap() 165 private Map<Integer, Boolean> stringMapToIntegerMap(Map<String, Boolean> input) { in stringMapToIntegerMap() [all …]
|
D | ImsiPrivacyProtectionExemptionStoreData.java | 50 Map<Integer, Boolean> toSerialize(); in toSerialize() 56 void fromDeserialized(Map<Integer, Boolean> imsiProtectionExemptionMap); in fromDeserialized() 76 Map<String, Boolean> dataToSerialize = integerMapToStringMap(mDataSource.toSerialize()); in serializeData() 90 private Map<Integer, Boolean> parseCarrierImsiProtectionExemptionMap(XmlPullParser in, in parseCarrierImsiProtectionExemptionMap() 95 Map<String, Boolean> protectionExemptionMap = new HashMap<>(); in parseCarrierImsiProtectionExemptionMap() 105 protectionExemptionMap = (Map<String, Boolean>) value; in parseCarrierImsiProtectionExemptionMap() 117 private Map<String, Boolean> integerMapToStringMap(Map<Integer, Boolean> input) { in integerMapToStringMap() 118 Map<String, Boolean> output = new HashMap<>(); in integerMapToStringMap() 122 for (Map.Entry<Integer, Boolean> entry : input.entrySet()) { in integerMapToStringMap() 127 private Map<Integer, Boolean> stringMapToIntegerMap(Map<String, Boolean> input) { in stringMapToIntegerMap() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.kt | 107 val isPreL: Boolean 114 val isLOrLMR1: Boolean 124 val isLOrLater: Boolean 130 val isLMR1OrLater: Boolean 136 val isMOrLater: Boolean 142 val isNOrLater: Boolean 148 val isNMR1OrLater: Boolean 154 val isOOrLater: Boolean 173 fun isScrolledToTop(view: View): Boolean { in isScrolledToTop() 194 val displaySeconds: Boolean = DataModel.dataModel.displayClockSeconds in setClockSecondsEnabled() [all …]
|
D | AsyncRingtonePlayer.kt | 191 fun play(context: Context, ringtoneUri: Uri?, crescendoDuration: Long): Boolean in <lambda>() 201 fun adjustVolume(context: Context?): Boolean in <lambda>() 223 override fun play(context: Context, ringtoneUri: Uri?, crescendoDuration: Long): Boolean { in <lambda>() 282 private fun startPlayback(inTelephoneCall: Boolean): Boolean { in <lambda>() 346 override fun adjustVolume(context: Context?): Boolean { in <lambda>() 406 Boolean::class.javaPrimitiveType) in <lambda>() 415 override fun play(context: Context, ringtoneUri: Uri?, crescendoDuration: Long): Boolean { in <lambda>() 482 private fun startPlayback(inTelephoneCall: Boolean): Boolean { in <lambda>() 552 override fun adjustVolume(context: Context?): Boolean { in <lambda>() 595 private fun isInTelephoneCall(context: Context): Boolean { in <lambda>()
|
D | VerticalViewPager.kt | 36 override fun canScrollHorizontally(direction: Int): Boolean = false in canScrollHorizontally() 41 override fun canScrollVertically(direction: Int): Boolean { in canScrollHorizontally() 52 override fun onInterceptTouchEvent(ev: MotionEvent): Boolean { in onInterceptTouchEvent() 53 val toIntercept: Boolean = super.onInterceptTouchEvent(flipXY(ev)) in onInterceptTouchEvent() 59 override fun onTouchEvent(ev: MotionEvent): Boolean { in onTouchEvent() 60 val toHandle: Boolean = super.onTouchEvent(flipXY(ev)) in onTouchEvent()
|
/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/ |
D | LiveDataFunctionsTest.java | 71 CaptureObserver<Boolean> observer = new CaptureObserver<>(); in testTrueLiveData() 81 CaptureObserver<Boolean> observer = new CaptureObserver<>(); in testFalseLiveData() 133 MutableLiveData<Boolean> isFrozen = dataOf(false); in testFreezable() 183 MutableLiveData<Boolean> empty = new MutableLiveData<>(); in testAnd_uninitialized() 196 MutableLiveData<Boolean> source = new MutableLiveData<>(); in testAnd_changeValue() 197 CaptureObserver<Boolean> observer = new CaptureObserver<>(); in testAnd_changeValue() 225 LiveData<Boolean> empty = new MutableLiveData<>(); in testOr_uninitialized() 238 MutableLiveData<Boolean> source = new MutableLiveData<>(); in testOr_changeValue() 239 CaptureObserver<Boolean> observer = new CaptureObserver<>(); in testOr_changeValue() 254 (predicate, value) -> LiveDataFunctions.iff(predicate, Boolean::booleanValue, in testIff_truthTable() [all …]
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraInterface.java | 151 …void setCaptureFlow(Boolean yuv1, Boolean yuv2, Boolean raw10, Boolean nr, Boolean edge, Boolean f… in setCaptureFlow() 153 void setReprocessingFlow(Boolean nr, Boolean edge); in setReprocessingFlow()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/ |
D | RoleSortFunction.java | 38 public class RoleSortFunction implements Function<List<Pair<ApplicationInfo, Boolean>>, 39 List<Pair<ApplicationInfo, Boolean>>> { 42 private final Comparator<Pair<ApplicationInfo, Boolean>> mComparator; 47 Comparator<Pair<ApplicationInfo, Boolean>> labelComparator = Comparator.comparing(role -> in RoleSortFunction() 49 Comparator<Pair<ApplicationInfo, Boolean>> userIdComparator = Comparator.comparingInt(role in RoleSortFunction() 56 public List<Pair<ApplicationInfo, Boolean>> apply( in apply() 57 @NonNull List<Pair<ApplicationInfo, Boolean>> input) { in apply() 58 List<Pair<ApplicationInfo, Boolean>> sorted = new ArrayList<>(input); in apply()
|
D | RequestRoleFragment.java | 272 @NonNull List<Pair<ApplicationInfo, Boolean>> qualifyingApplications) { in onRoleDataChanged() 412 Pair<ApplicationInfo, Boolean> qualifyingApplication = mAdapter.getItem(i); in getQualifyingApplicationUid() 444 Pair<ApplicationInfo, Boolean> qualifyingApplication = mAdapter.getItem(i); in getHolderPackageName() 493 private final List<Pair<ApplicationInfo, Boolean>> mQualifyingApplications = 547 public void replace(@NonNull List<Pair<ApplicationInfo, Boolean>> qualifyingApplications) { in replace() 568 @NonNull List<Pair<ApplicationInfo, Boolean>> qualifyingApplications) { in hasHolderApplication() 571 Pair<ApplicationInfo, Boolean> qualifyingApplication = qualifyingApplications.get( in hasHolderApplication() 591 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(i); in restoreItemChecked() 616 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(i); in updateItemChecked() 631 public Pair<ApplicationInfo, Boolean> getCheckedItem() { in getCheckedItem() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | KotlinUtils.kt | 142 hasHeader: Boolean in <lambda>() 366 fun isROrAutoRevokeEnabled(app: Application, packageName: String, user: UserHandle): Boolean { in <lambda>() 392 ): Boolean { in <lambda>() 420 vararg flags: Pair<Int, Boolean>, in <lambda>() 467 isOneTime: Boolean = false in <lambda>() 497 grantBackground: Boolean, in <lambda>() 498 isOneTime: Boolean = false, in <lambda>() 544 isOneTime: Boolean, in <lambda>() 546 ): Pair<LightPermission, Boolean> { in <lambda>() 649 userFixed: Boolean = false, in <lambda>() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | RcsProvisioningMonitor.java | 83 private Boolean mDeviceSingleRegistrationEnabledOverride; 84 private final HashMap<Integer, Boolean> mCarrierSingleRegistrationEnabledOverride = 86 private final ConcurrentHashMap<Integer, Boolean> mImsFeatureValidationOverride = 179 Boolean deviceEnabled = (Boolean) msg.obj; in handleMessage() 186 Boolean carrierEnabledOverride = (Boolean) msg.obj; in handleMessage() 187 Boolean carrierEnabled = mCarrierSingleRegistrationEnabledOverride.put( in handleMessage() 539 public Boolean isRcsVolteSingleRegistrationEnabled(int subId) { in isRcsVolteSingleRegistrationEnabled() 614 public void overrideDeviceSingleRegistrationEnabled(Boolean enabled) { in overrideDeviceSingleRegistrationEnabled() 621 public boolean overrideCarrierSingleRegistrationEnabled(int subId, Boolean enabled) { in overrideCarrierSingleRegistrationEnabled() 633 public boolean overrideImsFeatureValidation(int subId, Boolean enabled) { in overrideImsFeatureValidation() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | Utils.kt | 54 fun isPermissionsHub2FlagEnabled(): Boolean { in isPermissionsHub2FlagEnabled() 63 fun shouldShowPermissionsDashboard(): Boolean { in shouldShowPermissionsDashboard() 72 fun isCameraMicIconsFlagEnabled(): Boolean { in isCameraMicIconsFlagEnabled() 83 fun shouldShowCameraMicIndicators(): Boolean { in shouldShowCameraMicIndicators() 92 fun isLocationIndicatorsFlagEnabled(): Boolean { in isLocationIndicatorsFlagEnabled() 101 fun shouldShowLocationIndicators(): Boolean { in shouldShowLocationIndicators() 108 fun isLocationAccuracyEnabled(): Boolean { in isLocationAccuracyEnabled() 118 fun getDefaultPrecision(): Boolean { in getDefaultPrecision() 240 private fun isToday(time: Long): Boolean { in isToday()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | PermissionMonitor.java | 83 protected static final Boolean SYSTEM = Boolean.TRUE; 84 protected static final Boolean NETWORK = Boolean.FALSE; 99 private final Map<Integer, Boolean> mApps = new HashMap<>(); 247 Boolean permission = mApps.get(UserHandle.getAppId(uid)); in startMonitoring() 356 return Boolean.TRUE.equals(mApps.get(UserHandle.getAppId(uid))); in hasRestrictedNetworksPermission() 359 private void update(Set<UserHandle> users, Map<Integer, Boolean> apps, boolean add) { in update() 362 for (Entry<Integer, Boolean> app : apps.entrySet()) { in update() 422 protected Boolean highestPermissionForUid(Boolean currentPermission, String name) { in highestPermissionForUid() 477 final Boolean permission = highestPermissionForUid(mApps.get(appId), packageName); in onPackageAdded() 481 Map<Integer, Boolean> apps = new HashMap<>(); in onPackageAdded() [all …]
|
/packages/apps/Camera2/src/com/android/camera/stats/ |
D | CaptureSessionStatsCollector.java | 36 protected Boolean mIsFrontFacing = Boolean.FALSE; 37 protected Boolean mIsHdr = Boolean.FALSE; 44 protected Boolean mGridLinesOn; 47 protected Boolean mVolumeButtonShutter; 115 final Boolean volumeButtonShutter, in decorateAtTimeCaptureRequest()
|
/packages/apps/Settings/src/com/android/settings/utils/ |
D | SensorPrivacyManagerHelper.java | 40 private final SparseArray<Boolean> mCurrentUserCachedState = new SparseArray<>(); 41 private final SparseArray<SparseArray<Boolean>> mCachedState = new SparseArray<>(); 121 Boolean blocked = mCurrentUserCachedState.get(sensor); in isSensorBlocked() 141 SparseArray<Boolean> userCachedState = createUserCachedStateIfNeededLocked(userId); in isSensorBlocked() 142 Boolean blocked = userCachedState.get(sensor); in isSensorBlocked() 252 SparseArray<Boolean> userCachedState = in registerListenerIfNeeded() 274 private SparseArray<Boolean> createUserCachedStateIfNeededLocked(int userId) { in createUserCachedStateIfNeededLocked() 275 SparseArray<Boolean> userCachedState = mCachedState.get(userId); in createUserCachedStateIfNeededLocked()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | ManageExternalStorageDetailsTest.java | 113 ArgumentCaptor<Boolean> acSetEnabled = ArgumentCaptor.forClass(Boolean.class); in onPreferenceChange_enableManageExternalStorage_shouldTriggerAppOpsManager() 118 ArgumentCaptor<Boolean> acSetChecked = ArgumentCaptor.forClass(Boolean.class); in onPreferenceChange_enableManageExternalStorage_shouldTriggerAppOpsManager() 148 ArgumentCaptor<Boolean> acSetEnabled = ArgumentCaptor.forClass(Boolean.class); in onPreferenceChange_disableManageExternalStorage_shouldTriggerAppOpsManager() 153 ArgumentCaptor<Boolean> acSetChecked = ArgumentCaptor.forClass(Boolean.class); in onPreferenceChange_disableManageExternalStorage_shouldTriggerAppOpsManager()
|
/packages/apps/TV/common/src/com/android/tv/common/dev/ |
D | DeveloperPreferences.java | 27 public static final DeveloperPreference<Boolean> ALLOW_ANALYTICS_IN_ENG = 35 public static final DeveloperPreference<Boolean> ALLOW_STRICT_MODE = 43 public static final DeveloperPreference<Boolean> LOG_KEYEVENT = 51 public static final DeveloperPreference<Boolean> USE_DEBUG_KEYS = 59 public static final DeveloperPreference<Boolean> USE_TRACKER =
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
D | SettingsActivity.kt | 84 override fun onCreateOptionsMenu(menu: Menu): Boolean { in onCreateOptionsMenu() 89 override fun onPrepareOptionsMenu(menu: Menu): Boolean { in onPrepareOptionsMenu() 94 override fun onOptionsItemSelected(item: MenuItem): Boolean { in onOptionsItemSelected() 109 val hasVibrator: Boolean = (it.getContext() in onCreatePreferences() 128 override fun onPreferenceChange(pref: Preference, newValue: Any): Boolean { in onPreferenceChange() 141 DataModel.dataModel.displayClockSeconds = newValue as Boolean in onPreferenceChange() 148 val autoHomeClockEnabled: Boolean = (pref as TwoStatePreference).isChecked() in onPreferenceChange() 164 override fun onPreferenceClick(pref: Preference): Boolean { in onPreferenceClick() 244 val autoHomeClockEnabled: Boolean = in refresh()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | PermissionAppsViewModel.kt | 73 fun updateShowSystem(showSystem: Boolean) { in <lambda>() 124 val showSystem: Boolean = state.get(SHOULD_SHOW_SYSTEM_KEY) ?: false in <lambda>() 196 fun packageHasFullStorage(packageName: String, user: UserHandle): Boolean { in <lambda>() 207 fun arePackagesLoaded(): Boolean { in <lambda>() 261 state.set(SHOULD_SHOW_SYSTEM_KEY, state.get<Boolean>(SHOULD_SHOW_SYSTEM_KEY) ?: false) in create() 262 state.set(HAS_SYSTEM_APPS_KEY, state.get<Boolean>(HAS_SYSTEM_APPS_KEY) ?: true) in create() 263 state.set(SHOW_ALWAYS_ALLOWED, state.get<Boolean>(SHOW_ALWAYS_ALLOWED) ?: false) in create() 264 state.set(CREATION_LOGGED_KEY, state.get<Boolean>(CREATION_LOGGED_KEY) ?: false) in create()
|
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/ |
D | MainActivity.java | 229 Boolean dumpHeap = (Boolean) configClass in initLeakCanary() 231 Boolean dumpHeapWhenDebugging = (Boolean) configClass in initLeakCanary() 242 Boolean computeRetainedHeapSize = (Boolean) configClass in initLeakCanary() 246 Boolean useExperimentalLeakFinders = (Boolean) configClass in initLeakCanary() 351 private final Supplier<Boolean> mIsCheckedSupplier; 354 private SwitchElement(String text, Supplier<Boolean> isCheckedSupplier, in SwitchElement()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/displaysound/ |
D | AdvancedVolumeFragmentTest.java | 108 Map<Integer, Boolean> formats = ImmutableMap.of( in testOnPreferenceTreeClick_withFormatDisabled_disablesFormatInAudioManager() 127 ArgumentCaptor<Boolean> formatEnabled = ArgumentCaptor.forClass(Boolean.class); in testOnPreferenceTreeClick_withFormatDisabled_disablesFormatInAudioManager() 136 Map<Integer, Boolean> formats = ImmutableMap.of( in testOnPreferenceTreeClick_withFormatEnabled_enablesFormatInAudioManager() 155 ArgumentCaptor<Boolean> formatEnabled = ArgumentCaptor.forClass(Boolean.class); in testOnPreferenceTreeClick_withFormatEnabled_enablesFormatInAudioManager() 164 Map<Integer, Boolean> formats = ImmutableMap.of( in testGetPreferenceScreen_whenManual_returnsFormatsInCorrectPreferenceGroup() 193 Map<Integer, Boolean> formats = ImmutableMap.of( in testGetPreferenceScreen_whenAuto_showsFormatInfoPreference() 217 Map<Integer, Boolean> formats = ImmutableMap.of( in testGetPreferenceScreen_whenAuto_returnsFormatsInCorrectPreferenceGroup() 265 Map<Integer, Boolean> formats, List<Integer> reportedFormats) { in createAdvancedVolumeFragmentWithAudioManagerReturning()
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitySelectionActivity.kt | 102 override fun onQueryTextSubmit(query: String?): Boolean { in onCreate() 106 override fun onQueryTextChange(query: String): Boolean { in onCreate() 148 override fun onCreateOptionsMenu(menu: Menu): Boolean { in onCreateOptionsMenu() 153 override fun onPrepareOptionsMenu(menu: Menu): Boolean { in onPrepareOptionsMenu() 158 override fun onOptionsItemSelected(item: MenuItem): Boolean { in onOptionsItemSelected() 167 val enabled: Boolean = !mCitiesAdapter.isFiltering in updateFastScrolling() 358 override fun onCheckedChanged(b: CompoundButton, checked: Boolean) { in onCheckedChanged() 483 val isFiltering: Boolean 489 private fun hasHeader(): Boolean { in hasHeader() 504 private fun getShowIndex(position: Int): Boolean { in getShowIndex() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ims/ |
D | MockWifiCallingQueryImsState.java | 27 private Boolean mIsTtyOnVolteEnabled; 28 private Boolean mIsEnabledOnPlatform; 29 private Boolean mIsProvisionedOnDevice; 30 private Boolean mIsServiceStateReady; 31 private Boolean mIsEnabledByUser;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ims/ |
D | MockVtQueryImsState.java | 27 private Boolean mIsTtyOnVolteEnabled; 28 private Boolean mIsEnabledOnPlatform; 29 private Boolean mIsProvisionedOnDevice; 30 private Boolean mIsEnabledByUser; 31 private Boolean mIsServiceStateReady;
|