/external/adhd/cras/src/tests/ |
shm_unittest.cc | 19 shm_.area = 21 calloc(1, sizeof(*shm_.area) + 2048)); 24 memcpy(&shm_.area->config, &shm_.config, sizeof(shm_.config)); 30 free(shm_.area); 43 EXPECT_EQ(0, shm_.area->read_offset[0]); 48 shm_.area->write_offset[0] = 100 * shm_.area->config.frame_bytes; 51 EXPECT_EQ(shm_.area->samples, buf_); 53 EXPECT_EQ((frames_ - 9) * shm_.config.frame_bytes, shm_.area->read_offset[0]); 55 EXPECT_EQ(0, shm_.area->read_offset[0]) [all...] |
cras_client_unittest.cc | 53 shm->area = static_cast<cras_audio_shm_area*>( 54 calloc(1, sizeof(*shm->area))); 57 memcpy(&shm->area->config, &shm->config, sizeof(shm->config)); 61 if (shm->area) { 62 free(shm->area); 63 shm->area = NULL; 134 shm->area->write_buf_idx = 0; 135 shm->area->read_buf_idx = 0; 136 shm->area->write_offset[0] = 480 * 4; 137 shm->area->read_offset[0] = 0 174 struct cras_audio_shm_area area; local 225 struct cras_audio_shm_area area; local [all...] |
/external/adhd/cras/src/common/ |
cras_shm.h | 19 /* Configuration of the shm area. 21 * used_size - The size in bytes of the sample area being actively used. 46 * samples - Audio data - a double buffered area that is used to exchange 64 /* Structure that holds the config for and a pointer to the audio shm area. 67 * area - Acutal shm region that is shared. 71 struct cras_audio_shm_area *area; member in struct:cras_audio_shm 80 return shm->area->samples + shm->config.used_size * idx; 113 unsigned i = shm->area->read_buf_idx & CRAS_SHM_BUFFERS_MASK; 117 cras_shm_check_read_offset(shm, shm->area->read_offset[i]); 119 cras_shm_check_write_offset(shm, shm->area->write_offset[i]) 340 struct cras_audio_shm_area *area = shm->area; local 374 struct cras_audio_shm_area *area = shm->area; local [all...] |
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/ |
VehiclePropConfigBuilder.java | 56 for (VehicleAreaConfig area : propConfig.areaConfigs) { 58 newArea.areaId = area.areaId; 59 newArea.minInt32Value = area.minInt32Value; 60 newArea.maxInt32Value = area.maxInt32Value; 61 newArea.minInt64Value = area.minInt64Value; 62 newArea.maxInt64Value = area.maxInt64Value; 63 newArea.minFloatValue = area.minFloatValue; 64 newArea.maxFloatValue = area.maxFloatValue; 99 VehicleAreaConfig area = new VehicleAreaConfig(); local 100 area.areaId = areaId 109 VehicleAreaConfig area = new VehicleAreaConfig(); local [all...] |
/external/valgrind/none/tests/linux/ |
mremap3.c | 15 perror ("initial area"); 21 void *area = mmap(initial_area, 4096, PROT_READ|PROT_WRITE, local 23 if (area == MAP_FAILED) 24 perror ("area"); 25 if (area != initial_area) 27 printf("area= %p\n", area); 28 strcpy(area, "Hello World"); 31 void *a2 = mremap(area, 4096, 40960, 0); 36 printf("FAILED : was expecting to get back the same area increased\n") [all...] |
/external/adhd/cras/src/server/ |
cras_audio_area.c | 15 struct cras_audio_area *area; local 18 sz = sizeof(*area) + num_channels * sizeof(struct cras_channel_area); 19 area = calloc(1, sz); 20 area->num_channels = num_channels; 22 return area; 62 void cras_audio_area_destroy(struct cras_audio_area *area) 64 free(area); 67 void cras_audio_area_config_channels(struct cras_audio_area *area, 80 channel_area_set_channel(area->channels, CRAS_CH_FL); 81 channel_area_set_channel(area->channels, CRAS_CH_FR) [all...] |
cras_audio_area.h | 14 * Descriptor of the memory area holding a channel of audio. 16 * ch_set - Bit set of channels this channel area could map to. 18 * buf - A pointer to the start address of this area. 27 * Descriptor of the memory area that provides various access to audio channels. 30 * num_channels - The number of channels in the audio area. 40 * Sets the channel bit for a channel area. 42 * ca - the channel area to set channel bit set. 43 * channel - the channel bit to add to the channel area. 55 * num_channels - The number of channels in the audio area. 62 * dst - The destination audio area [all...] |
/external/dng_sdk/source/ |
dng_tile_iterator.h | 55 const dng_rect &area); 58 const dng_rect &area); 61 const dng_rect &area); 68 const dng_rect &area);
|
dng_image.h | 278 /// Copy image data from an area of one image to same area of another. 280 /// \param area Rectangle of images to copy. 286 const dng_rect &area, 291 /// Copy image data from an area of one image to same area of another. 293 /// \param area Rectangle of images to copy. 298 const dng_rect &area, 303 CopyArea (src, area, plane, plane, planes); 307 /// Return true if the contents of an area of the image are the same as those of another [all...] |
dng_tile_iterator.cpp | 27 const dng_rect &area) 45 area & image.Bounds ()); 52 const dng_rect &area) 69 dng_rect tile (area); 75 area); 82 const dng_rect &area) 100 area); 107 const dng_rect &area) 110 fArea = area; 112 if (area.IsEmpty () [all...] |
dng_area_task.cpp | 97 dng_point dng_area_task::FindTileSize (const dng_rect &area) const 106 repeatingTile1 = area; 111 repeatingTile2 = area; 116 repeatingTile3 = area; 137 // repeat area. This makes the areas more equal in size, making MP 186 const dng_rect &area, 197 repeatingTile1 = area; 202 repeatingTile2 = area; 207 repeatingTile3 = area; 212 dng_tile_iterator iter1 (repeatingTile3, area); [all...] |
dng_area_task.h | 61 /// Getter for minimum area of a partitioned rectangle. 64 /// area for partitioning. Default is 256x256 pixels. 66 /// \retval Minimum area for a partitoned tile in order to give performant operation. (Partitions can be smaller due to small inputs and edge cases.) 88 /// \retval Maximum tile size allowed for this area task. 138 /// Process one tile or fully partitioned area. 145 /// \param tile Area to process. 160 /// \param area Computation area for which to find tile size. 163 dng_point FindTileSize (const dng_rect &area) const; 166 /// Called after thread partitioning has already been done. Area may be further subdivided to handle maximum tile size, etc [all...] |
/external/ImageMagick/www/source/ |
analyze.c | 89 area, 146 area=0.0; 182 area++; 187 if (area <= 0.0) 189 brightness_mean=brightness_sum_x/area; 192 brightness_standard_deviation=sqrt(brightness_sum_x2/area-(brightness_sum_x/ 193 area*brightness_sum_x/area)); 198 brightness_kurtosis=(brightness_sum_x4/area-4.0*brightness_mean* 199 brightness_sum_x3/area+6.0*brightness_mean*brightness_mean 87 area, local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
DarkIconDispatcher.java | 69 * @return true if more than half of the {@param view} area are in {@param area}, false 72 static boolean isInArea(Rect area, View view) { 73 if (area.isEmpty()) { 76 sTmpRect.set(area); 80 int intersectStart = Math.max(left, area.left); 81 int intersectEnd = Math.min(left + view.getWidth(), area.right); 84 boolean coversFullStatusBar = area.top <= 0; 90 void onDarkChanged(Rect area, float darkIntensity, int tint);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
ProgressOverlay.java | 57 public void setBounds(RectF area) { 58 if (area.width() > 0 && area.height() > 0) { 60 params.width = (int) area.width(); 61 params.height= (int) area.height(); 62 params.setMargins((int) area.left, (int) area.top, 0, 0);
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
RegionVerifier.java | 47 Rect area = subRegionVerifier.region.getBounds(); local 49 subRegionVerifier.verifier, area); 52 Rect area = new Rect(); local 53 while (iter.next(area)) { 55 subRegionVerifier.verifier, area); 68 public RegionVerifier addVerifier(Rect area, BitmapVerifier verifier) { 69 return addVerifier(new Region(area), verifier); 72 public RegionVerifier addVerifier(Region area, BitmapVerifier verifier) { 73 mRegionVerifiers.add(new SubRegionVerifiers(area, verifier));
|
/frameworks/base/libs/hwui/tests/unit/ |
ClipAreaTests.cpp | 33 ClipArea area; local 34 area.setViewportDimensions(kViewportBounds.getWidth(), kViewportBounds.getHeight()); 35 return area; 89 ClipArea area(createClipArea()); 90 EXPECT_FALSE(area.isEmpty()); 94 ClipArea area(createClipArea()); 98 area.clipPathWithTransform(path, &Matrix4::identity(), SkRegion::kIntersect_Op); 99 EXPECT_FALSE(area.isEmpty()); 100 EXPECT_FALSE(area.isSimple()); 101 EXPECT_FALSE(area.isRectangleList()) [all...] |
/external/ImageMagick/filters/ |
analyze.c | 89 area, 146 area=0.0; 183 area++; 188 if (area <= 0.0) 190 brightness_mean=brightness_sum_x/area; 194 brightness_standard_deviation=sqrt(brightness_sum_x2/area-(brightness_sum_x/ 195 area*brightness_sum_x/area)); 201 brightness_kurtosis=(brightness_sum_x4/area-4.0*brightness_mean* 202 brightness_sum_x3/area+6.0*brightness_mean*brightness_mean 87 area, local [all...] |
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
CarPropertyManager.java | 252 public boolean isPropertyAvailable(int propId, int area) throws CarNotConnectedException { 254 CarPropertyValue propValue = mService.getProperty(propId, area); 259 + ", propId: 0x" + toHexString(propId) + ", area: 0x" + toHexString(area), e); 268 * @param area Area of the property to get 270 public boolean getBooleanProperty(int prop, int area) throws CarNotConnectedException { 271 CarPropertyValue<Boolean> carProp = getProperty(Boolean.class, prop, area); 279 * @param area Area of the property to ge [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
SizeAreaComparator.java | 28 * Comparator for api1 {@link Camera.Size} objects by the area. 30 * <p>This comparator totally orders by rectangle area. Tie-breaks on width.</p> 48 long area = width * size.height; local 51 if (area == area2) { 55 return (area > area2) ? 1 : -1; 59 * Get the largest api1 {@code Camera.Size} from the list by comparing each size's area
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
SizeAreaComparator.java | 28 * Comparator for {@link Size} objects by the area. 30 * <p>This comparator totally orders by rectangle area. Tie-breaks on width.</p> 47 long area = width * size.getHeight(); local 50 if (area == area2) { 54 return (area > area2) ? 1 : -1; 58 * Get the largest {@code Size} from the list by comparing each size's area
|
/external/ImageMagick/Magick++/lib/Magick++/ |
ResourceLimits.h | 21 static void area(const MagickSizeType limit_); 22 static MagickSizeType area(void);
|
/external/libxcam/modules/ocl/ |
cl_blender.cpp | 73 CLBlender::set_input_merge_area (const Rect &area, uint32_t index) 75 Rect tmp_area = area; 82 XCAM_ASSERT (fabs((int32_t)(area.width - get_merge_window ().width)) < XCAM_CL_BLENDER_ALIGNMENT_X); 133 Rect area; local 134 area.width = in0_info.width; 135 area.height = in0_info.height; 136 set_input_valid_area (area, 0); 139 Rect area; local 140 area.width = in1_info.width; 141 area.height = in1_info.height 157 Rect area; local [all...] |
/external/tensorflow/tensorflow/examples/android/jni/object_tracking/ |
sprite.h | 38 Sprite(const Image<uint8_t>& image, const BoundingBox* const area) { 39 LoadTexture(image, area); 105 const BoundingBox* const area) { 115 if (area != NULL) { 117 left = area->left_; 118 top = area->top_; 119 actual_width_ = area->GetWidth(); 120 actual_height_ = area->GetHeight();
|
/packages/apps/Camera2/src/com/android/camera/util/ |
AspectRatio.java | 168 * @return The largest centered region of area with this aspect ratio. For 172 public Rect getLargestCenterCrop(Size area) { 173 AspectRatio original = of(area); 177 int cropHeight = area.width() * mHeight / mWidth; 178 int cropTop = (area.height() - cropHeight) / 2; 181 int cropRight = area.width(); 185 int cropWidth = area.height() * mWidth / mHeight; 186 int cropLeft = (area.width() - cropWidth) / 2; 189 int cropBottom = area.height();
|