/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | RenderParamsFlags.java | 34 public static final Key<Boolean> FLAG_KEY_DISABLE_BITMAP_CACHING = 35 new Key<Boolean>("disableBitmapCaching", Boolean.class); 36 public static final Key<Boolean> FLAG_KEY_RENDER_ALL_DRAWABLE_STATES = 37 new Key<Boolean>("renderAllDrawableStates", Boolean.class); 43 public static final Key<Boolean> FLAG_KEY_RECYCLER_VIEW_SUPPORT = 44 new Key<Boolean>("recyclerViewSupport", Boolean.class); 54 public static final Key<Boolean> FLAG_KEY_XML_FILE_PARSER_SUPPORT = 55 new Key<Boolean>("xmlFileParser", Boolean.class); 60 public static final Key<Boolean> FLAG_DO_NOT_RENDER_ON_CREATE = 61 new Key<Boolean>("doNotRenderOnCreate", Boolean.class);
|
/frameworks/support/app-toolkit/common/src/test/java/androidx/collection/ |
D | SafeIterableMapTest.java | 44 SafeIterableMap<Integer, Boolean> map = mapOf(); in testEmptyToString() 50 SafeIterableMap<Integer, Boolean> map = mapOf(1); in testOneElementToString() 64 SafeIterableMap<Integer, Boolean> map = mapOf(1, 2, 3, 4); in testEquality2() 71 SafeIterableMap<Integer, Boolean> map = mapOf(1, 2, 3, 4); in testEquality3() 78 SafeIterableMap<Integer, Boolean> map = mapOf(1, 2, 3, 4); in testEquality4() 79 assertThat(map.equals(new SafeIterableMap<Integer, Boolean>()), is(false)); in testEquality4() 84 SafeIterableMap<Integer, Boolean> map1 = mapOf(1, 2, 3, 4); in testEquality5() 85 SafeIterableMap<Integer, Boolean> map2 = mapOf(1); in testEquality5() 91 SafeIterableMap<Integer, Boolean> map1 = mapOf(1, 2, 3, 4); in testEquality6() 92 SafeIterableMap<Integer, Boolean> map2 = mapOf(1, 2, 3, 5); in testEquality6() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableBoolean.java | 30 public class MarshalQueryableBoolean implements MarshalQueryable<Boolean> { 32 private class MarshalerBoolean extends Marshaler<Boolean> { 33 protected MarshalerBoolean(TypeReference<Boolean> typeReference, int nativeType) { in MarshalerBoolean() 38 public void marshal(Boolean value, ByteBuffer buffer) { in marshal() 44 public Boolean unmarshal(ByteBuffer buffer) { in unmarshal() 55 public Marshaler<Boolean> createMarshaler(TypeReference<Boolean> managedType, in createMarshaler() 61 public boolean isTypeMappingSupported(TypeReference<Boolean> managedType, int nativeType) { in isTypeMappingSupported() 62 return (Boolean.class.equals(managedType.getType()) in isTypeMappingSupported()
|
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/ |
D | ConstraintTrackerTest.java | 61 ConstraintListener<Boolean> constraintListener1 = mock(ConstraintListener.class); in testAddListener_manyListeners_doesNotCallGetInitialStateAndStartTrackingTwice() 62 ConstraintListener<Boolean> constraintListener2 = mock(ConstraintListener.class); in testAddListener_manyListeners_doesNotCallGetInitialStateAndStartTrackingTwice() 81 ConstraintListener<Boolean> constraintListener = mock(ConstraintListener.class); in testAddListener_sameListener_doesNotCallGetInitialStateAndStartTrackingTwice() 100 ConstraintListener<Boolean> constraintListener1 = mock(ConstraintListener.class); in testAddListener_notifiesAddedListener() 101 ConstraintListener<Boolean> constraintListener2 = mock(ConstraintListener.class); in testAddListener_notifiesAddedListener() 114 ConstraintListener<Boolean> constraintListener1 = mock(ConstraintListener.class); in testAddListener_constraintNotSet() 115 ConstraintListener<Boolean> constraintListener2 = mock(ConstraintListener.class); in testAddListener_constraintNotSet() 125 ConstraintListener<Boolean> constraintListener1 = mock(ConstraintListener.class); in testSetState_newState_notifiesAllListeners() 126 ConstraintListener<Boolean> constraintListener2 = mock(ConstraintListener.class); in testSetState_newState_notifiesAllListeners() 140 ConstraintListener<Boolean> constraintListener1 = mock(ConstraintListener.class); in testSetState_sameState_doesNotNotify() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTest.java | 135 ArrayList<Pair<Integer, Boolean>> rats = new ArrayList<Pair<Integer, Boolean>>(); in testRAT() 137 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_IS95A, true)); in testRAT() 138 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_IS95B, true)); in testRAT() 139 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT, true)); in testRAT() 140 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_0, true)); in testRAT() 141 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A, true)); in testRAT() 142 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_B, true)); in testRAT() 143 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EHRPD, true)); in testRAT() 145 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_GPRS, false)); in testRAT() 146 rats.add(new Pair<Integer, Boolean>(ServiceState.RIL_RADIO_TECHNOLOGY_EDGE, false)); in testRAT() [all …]
|
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/test/ |
D | DelayLoaderCallbacks.java | 28 public class DelayLoaderCallbacks implements LoaderManager.LoaderCallbacks<Boolean> { 32 public Loader<Boolean> mLoader; 43 public Loader<Boolean> onCreateLoader(int id, Bundle args) { in onCreateLoader() 49 public void onLoadFinished(@NonNull Loader<Boolean> loader, Boolean data) { in onLoadFinished() 54 public void onLoaderReset(@NonNull Loader<Boolean> loader) { in onLoaderReset()
|
D | DummyLoaderCallbacks.java | 26 public class DummyLoaderCallbacks implements LoaderManager.LoaderCallbacks<Boolean> { 38 public Loader<Boolean> onCreateLoader(int id, Bundle args) { in onCreateLoader() 43 public void onLoadFinished(@NonNull Loader<Boolean> loader, Boolean data) { in onLoadFinished() 48 public void onLoaderReset(@NonNull Loader<Boolean> loader) { in onLoaderReset()
|
D | DelayLoader.java | 27 public class DelayLoader extends AsyncTaskLoader<Boolean> { 36 public Boolean loadInBackground() { in loadInBackground() 47 public void deliverResult(@Nullable Boolean data) { in deliverResult()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CallbackHandlerTest.java | 70 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in testEmergencyListener() 87 ArgumentCaptor<Boolean> enableArg = ArgumentCaptor.forClass(Boolean.class); in testSignalCallback_setWifiIndicators() 90 ArgumentCaptor<Boolean> inArg = ArgumentCaptor.forClass(Boolean.class); in testSignalCallback_setWifiIndicators() 91 ArgumentCaptor<Boolean> outArg = ArgumentCaptor.forClass(Boolean.class); in testSignalCallback_setWifiIndicators() 93 ArgumentCaptor<Boolean> isTransient = ArgumentCaptor.forClass(Boolean.class); in testSignalCallback_setWifiIndicators() 129 ArgumentCaptor<Boolean> inArg = ArgumentCaptor.forClass(Boolean.class); in testSignalCallback_setMobileDataIndicators() 130 ArgumentCaptor<Boolean> outArg = ArgumentCaptor.forClass(Boolean.class); in testSignalCallback_setMobileDataIndicators() 133 ArgumentCaptor<Boolean> wideArg = ArgumentCaptor.forClass(Boolean.class); in testSignalCallback_setMobileDataIndicators()
|
/frameworks/support/core/ktx/src/main/java/androidx/core/util/ |
D | SparseBooleanArray.kt | 30 inline operator fun SparseBooleanArray.set(key: Int, value: Boolean) = put(key, value) in contains() 44 inline fun SparseBooleanArray.containsValue(value: Boolean) = indexOfValue(value) != -1 in containsKey() 47 inline fun SparseBooleanArray.getOrDefault(key: Int, defaultValue: Boolean) = get(key, defaultValue) in containsKey() 50 inline fun SparseBooleanArray.getOrElse(key: Int, defaultValue: () -> Boolean) = in containsKey() 60 fun SparseBooleanArray.remove(key: Int, value: Boolean): Boolean { in isEmpty() 74 inline fun SparseBooleanArray.forEach(action: (key: Int, value: Boolean) -> Unit) { in putAll()
|
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/ |
D | LoaderInfoTest.java | 64 Loader<Boolean> delayLoader = new DelayLoader(mock(Context.class), in testIsCallbackWaitingForData() 66 final LoaderManagerImpl.LoaderInfo<Boolean> loaderInfo = new LoaderManagerImpl.LoaderInfo<>( in testIsCallbackWaitingForData() 98 Loader<Boolean> loader = loaderCallback.onCreateLoader(0, null); in testSetCallback() 99 final LoaderManagerImpl.LoaderInfo<Boolean> loaderInfo = new LoaderManagerImpl.LoaderInfo<>( in testSetCallback() 113 Loader<Boolean> loader = initialCallback.onCreateLoader(0, null); in testSetCallback_replace() 114 LoaderManagerImpl.LoaderInfo<Boolean> loaderInfo = new LoaderManagerImpl.LoaderInfo<>( in testSetCallback_replace() 141 Loader<Boolean> loader = loaderCallback.onCreateLoader(0, null); in testMarkForRedelivery() 142 LoaderManagerImpl.LoaderInfo<Boolean> loaderInfo = new LoaderManagerImpl.LoaderInfo<>( in testMarkForRedelivery() 164 Loader<Boolean> loader = initialCallback.onCreateLoader(0, null); in testMarkForRedelivery_replace() 165 LoaderManagerImpl.LoaderInfo<Boolean> loaderInfo = new LoaderManagerImpl.LoaderInfo<>( in testMarkForRedelivery_replace() [all …]
|
/frameworks/support/webkit/src/androidTest/java/androidx/webkit/ |
D | ServiceWorkerClientCompatTest.java | 155 Callable<Boolean> registrationSuccess = new Callable<Boolean>() { in testServiceWorkerClientInterceptCallback() 157 public Boolean call() { in testServiceWorkerClientInterceptCallback() 164 Callable<Boolean> receivedRequest = new Callable<Boolean>() { in testServiceWorkerClientInterceptCallback() 166 public Boolean call() { in testServiceWorkerClientInterceptCallback() 180 Callable<Boolean> unregisterSuccess = new Callable<Boolean>() { in testServiceWorkerClientInterceptCallback() 182 public Boolean call() { in testServiceWorkerClientInterceptCallback()
|
D | WebViewCompatTest.java | 123 WebViewCompat.startSafeBrowsing(ctx, new ValueCallback<Boolean>() { in testStartSafeBrowsingUseApplicationContext() 125 public void onReceiveValue(Boolean value) { in testStartSafeBrowsingUseApplicationContext() 148 new ValueCallback<Boolean>() { in testStartSafeBrowsingInvokesCallback() 150 public void onReceiveValue(Boolean value) { in testStartSafeBrowsingInvokesCallback() 167 WebViewCompat.setSafeBrowsingWhitelist(whitelist, new ValueCallback<Boolean>() { in testSetSafeBrowsingWhitelistWithMalformedList() 169 public void onReceiveValue(Boolean success) { in testSetSafeBrowsingWhitelistWithMalformedList() 186 WebViewCompat.setSafeBrowsingWhitelist(whitelist, new ValueCallback<Boolean>() { in testSetSafeBrowsingWhitelistWithValidList() 188 public void onReceiveValue(Boolean success) { in testSetSafeBrowsingWhitelistWithValidList()
|
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/ |
D | FragmentViewLifecycleTest.java | 219 MutableLiveData<Boolean> mLiveData = new MutableLiveData<>(); 220 private Observer<Boolean> mOnCreateViewObserver = new Observer<Boolean>() { 222 public void onChanged(Boolean value) { 239 MutableLiveData<Boolean> mLiveData = new MutableLiveData<>(); 240 private Observer<Boolean> mOnCreateViewObserver = new Observer<Boolean>() { 242 public void onChanged(Boolean value) { 245 private Observer<Boolean> mOnViewCreatedObserver = new Observer<Boolean>() { 247 public void onChanged(Boolean value) { 250 private Observer<Boolean> mOnViewStateRestoredObserver = new Observer<Boolean>() { 252 public void onChanged(Boolean value) {
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | AccessibilityNodeInfoDumper.java | 105 serializer.attribute("", "NAF", Boolean.toString(true)); in dumpNodeRec() 112 serializer.attribute("", "checkable", Boolean.toString(node.isCheckable())); in dumpNodeRec() 113 serializer.attribute("", "checked", Boolean.toString(node.isChecked())); in dumpNodeRec() 114 serializer.attribute("", "clickable", Boolean.toString(node.isClickable())); in dumpNodeRec() 115 serializer.attribute("", "enabled", Boolean.toString(node.isEnabled())); in dumpNodeRec() 116 serializer.attribute("", "focusable", Boolean.toString(node.isFocusable())); in dumpNodeRec() 117 serializer.attribute("", "focused", Boolean.toString(node.isFocused())); in dumpNodeRec() 118 serializer.attribute("", "scrollable", Boolean.toString(node.isScrollable())); in dumpNodeRec() 119 serializer.attribute("", "long-clickable", Boolean.toString(node.isLongClickable())); in dumpNodeRec() 120 serializer.attribute("", "password", Boolean.toString(node.isPassword())); in dumpNodeRec() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternChecker.java | 110 AsyncTask<Void, Void, Boolean> task = new AsyncTask<Void, Void, Boolean>() { in checkPattern() 122 protected Boolean doInBackground(Void... args) { in checkPattern() 132 protected void onPostExecute(Boolean result) { in checkPattern() 230 AsyncTask<Void, Void, Boolean> task = new AsyncTask<Void, Void, Boolean>() { in checkPassword() 234 protected Boolean doInBackground(Void... args) { in checkPassword() 244 protected void onPostExecute(Boolean result) { in checkPassword()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockKeyStore.java | 40 .thenAnswer(new Answer<Boolean>() { in createMock() 43 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 51 .thenAnswer(new Answer<Boolean>() { in createMock() 54 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 61 when(mock.delete(anyString(), anyInt())).thenAnswer(new Answer<Boolean>() { in createMock() 64 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 70 when(mock.contains(anyString(), anyInt())).thenAnswer(new Answer<Boolean>() { in createMock() 73 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock()
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/preconditions/ |
D | Checks.kt | 36 fun check(predicate: Boolean, element: Element, errorMsg: String, vararg args: Any): Boolean { in check() 44 vararg args: Any): Boolean { in hasAnnotation() 54 vararg args: Any): Boolean { in notUnbound() 65 fun notBlank(value: String?, element: Element, msg: String, vararg args: Any): Boolean { in notBlank()
|
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/ |
D | CustomTypeConverterResolutionTest.kt | 230 hasCustomField: Boolean = false, in createEntity() 231 hasConverters: Boolean = false, in createEntity() 232 hasConverterOnField: Boolean = false, in createEntity() 233 useCollection: Boolean = false): TypeSpec { in createEntity() 262 hasConverters: Boolean = false, in createDatabase() 263 hasDao: Boolean = false, in createDatabase() 264 useCollection: Boolean = false): TypeSpec { in createDatabase() 290 hasConverters: Boolean = false, in createDao() 291 hasQueryReturningEntity: Boolean = false, in createDao() 292 hasQueryWithCustomParam: Boolean = false, in createDao() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 63 private static final Boolean SYSTEM = Boolean.TRUE; 64 private static final Boolean NETWORK = Boolean.FALSE; 76 private final Map<Integer, Boolean> mApps = new HashMap<>(); 137 Boolean permission = mApps.get(uid); in startMonitoring() 224 private void update(Set<Integer> users, Map<Integer, Boolean> apps, boolean add) { in update() 227 for (Entry<Integer, Boolean> app : apps.entrySet()) { in update() 271 private Boolean highestPermissionForUid(Boolean currentPermission, String name) { in highestPermissionForUid() 297 final Boolean permission = highestPermissionForUid(mApps.get(appUid), appName); in onAppAdded() 301 Map<Integer, Boolean> apps = new HashMap<>(); in onAppAdded() 312 Map<Integer, Boolean> apps = new HashMap<>(); in onAppRemoved() [all …]
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/ext/ |
D | element_ext.kt | 40 fun Element.hasAnyOf(vararg modifiers: Modifier): Boolean { in <lambda>() 44 fun Element.hasAnnotation(klass: KClass<out Annotation>): Boolean { in hasAnnotation() 111 fun TypeMirror.isCollection(): Boolean { in TypeMirror() 131 : SimpleAnnotationValueVisitor6<Boolean?, Void>() { 132 override fun visitBoolean(b: Boolean, p: Void?): Boolean? { in visitBoolean() 161 fun AnnotationValue.getAsBoolean(def: Boolean): Boolean { in getAsBoolean() 170 fun Types.isAssignableWithoutVariance(from: TypeMirror, to: TypeMirror): Boolean { in Types() 228 fun paramsMatch(ourParams: List<VariableElement>, theirParams: List<VariableElement>): Boolean { in findKotlinDefaultImpl()
|
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/testing/ |
D | TestProcessor.kt | 27 class TestProcessor(val handlers: List<(TestInvocation) -> Boolean>, 31 annotations: MutableSet<out TypeElement>, roundEnv: RoundEnvironment): Boolean { in process() 41 private var handlers = arrayListOf<(TestInvocation) -> Boolean>() 43 fun nextRunHandler(f: (TestInvocation) -> Boolean): Builder { in nextRunHandler()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkHistory.java | 200 + Boolean.toString(config.selfAdded) + NL); in writeKnownNetworkHistory() 202 + Boolean.toString(config.didSelfAdd) + NL); in writeKnownNetworkHistory() 206 + Boolean.toString(config.validatedInternetAccess) + NL); in writeKnownNetworkHistory() 208 Boolean.toString(config.noInternetAccessExpected) + NL); in writeKnownNetworkHistory() 210 + Boolean.toString(config.ephemeral) + NL); in writeKnownNetworkHistory() 212 + Boolean.toString(config.meteredHint) + NL); in writeKnownNetworkHistory() 216 + Boolean.toString(config.useExternalScores) + NL); in writeKnownNetworkHistory() 245 out.writeUTF(SHARED_KEY + SEPARATOR + Boolean.toString(config.shared) + NL); in writeKnownNetworkHistory() 292 + Boolean.toString(status.getHasEverConnected()) + NL); in writeKnownNetworkHistory() 400 config.selfAdded = Boolean.parseBoolean(value); in readNetworkHistory() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServicesTest.java | 85 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in testRecalculateBindAllowance() 99 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in testSetMemoryPressure() 120 ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); in testCalcFew()
|
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/ |
D | Version.kt | 40 fun isPatch(): Boolean = patch != 0 in isPatch() 42 fun isSnapshot(): Boolean = "-SNAPSHOT" == extra in isPatch() 44 fun isAlpha(): Boolean = extra?.toLowerCase()?.startsWith("-alpha") ?: false in isPatch() 46 fun isFinalApi(): Boolean = !isSnapshot() && !isAlpha() in isPatch()
|