Home
last modified time | relevance | path

Searched refs:bound (Results 1 – 25 of 46) sorted by relevance

12

/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/testing/observations/
DConstantFakeSecureRandom.java42 public int nextInt(int bound) { in nextInt() argument
43 return (bound - 2) % bound; in nextInt()
DFakeSecureRandom.java45 public int nextInt(int bound) { in nextInt() argument
46 return (bound - 1 - mNextInt++) % bound; in nextInt()
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java301 boolean bound = bindInstrumentClusterRendererService(); in init()
303 mRendererBound = bound; in init()
456 boolean bound = service.bindInstrumentClusterRendererService(); in rebind()
458 service.mRendererBound = bound; in rebind()
461 if (!bound) { in rebind()
476 boolean bound = service.bindInstrumentClusterRendererService(); in handleMessage()
478 service.mRendererBound = bound; in handleMessage()
481 if (!bound) { in handleMessage()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/noising/
DCombinatorics.java177 int totalCap, int[] perTypeNumWindowList, int[] perTypeCapList, long bound) { in getNumStatesIterative() argument
210 if (result > bound) { in getNumStatesIterative()
234 int totalCap, int[] perTypeNumWindowList, int[] perTypeCapList, long bound) { in getNumStatesFlexApi() argument
240 return getNumStatesIterative(totalCap, perTypeNumWindowList, perTypeCapList, bound); in getNumStatesFlexApi()
245 return getNumStatesIterative(totalCap, perTypeNumWindowList, perTypeCapList, bound); in getNumStatesFlexApi()
252 return result > bound ? Long.MAX_VALUE : result; in getNumStatesFlexApi()
DImpressionNoiseUtil.java136 public static long nextLong(ThreadLocalRandom rand, long bound) { in nextLong() argument
137 return rand.nextLong(bound); in nextLong()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/
DDlcClient.java107 final boolean bound = mContext.bindService(service, mServiceConnection, in bindLocked()
110 if (bound) { in bindLocked()
120 return bound; in bindLocked()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropMath.java140 public static boolean pointInRotatedRect(float[] point, RectF bound, float rot) { in pointInRotatedRect() argument
143 m.setRotate(rot, bound.centerX(), bound.centerY()); in pointInRotatedRect()
148 return inclusiveContains(bound, p[0], p[1]); in pointInRotatedRect()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DAppWidgetManagerPermissionTest.java55 final boolean bound = mAppWidgetManager.bindAppWidgetIdIfAllowed(1, in testBindAppWidget()
57 assertFalse("Was able to call bindAppWidgetId", bound); in testBindAppWidget()
/packages/modules/adb/daemon/
Dusb.cpp261 bool bound = false; in StartMonitor() local
271 int timeout_ms = bound ? -1 : 1000; in StartMonitor()
303 if (bound) { in StartMonitor()
315 bound = true; in StartMonitor()
319 if (!bound) { in StartMonitor()
336 if (!bound) { in StartMonitor()
353 if (!bound) { in StartMonitor()
357 bound = false; in StartMonitor()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarProjectionManagerTest.java47 private static synchronized void setBound(boolean bound) { in setBound() argument
48 sBound = bound; in setBound()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxServiceProviderImpl.java101 boolean bound; in bindService()
116 bound = in bindService()
127 bound = in bindService()
136 if (!bound) { in bindService()
/packages/services/Car/service/src/com/android/car/
DCarExperimentalFeatureServiceController.java150 boolean bound = bindService(intent); in init()
151 if (!bound) { in init()
155 mBound = bound; in init()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/media/
DMediaBrowserProxyService.java97 boolean bound = false; in connect()
99 bound = mContext.bindService(intent, mServiceConnection, in connect()
105 if (!bound) { in connect()
/packages/apps/Settings/src/com/android/settings/
DAllowBindAppWidgetActivity.java63 final boolean bound = mAppWidgetManager.bindAppWidgetIdIfAllowed(mAppWidgetId, in onClick()
65 if (bound) { in onClick()
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockControllerConnectorImpl.java237 final boolean bound = mContext.bindServiceAsUser(service, mServiceConnection,
240 if (bound) {
250 return bound;
DDeviceLockServiceImpl.java934 boolean bound = bind();
936 if (bound) {
952 return bound;
/packages/services/Telecomm/src/com/android/server/telecom/
DCallDiagnosticServiceController.java379 boolean bound = bindCallDiagnosticService(mContextProxy.getCurrentUserHandle(), in maybeBindCallDiagnosticService()
381 if (!bound) { in maybeBindCallDiagnosticService()
384 return bound; in maybeBindCallDiagnosticService()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DAoapServiceManager.java136 boolean bound = mContext.bindService( in getConnectionOrNull()
138 if (bound) { in getConnectionOrNull()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/recyclerview/
DAppItemViewHolder.java484 final Rect bound = new Rect();
485 mAppIcon.getGlobalVisibleRect(bound);
486 return bound.intersect(mPageBound);
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java367 boolean bound = mContext.bindServiceAsUser(mServiceIntent, mUiServiceConnection, in startNoticeUiIfNecessary()
369 if (bound) { in startNoticeUiIfNecessary()
/packages/modules/adb/
DSOCKET-ACTIVATION.txt39 accept(2) connections and that's already bound to the desired address
/packages/services/Telecomm/proto/
Dtelecom.proto181 // The number of milliseconds that the in call service remained bound between binding and
306 // A list of the in-call services bound during the call.
/packages/modules/Wifi/service/proto/src/
Dscorecard.proto106 // Lower bound (inclusive) for values falling in this bucket.
108 // The upper bound is not stored explicitly.
/packages/apps/TV/libs/m2/
Djavapoet-1.11.1.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/squareup/ com/ ...
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp783 auto constexpr bound = std::numeric_limits<unsigned>::max(); in handleDNSRequest() local
784 if (arc4random_uniform(bound) > bound * getResponseProbability(protocol)) { in handleDNSRequest()

12