/packages/modules/Connectivity/tests/common/java/android/net/ |
D | RouteInfoTest.java | 76 RouteInfo r; in testConstructor() local 79 r = new RouteInfo((IpPrefix) null, null, "rmnet0"); in testConstructor() 84 r = new RouteInfo(Prefix("2001:db8:ace::/49"), Address("2001:db8::1"), "rmnet0", in testConstructor() 90 r = new RouteInfo(Prefix("2001:db8:ace::/49"), Address("192.0.2.1"), "rmnet0", in testConstructor() 96 r = new RouteInfo(Prefix("0.0.0.0/0"), Address("2001:db8::1"), "rmnet0", in testConstructor() 102 r = new RouteInfo((IpPrefix) null, Address("2001:db8::1"), null); in testConstructor() 103 assertEquals(Prefix("::/0"), r.getDestination()); in testConstructor() 104 assertEquals(Address("2001:db8::1"), r.getGateway()); in testConstructor() 105 assertNull(r.getInterface()); in testConstructor() 107 r = new RouteInfo((IpPrefix) null, Address("192.0.2.1"), "wlan0"); in testConstructor() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropMath.java | 42 public static float[] getCornersFromRect(RectF r) { in getCornersFromRect() argument 44 r.left, r.top, in getCornersFromRect() 45 r.right, r.top, in getCornersFromRect() 46 r.right, r.bottom, in getCornersFromRect() 47 r.left, r.bottom in getCornersFromRect() 62 public static boolean inclusiveContains(RectF r, float x, float y) { in inclusiveContains() argument 63 return !(x > r.right || x < r.left || y > r.bottom || y < r.top); in inclusiveContains() 74 RectF r = new RectF(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, in trapToRect() local 79 r.left = (x < r.left) ? x : r.left; in trapToRect() 80 r.top = (y < r.top) ? y : r.top; in trapToRect() [all …]
|
D | CropObject.java | 61 public void getInnerBounds(RectF r) { in getInnerBounds() argument 62 mBoundedRect.setToInner(r); in getInnerBounds() 65 public void getOuterBounds(RectF r) { in getOuterBounds() argument 66 mBoundedRect.setToOuter(r); in getOuterBounds() 295 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { in fixedCornerResize() argument 299 newCrop = new RectF(r.left, r.top, r.left + r.width() + dx, r.top + r.height() in fixedCornerResize() 302 newCrop = new RectF(r.right - r.width() + dx, r.top, r.right, r.top + r.height() in fixedCornerResize() 305 newCrop = new RectF(r.right - r.width() + dx, r.bottom - r.height() + dy, in fixedCornerResize() 306 r.right, r.bottom); in fixedCornerResize() 308 newCrop = new RectF(r.left, r.bottom - r.height() + dy, r.left in fixedCornerResize() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrDataManagerImpl.java | 237 for (SeriesRecording r : seriesRecordings) { in start() 239 !seriesIds.contains(r.getSeriesId()), in start() 243 + r)) { in start() 244 seriesIds.add(r.getSeriesId()); in start() 245 if (isInputAvailable(r.getInputId())) { in start() 246 mSeriesRecordings.put(r.getId(), r); in start() 247 mSeriesId2SeriesRecordings.put(r.getSeriesId(), r); in start() 249 mSeriesRecordingsForRemovedInput.put(r.getId(), r); in start() 252 if (maxId < r.getId()) { in start() 253 maxId = r.getId(); in start() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
D | DvrDataManagerInMemoryImpl.java | 89 for (SeriesRecording r : mSeriesRecordings.values()) { in getSeriesRecordings() 90 if (TextUtils.equals(r.getInputId(), inputId)) { in getSeriesRecordings() 91 result.add(r); in getSeriesRecordings() 102 for (ScheduledRecording r : temp) { in getNextScheduledStartTimeAfter() 103 if (r.getStartTimeMs() > startTime) { in getNextScheduledStartTimeAfter() 104 return r.getStartTimeMs(); in getNextScheduledStartTimeAfter() 115 for (ScheduledRecording r : temp) { in getScheduledRecordings() 116 if (r.isOverLapping(period) && r.getState() == state) { in getScheduledRecordings() 117 result.add(r); in getScheduledRecordings() 126 for (ScheduledRecording r : mScheduledRecordings.values()) { in getScheduledRecordings() [all …]
|
/packages/modules/Gki/build/ |
D | raw_img_ota.go | 119 r := &rawImageOta{} 120 r.AddProperties(&r.properties) 121 android.InitAndroidModule(r) 122 return r 125 func (r *rawImageOta) OutputFiles(tag string) (android.Paths, error) { 128 return android.Paths{r.outPayload, r.outProperties}, nil 130 return android.Paths{r.outPayload}, nil 132 return android.Paths{r.outProperties}, nil 140 func (r *rawImageOta) getCertString(ctx android.BaseModuleContext) string { 146 return proptools.String(r.properties.Certificate) [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 180 Rect r = computeLayout(); in getHit() local 185 float distX = x - r.centerX(); in getHit() 186 float distY = y - r.centerY(); in getHit() 213 boolean verticalCheck = (y >= r.top - hysteresis) in getHit() 214 && (y < r.bottom + hysteresis); in getHit() 215 boolean horizCheck = (x >= r.left - hysteresis) in getHit() 216 && (x < r.right + hysteresis); in getHit() 219 if ((Math.abs(r.left - x) < hysteresis) && verticalCheck) { in getHit() 222 if ((Math.abs(r.right - x) < hysteresis) && verticalCheck) { in getHit() 225 if ((Math.abs(r.top - y) < hysteresis) && horizCheck) { in getHit() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 30 int r,g,b, a; in rgba2yvu() local 38 r = (*image++); in rgba2yvu() 43 if (r < 0) r = 0; in rgba2yvu() 44 if (r > 255) r = 255; in rgba2yvu() 50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu() 55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu() 60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu() 75 int r,g,b; in rgb2yvu() local 83 r = (*image++); in rgb2yvu() 87 if (r < 0) r = 0; in rgb2yvu() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | Config.java | 44 Resources r = context.getResources(); in AlbumSetPage() local 46 placeholderColor = r.getColor(R.color.albumset_placeholder); in AlbumSetPage() 49 slotViewSpec.rowsLand = r.getInteger(R.integer.albumset_rows_land); in AlbumSetPage() 50 slotViewSpec.rowsPort = r.getInteger(R.integer.albumset_rows_port); in AlbumSetPage() 51 slotViewSpec.slotGap = r.getDimensionPixelSize(R.dimen.albumset_slot_gap); in AlbumSetPage() 54 paddingTop = r.getDimensionPixelSize(R.dimen.albumset_padding_top); in AlbumSetPage() 55 paddingBottom = r.getDimensionPixelSize(R.dimen.albumset_padding_bottom); in AlbumSetPage() 58 labelSpec.labelBackgroundHeight = r.getDimensionPixelSize( in AlbumSetPage() 60 labelSpec.titleOffset = r.getDimensionPixelSize( in AlbumSetPage() 62 labelSpec.countOffset = r.getDimensionPixelSize( in AlbumSetPage() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
D | StateView.java | 140 float r = sArrowHeight; in onDraw() local 144 drawHorizontalPath(w, h, r, d); in onDraw() 147 drawVerticalDownPath(w, h, r, d); in onDraw() 149 drawVerticalPath(w, h, r, d); in onDraw() 168 private void drawHorizontalPath(float w, float h, float r, float d) { in drawHorizontalPath() argument 176 mPath.lineTo(d, r); in drawHorizontalPath() 177 mPath.lineTo(0, r + d); in drawHorizontalPath() 178 mPath.lineTo(d, r + d + r); in drawHorizontalPath() 183 mPath.lineTo(w, r + d + r); in drawHorizontalPath() 184 mPath.lineTo(w - d, r + d); in drawHorizontalPath() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/data/ |
D | ScheduledRecording.java | 506 public static ContentValues toContentValues(ScheduledRecording r) { in toContentValues() argument 508 if (r.getId() != ID_NOT_SET) { in toContentValues() 509 values.put(Schedules._ID, r.getId()); in toContentValues() 511 values.put(Schedules.COLUMN_INPUT_ID, r.getInputId()); in toContentValues() 512 values.put(Schedules.COLUMN_CHANNEL_ID, r.getChannelId()); in toContentValues() 513 values.put(Schedules.COLUMN_PROGRAM_ID, r.getProgramId()); in toContentValues() 514 values.put(Schedules.COLUMN_PROGRAM_TITLE, r.getProgramTitle()); in toContentValues() 515 values.put(Schedules.COLUMN_PRIORITY, r.getPriority()); in toContentValues() 516 values.put(Schedules.COLUMN_START_TIME_UTC_MILLIS, r.getStartTimeMs()); in toContentValues() 517 values.put(Schedules.COLUMN_END_TIME_UTC_MILLIS, r.getEndTimeMs()); in toContentValues() [all …]
|
D | SeriesRecording.java | 108 public static Builder buildFrom(SeriesRecording r) { in buildFrom() argument 110 .setId(r.mId) in buildFrom() 111 .setInputId(r.getInputId()) in buildFrom() 112 .setChannelId(r.getChannelId()) in buildFrom() 113 .setPriority(r.getPriority()) in buildFrom() 114 .setTitle(r.getTitle()) in buildFrom() 115 .setDescription(r.getDescription()) in buildFrom() 116 .setLongDescription(r.getLongDescription()) in buildFrom() 117 .setSeriesId(r.getSeriesId()) in buildFrom() 118 .setStartFromEpisode(r.getStartFromEpisode()) in buildFrom() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/input/ |
D | CarInputManagerTest.java | 179 LinkedList<Pair<Integer, List<KeyEvent>>> r = in getkeyEvents() local 181 Log.i(TAG, "getKeyEvents size:" + r.size() + ",this:" + this); in getkeyEvents() 182 return r; in getkeyEvents() 188 LinkedList<Pair<Integer, List<RotaryEvent>>> r = in getRotaryEvents() local 190 Log.i(TAG, "getRotaryEvents size:" + r.size() + ",this:" + this); in getRotaryEvents() 191 return r; in getRotaryEvents() 203 LinkedList<Pair<Integer, List<CustomInputEvent>>> r = in getCustomInputEvents() local 205 Log.i(TAG, "getCustomInputEvents size:" + r.size() + ",this:" + this); in getCustomInputEvents() 206 return r; in getCustomInputEvents() 285 int r = mCarInputManager.requestInputEventCapture( in testInjectKeyEvent_mainDisplay() local [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DragShadowBuilder.java | 67 Rect r = canvas.getClipBounds(); in onDrawShadow() local 70 View.MeasureSpec.makeMeasureSpec(r.right- r.left, View.MeasureSpec.EXACTLY), in onDrawShadow() 71 View.MeasureSpec.makeMeasureSpec(r.bottom - r.top , View.MeasureSpec.EXACTLY)); in onDrawShadow() 72 mShadowView.layout(r.left, r.top, r.right, r.bottom); in onDrawShadow() 80 canvas.drawRect(r.left + mPadding, r.top + mPadding, r.right - mPadding, in onDrawShadow() 81 r.bottom - mPadding, paint); in onDrawShadow() 85 canvas.drawRect(r.left + mPadding, r.top + mPadding, r.right - mPadding, in onDrawShadow() 86 r.bottom - mPadding, paint); in onDrawShadow()
|
/packages/services/Car/tests/android_car_api_test/src/com/android/car/internal/test/ |
D | LargeParcelableJavaStableAIDLTest.java | 120 StableAIDLTestLargeParcelable r = mBinder.echo(null); in testNullParcelable() local 122 assertThat(r).isNull(); in testNullParcelable() 156 StableAIDLTestLargeParcelable r = mBinder.echo(orig); in doTestLEcho() local 157 r = (StableAIDLTestLargeParcelable) in doTestLEcho() 158 LargeParcelable.reconstructStableAIDLParcelable(r, true); in doTestLEcho() 160 assertThat(r).isNotNull(); in doTestLEcho() 161 assertThat(r.payload).isNotNull(); in doTestLEcho() 162 assertThat(r.payload).isEqualTo(payload); in doTestLEcho() 166 assertThat(r.sharedMemoryFd).isNotNull(); in doTestLEcho() 170 assertThat(r.sharedMemoryFd).isNull(); in doTestLEcho() [all …]
|
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/crypto/ |
D | E2eeCalculator.java | 137 ECPoint r = ECPoint.POINT_INFINITY; in multiplyPoint() local 143 r = addPoint(r, s); in multiplyPoint() 148 return r; in multiplyPoint() 152 private static ECPoint addPoint(ECPoint r, ECPoint s) { in addPoint() argument 153 if (r.equals(s)) { in addPoint() 154 return doublePoint(r); in addPoint() 155 } else if (r.equals(ECPoint.POINT_INFINITY)) { in addPoint() 158 return r; in addPoint() 161 r.getAffineY() in addPoint() 163 .multiply(r.getAffineX().subtract(s.getAffineX()).modInverse(P)) in addPoint() [all …]
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/common/ |
D | Scheduler.java | 52 r -> { in Scheduler() 53 Thread thread = Executors.defaultThreadFactory().newThread(r); in Scheduler() 98 public synchronized Future<?> post(NamedRunnable r) { in post() argument 103 return mExecutor.submit(new ScheduledRunnable(r, mCurrentTimeMillis).mRunnable); in post() 106 public synchronized void post(NamedRunnable r, long delayMillis) { in post() argument 110 addRunnables(new ScheduledRunnable(r, mCurrentTimeMillis + delayMillis)); in post() 122 ScheduledRunnable r = mRunnables.get(0); in advance() local 123 if (r.mTimeMillis <= mCurrentTimeMillis) { in advance() 125 mExecutor.execute(r.mRunnable); in advance() 132 private synchronized void addRunnables(ScheduledRunnable r) { in addRunnables() argument [all …]
|
/packages/services/Car/cpp/evs/support_library/ |
D | FormatConvert.cpp | 79 for (unsigned r = 0; r < height; r++) { in copyNV21toRGB32() local 81 uint8_t* rowY = srcY + r*strideLum; in copyNV21toRGB32() 82 uint8_t* rowUV = srcUV + (r/2 * strideColor); in copyNV21toRGB32() 84 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32() 114 for (unsigned r = 0; r < height; r++) { in copyYV12toRGB32() local 116 uint8_t* rowY = srcY + r*strideLum; in copyYV12toRGB32() 117 uint8_t* rowU = srcU + (r/2 * strideColor); in copyYV12toRGB32() 118 uint8_t* rowV = srcV + (r/2 * strideColor); in copyYV12toRGB32() 120 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32() 138 for (unsigned r = 0; r < height; r++) { in copyYUYVtoRGB32() local
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_framestitching.cpp | 85 double c[3],cp[3],r[3],rp[3],M[9],s,sp,sc; in db_StitchSimilarity3DRaw() local 106 r[0]=(*temp++)-c[0]; in db_StitchSimilarity3DRaw() 107 r[1]=(*temp++)-c[1]; in db_StitchSimilarity3DRaw() 108 r[2]=(*temp++)-c[2]; in db_StitchSimilarity3DRaw() 113 M[0]+=r[0]*rp[0]; in db_StitchSimilarity3DRaw() 114 M[1]+=r[0]*rp[1]; in db_StitchSimilarity3DRaw() 115 M[2]+=r[0]*rp[2]; in db_StitchSimilarity3DRaw() 116 M[3]+=r[1]*rp[0]; in db_StitchSimilarity3DRaw() 117 M[4]+=r[1]*rp[1]; in db_StitchSimilarity3DRaw() 118 M[5]+=r[1]*rp[2]; in db_StitchSimilarity3DRaw() [all …]
|
/packages/modules/Virtualization/libs/idsig/src/ |
D | apksigv4.rs | 152 pub fn from(mut r: R) -> Result<V4Signature<R>> { in from() 154 version: Version::from(r.read_u32::<LittleEndian>()?)?, in from() 155 hashing_info: HashingInfo::from(&mut r)?, in from() 156 signing_info: SigningInfo::from(&mut r)?, in from() 157 merkle_tree_size: r.read_u32::<LittleEndian>()?, in from() 158 merkle_tree_offset: r.stream_position()?, in from() 159 data: r, in from() 231 fn from(mut r: &mut dyn Read) -> Result<HashingInfo> { in from() 234 r.read_u32::<LittleEndian>()?; in from() 236 hash_algorithm: HashAlgorithm::from(r.read_u32::<LittleEndian>()?)?, in from() [all …]
|
/packages/modules/Bluetooth/system/bta/has/ |
D | has_journal.cc | 25 std::ostream& operator<<(std::ostream& os, const HasJournalRecord& r) { in operator <<() argument 30 struct tm* tstamp = localtime(&r.timestamp.tv_sec); in operator <<() 33 r.timestamp.tv_nsec / 1000000); in operator <<() 36 if (r.is_operation) { in operator <<() 37 os << std::get<HasCtpOp>(r.event); in operator <<() 38 os << ", \"status\": \"" << loghex(r.op_status) << "\""; in operator <<() 40 } else if (r.is_notification) { in operator <<() 41 os << std::get<HasCtpNtf>(r.event) << ", "; in operator <<() 43 } else if (r.is_active_preset_change) { in operator <<() 45 << +std::get<uint8_t>(r.event) << "}"; in operator <<() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ScanRequestProxy.java | 602 return mLastScanResultsMap.values().stream().anyMatch(r -> in isWpa2PersonalOnlyNetworkInRange() 603 TextUtils.equals(ssid, r.getWifiSsid().toString()) in isWpa2PersonalOnlyNetworkInRange() 604 && ScanResultUtil.isScanResultForPskNetwork(r) in isWpa2PersonalOnlyNetworkInRange() 605 && !ScanResultUtil.isScanResultForSaeNetwork(r)); in isWpa2PersonalOnlyNetworkInRange() 610 return mLastScanResultsMap.values().stream().anyMatch(r -> in isWpa3PersonalOnlyNetworkInRange() 611 TextUtils.equals(ssid, r.getWifiSsid().toString()) in isWpa3PersonalOnlyNetworkInRange() 612 && ScanResultUtil.isScanResultForSaeNetwork(r) in isWpa3PersonalOnlyNetworkInRange() 613 && !ScanResultUtil.isScanResultForPskNetwork(r)); in isWpa3PersonalOnlyNetworkInRange() 618 return mLastScanResultsMap.values().stream().anyMatch(r -> in isWpa2Wpa3PersonalTransitionNetworkInRange() 619 TextUtils.equals(ssid, ScanResultUtil.createQuotedSsid(r.SSID)) in isWpa2Wpa3PersonalTransitionNetworkInRange() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | CountedDataInputStream.java | 46 int r = in.read(b); in read() local 47 count += (r >= 0) ? r : 0; in read() 48 return r; in read() 53 int r = in.read(b, off, len); in read() local 54 count += (r >= 0) ? r : 0; in read() 55 return r; in read() 60 int r = in.read(); in read() local 61 count += (r >= 0) ? 1 : 0; in read() 62 return r; in read() 86 int r = read(b, off, len); in readOrThrow() local [all …]
|
/packages/services/Car/cpp/evs/apps/default/ |
D | FormatConvert.cpp | 76 for (unsigned r = 0; r < height; r++) { in copyNV21toRGB32() local 78 uint8_t* rowY = srcY + r*strideLum; in copyNV21toRGB32() 79 uint8_t* rowUV = srcUV + (r/2 * strideColor); in copyNV21toRGB32() 81 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32() 111 for (unsigned r = 0; r < height; r++) { in copyYV12toRGB32() local 113 uint8_t* rowY = srcY + r*strideLum; in copyYV12toRGB32() 114 uint8_t* rowU = srcU + (r/2 * strideColor); in copyYV12toRGB32() 115 uint8_t* rowV = srcV + (r/2 * strideColor); in copyYV12toRGB32() 117 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32() 135 for (unsigned r = 0; r < height; r++) { in copyYUYVtoRGB32() local
|
/packages/modules/DnsResolver/tests/ |
D | resolv_tls_unit_test.cpp | 130 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F() local 132 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F() 133 EXPECT_EQ(QUERY, r.response); in TEST_F() 169 DnsTlsTransport::Result r = f.get(); in TEST_F() local 170 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F() 174 EXPECT_EQ(0, (r.response[2] << 8) | r.response[3]); in TEST_F() 192 auto r = result.get(); in TEST_F() local 193 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F() 194 EXPECT_EQ(QUERY, r.response); in TEST_F() 262 auto r = result.get(); in TEST_F() local [all …]
|