/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/ |
D | LiveDataFunctions.java | 53 private static volatile LiveData<Boolean> sTrueLiveData; 54 private static volatile LiveData<Boolean> sFalseLiveData; 70 public static LiveData<Boolean> trueLiveData() { in trueLiveData() 78 public static LiveData<Boolean> falseLiveData() { in falseLiveData() 96 public static LiveData<Boolean> not(@NonNull LiveData<Boolean> source) { in not() 104 public static LiveData<Boolean> emitsNull(@NonNull LiveData<?> source) { in emitsNull() 145 public static <T> LiveData<T> freezable(@NonNull LiveData<Boolean> isFrozen, in freezable() 153 if (frozen == Boolean.FALSE && mDirty) { in freezable() 159 if (isFrozen.getValue() != Boolean.FALSE) { in freezable() 274 public static LiveData<Boolean> and(@NonNull LiveData<Boolean> x, [all …]
|
/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/ |
D | LiveDataFunctionsTest.java | 73 CaptureObserver<Boolean> observer = new CaptureObserver<>(); in testTrueLiveData() 83 CaptureObserver<Boolean> observer = new CaptureObserver<>(); in testFalseLiveData() 135 MutableLiveData<Boolean> isFrozen = dataOf(false); in testFreezable() 185 MutableLiveData<Boolean> empty = new MutableLiveData<>(); in testAnd_uninitialized() 198 MutableLiveData<Boolean> source = new MutableLiveData<>(); in testAnd_changeValue() 199 CaptureObserver<Boolean> observer = new CaptureObserver<>(); in testAnd_changeValue() 227 LiveData<Boolean> empty = new MutableLiveData<>(); in testOr_uninitialized() 240 MutableLiveData<Boolean> source = new MutableLiveData<>(); in testOr_changeValue() 241 CaptureObserver<Boolean> observer = new CaptureObserver<>(); in testOr_changeValue() 256 (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/apps/PermissionController/src/com/android/packageinstaller/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 | 394 Pair<ApplicationInfo, Boolean> qualifyingApplication = mAdapter.getItem(i); in getQualifyingApplicationUid() 426 Pair<ApplicationInfo, Boolean> qualifyingApplication = mAdapter.getItem(i); in getHolderPackageName() 472 private final List<Pair<ApplicationInfo, Boolean>> mQualifyingApplications = 531 public void replace(@NonNull List<Pair<ApplicationInfo, Boolean>> qualifyingApplications) { in replace() 552 @NonNull List<Pair<ApplicationInfo, Boolean>> qualifyingApplications) { in hasHolderApplication() 555 Pair<ApplicationInfo, Boolean> qualifyingApplication = qualifyingApplications.get( in hasHolderApplication() 575 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(i); in restoreItemChecked() 600 Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(i); in updateItemChecked() 615 public Pair<ApplicationInfo, Boolean> getCheckedItem() { in getCheckedItem() 622 Pair<ApplicationInfo, Boolean> qualifyingApplication = getCheckedItem(); in getCheckedPackageName() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountFinalizeFragment.java | 70 new LoaderManager.LoaderCallbacks<Boolean>() { in onResume() 72 public Loader<Boolean> onCreateLoader(int id, Bundle args) { in onResume() 78 public void onLoadFinished(Loader<Boolean> loader, Boolean success) { in onResume() 95 public void onLoaderReset(Loader<Boolean> loader) {} in onResume() 104 private static class FinalSetupTaskLoader extends MailAsyncTaskLoader<Boolean> { 118 public Boolean loadInBackground() { in loadInBackground() 132 protected void onDiscardResult(Boolean result) {} in onDiscardResult()
|
D | AccountCreationFragment.java | 162 implements LoaderManager.LoaderCallbacks<Boolean> { 166 public Loader<Boolean> onCreateLoader(int id, Bundle args) { in onCreateLoader() 176 return new MailAsyncTaskLoader<Boolean>(mAppContext) { in onCreateLoader() 178 protected void onDiscardResult(Boolean result) {} in onCreateLoader() 181 public Boolean loadInBackground() { in onCreateLoader() 220 public void onLoadFinished(Loader<Boolean> loader, Boolean success) { in onLoadFinished() 244 public void onLoaderReset(Loader<Boolean> loader) {} in onLoaderReset()
|
D | AccountServerBaseFragment.java | 262 getLoaderManager().initLoader(0, null, new LoaderManager.LoaderCallbacks<Boolean>() { in saveSettings() 264 public Loader<Boolean> onCreateLoader(int id, Bundle args) { in saveSettings() 269 public void onLoadFinished(Loader<Boolean> loader, Boolean data) { in saveSettings() 282 public void onLoaderReset(Loader<Boolean> loader) {} in saveSettings() 286 public abstract Loader<Boolean> getSaveSettingsLoader(); in getSaveSettingsLoader()
|
/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/tests/robotests/src/com/android/settings/network/ |
D | MultiNetworkHeaderControllerTest.java | 136 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() 139 List<Boolean> values = captor.getAllValues(); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() 140 assertThat(values.get(values.size()-1)).isEqualTo(Boolean.TRUE); in onChildUpdated_subscriptionsBecameAvailable_categoryIsVisible() 156 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible() 159 List<Boolean> values = captor.getAllValues(); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible() 160 assertThat(values.get(values.size()-1)).isEqualTo(Boolean.FALSE); in onChildUpdated_subscriptionsBecameUnavailable_categoryIsNotVisible()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStatePowerBridge.java | 47 ? Boolean.TRUE : Boolean.FALSE; in loadAllExtraInfo() 53 app.extraInfo = mBackend.isWhitelisted(pkg) ? Boolean.TRUE : Boolean.FALSE; in updateExtraInfo() 64 return info.extraInfo == Boolean.TRUE;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStatePowerBridge.java | 47 ? Boolean.TRUE : Boolean.FALSE; in loadAllExtraInfo() 53 app.extraInfo = mBackend.isWhitelisted(pkg) ? Boolean.TRUE : Boolean.FALSE; in updateExtraInfo() 64 return info.extraInfo == Boolean.TRUE;
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | PropertiesProvisioningDataParserTest.java | 249 Boolean.toString(TEST_SKIP_ENCRYPTION)); in testParse_nfcProvisioningIntent() 299 properties.setProperty(EXTRA_PROVISIONING_USE_MOBILE_DATA, Boolean.toString(true)); in testParse_nfcProvisioningIntent_setUseMobileDataTrue() 308 properties.setProperty(EXTRA_PROVISIONING_USE_MOBILE_DATA, Boolean.toString(false)); in testParse_nfcProvisioningIntent_setUseMobileDataFalse() 328 props.setProperty(EXTRA_PROVISIONING_WIFI_HIDDEN, Boolean.toString(TEST_HIDDEN)); in testParse_nfcProvisioning_wifiWithCertificates() 452 Boolean.toString(TEST_SKIP_ENCRYPTION)); in buildIntentWithAllShortExtras() 472 Boolean.toString(TEST_USE_MOBILE_DATA)); in buildIntentWithAllShortExtras() 475 Boolean.toString(TEST_SKIP_USER_SETUP)); in buildIntentWithAllShortExtras() 501 Boolean.toString(TEST_SKIP_ENCRYPTION)); in buildIntentWithAllLongExtras() 516 EXTRA_PROVISIONING_USE_MOBILE_DATA, Boolean.toString(TEST_USE_MOBILE_DATA)); in buildIntentWithAllLongExtras() 518 EXTRA_PROVISIONING_SKIP_USER_SETUP, Boolean.toString(TEST_SKIP_USER_SETUP)); in buildIntentWithAllLongExtras() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 52 if (Boolean.class == clazz) { in toCarPropertyValue() 103 if (o instanceof Boolean) { in toVehiclePropValue() 104 v.int32Values.add(((Boolean) o) ? 1 : 0); in toVehiclePropValue() 105 } else if (o instanceof Boolean[]) { in toVehiclePropValue() 106 for (Boolean b : (Boolean[]) o) { in toVehiclePropValue() 174 } else if (classMatched(Boolean.class, clazz) || in toCarPropertyConfig() 214 return Boolean.class; in getJavaClass()
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumbersUtil.java | 74 new AsyncTask<Object, Void, Boolean>() { in checkForSendToVoicemailContact() 76 public Boolean doInBackground(Object... params) { in checkForSendToVoicemailContact() 104 public void onPostExecute(Boolean hasSendToVoicemailContact) { in checkForSendToVoicemailContact() 123 final AsyncTask<Object, Void, Boolean> task = in importSendToVoicemailContacts() 124 new AsyncTask<Object, Void, Boolean>() { in importSendToVoicemailContacts() 126 public Boolean doInBackground(Object... params) { in importSendToVoicemailContacts() 176 public void onPostExecute(Boolean success) { in importSendToVoicemailContacts()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | RefreshTask.java | 43 public class RefreshTask extends TimeoutTask<Void, Boolean> { 67 public @Nullable Boolean run(Void... params) { in run() 119 public void finish(Boolean refreshSupported) { in finish() 122 if (Boolean.TRUE.equals(refreshSupported)) { in finish() 128 mCallback.accept(refreshSupported != null ? refreshSupported : Boolean.FALSE); in finish()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/ |
D | ThemeOverlayManager.java | 60 public void applyOverlays(Context context, boolean enabled, Consumer<Boolean> callback) { in applyOverlays() 106 private void setEnabled(boolean enabled, Consumer<Boolean> callback) { in setEnabled() 107 new AsyncTask<Void, Void, Boolean>() { in setEnabled() 109 protected Boolean doInBackground(Void... params) { in setEnabled() 114 protected void onPostExecute(Boolean result) { in setEnabled()
|
/packages/apps/TV/common/src/com/android/tv/common/experiments/ |
D | Experiments.java | 30 public static final ExperimentFlag<Boolean> ENABLE_UNRATED_CONTENT_SETTINGS = 36 public static final ExperimentFlag<Boolean> ENABLE_ANALYTICS_VIA_CHECKBOX = 46 public static final ExperimentFlag<Boolean> ENABLE_DEVELOPER_FEATURES = 58 public static final ExperimentFlag<Boolean> ENABLE_QA_FEATURES =
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
D | UiDeviceAsserts.java | 53 UiDevice uiDevice, SearchCondition<Boolean> searchCondition) { in assertWaitForCondition() 64 UiDevice uiDevice, SearchCondition<Boolean> searchCondition, long timeout) { in assertWaitForCondition() 77 UiDevice uiDevice, SearchCondition<Boolean> searchCondition) { in waitForCondition() 82 UiDevice uiDevice, SearchCondition<Boolean> searchCondition, long timeout) { in waitForCondition() 114 SearchCondition<Boolean> untilHasFocusedDescendant = in assertNavigateTo()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/ |
D | GenericOneCameraImpl.java | 62 private final Listenable<Boolean> mReadyStateListenable; 72 Listenable<Boolean> readyStateListenable, float maxZoom, Updatable<Float> zoom, in GenericOneCameraImpl() 139 Callback<Boolean> readyStateCallback = new Callback<Boolean>() { in setReadyStateChangedListener() 141 public void onCallback(@Nonnull Boolean result) { in setReadyStateChangedListener()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/ |
D | RefreshAnnotatedCallLogWorker.java | 110 ListenableFuture<Boolean> forceRebuildFuture = in checkDirtyAndRebuildIfNecessary() 132 ListenableFuture<Boolean> isDirtyFuture = in checkDirtyAndRebuildIfNecessary() 158 private ListenableFuture<Boolean> isDirty() { in isDirty() 159 List<ListenableFuture<Boolean>> isDirtyFutures = new ArrayList<>(); in isDirty() 161 ListenableFuture<Boolean> dataSourceDirty = dataSource.isDirty(); in isDirty() 167 ListenableFuture<Boolean> isDirtyFuture = in isDirty()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | AccessibilityEventRouter.java | 49 private final Function<View, Boolean> mClickCallback; 50 private final Function<View, Boolean> mLongClickCallback; 53 RecyclerView recyclerView, @NonNull Function<View, Boolean> clickCallback, in AccessibilityEventRouter() 54 @Nullable Function<View, Boolean> longClickCallback) { in AccessibilityEventRouter()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDiscoveryParameters.java | 133 sb.append("mEnableLPD: " + Boolean.toString(mEnableLowPowerDiscovery) + "\n"); in toString() 134 sb.append("mEnableReader: " + Boolean.toString(mEnableReaderMode) + "\n"); in toString() 135 sb.append("mEnableHostRouting: " + Boolean.toString(mEnableHostRouting) + "\n"); in toString() 136 sb.append("mEnableP2p: " + Boolean.toString(mEnableP2p)); in toString()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | Voicemail.java | 36 private final Boolean isRead; 37 private final Boolean hasContent; 49 Boolean isRead, in Voicemail() 50 Boolean hasContent, in Voicemail() 100 private Boolean builderIsRead;
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | NotificationDataManager.java | 46 private final Map<String, Boolean> mMessageNotificationToMuteStateMap = new HashMap<>(); 51 private final Map<String, Boolean> mUnseenNotificationMap = new HashMap<>(); 131 Boolean currentMute = mMessageNotificationToMuteStateMap.get(sbnKey); in toggleMute() 168 for (Boolean value : mUnseenNotificationMap.values()) { in getUnseenNotificationCount()
|