/frameworks/base/core/tests/coretests/src/android/print/ |
H A D | BasePrintTest.java | 218 private void waitForCallbackCallCount(CallCounter counter, int count, String message) { argument 220 counter.waitForCount(count, OPERATION_TIMEOUT); 340 public void waitForCount(int count, long timeoutMillis) throws TimeoutException { argument 343 while (mCallCount < count) {
|
/frameworks/base/libs/androidfw/ |
H A D | LocaleData.cpp | 80 size_t count = 0; local 82 if (out != nullptr) out[count] = ancestor; 83 count++; 87 return count; 93 return count; 121 return (REPRESENTATIVE_LOCALES.count(packed_locale) != 0);
|
/frameworks/base/libs/common_time/ |
H A D | clock_recovery.cpp | 114 uint32_t count) { 116 for (uint32_t i = 1; i < count; ++i) 113 findMinRTTNdx(DisciplineDataPoint* data, uint32_t count) argument
|
/frameworks/base/libs/hwui/ |
H A D | BakedOpRenderer.cpp | 192 void BakedOpRenderer::drawRects(const float* rects, int count, const SkPaint* paint) { argument 194 vertices.reserve(count); 197 for (int index = 0; index < count; index += 4) { 217 .setMeshIndexedQuads(vertices.data(), count / 4)
|
H A D | BakedOpState.h | 45 size_t count; member in struct:android::uirenderer::MergedBakedOpList
|
H A D | DisplayListCanvas.h | 176 virtual void drawPoints(const float* points, int count, const SkPaint& paint) override; 182 virtual void drawLines(const float* points, int count, const SkPaint& paint) override; 213 virtual void drawGlyphs(const uint16_t* glyphs, const float* positions, int count, 216 virtual void drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path, 232 void drawRects(const float* rects, int count, const SkPaint* paint); 252 inline const T* refBuffer(const T* srcBuffer, int32_t count) { argument 255 T* dstBuffer = (T*) mDisplayList->allocator.alloc<T>(count * sizeof(T)); 256 memcpy(dstBuffer, srcBuffer, count * sizeof(T));
|
H A D | GradientCache.cpp | 43 uint32_t hash = JenkinsHashMix(0, count); 44 for (uint32_t i = 0; i < count; i++) { 52 int deltaInt = int(lhs.count) - int(rhs.count); 55 deltaInt = memcmp(lhs.colors.get(), rhs.colors.get(), lhs.count * sizeof(uint32_t)); 58 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float)); 108 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument 109 GradientCacheEntry gradient(colors, positions, count); 113 texture = addLinearGradient(gradient, colors, positions, count); 123 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument 146 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument [all...] |
H A D | PatchCache.cpp | 120 size_t count = mGarbage.size(); local 121 for (size_t i = 0; i < count; i++) { 137 size_t count = mGarbage.size(); local 138 for (size_t i = 0; i < count; i++) {
|
H A D | RecordingCanvas.h | 195 virtual void drawGlyphs(const uint16_t* text, const float* positions, int count, 199 virtual void drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path, 220 inline const T* refBuffer(const T* srcBuffer, int32_t count) { argument 223 T* dstBuffer = (T*) mDisplayList->allocator.alloc<T>(count * sizeof(T)); 224 memcpy(dstBuffer, srcBuffer, count * sizeof(T));
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 149 void Canvas::drawText(const uint16_t* text, int start, int count, int contextCount, argument 155 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, start, count, contextCount); 209 void Canvas::drawTextOnPath(const uint16_t* text, int count, int bidiFlags, const SkPath& path, argument 213 MinikinUtils::doLayout(&layout, &paintCopy, bidiFlags, typeface, text, 0, count, count);
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.cpp | 73 size_t count; local 74 const android::Rect* rects = safeRegion.getArray(&count); 79 FatVector<TextureVertex, 64> meshVector(count * 4); // uses heap if more than 64 vertices needed 81 for (size_t i = 0; i < count; i++) { 94 elementCount = count * 6; 96 sizeof(TextureVertex) * count * 4,
|
/frameworks/base/libs/hwui/utils/ |
H A D | LinearAllocator.cpp | 72 static void _addAllocation(int count) { argument 74 s_totalAllocations += count;
|
H A D | LinearAllocator.h | 88 T* create_trivial_array(int count) { argument 91 return reinterpret_cast<T*>(allocImpl(sizeof(T) * count)); 114 * The number of bytes used for buffers allocated in the LinearAllocator (does not count space
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
H A D | GpsStatusTest.java | 123 int count = 10; 124 generateSatellitesData(count); 129 generateSatellitesData(count); 138 int count = 25; 139 generateSatellitesData(count); 144 generateSatellitesData(count * 2); 153 int count = 25; 154 generateSatellitesData(count * 2); 159 generateSatellitesData(count); 188 int count, 186 verifySatellites( GpsStatus status, int count, int[] prns, float[] cn0s, float[] elevations, float[] azimuth, int ephemerisMask, int almanacMask, int usedInFixMask) argument 254 set( GpsStatus status, int count, int[] prns, float[] cn0s, float[] elevations, float[] azimuth, int ephemerisMask, int almanacMask, int usedInFixMask) argument 294 generateIntArray(int count) argument 308 generateFloatArray(int count) argument 327 generateSatellitesData(int count) argument 331 generateSatellitesData(int count, boolean reusePrns) argument [all...] |
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_frame.cpp | 124 const int count = size / sizeof(jint); local 125 jintArray result = env->NewIntArray(count); 126 env->SetIntArrayRegion(result, 0, count, reinterpret_cast<const jint*>(data)); 158 const int count = size / sizeof(jfloat); local 159 jfloatArray result = env->NewFloatArray(count); 160 env->SetFloatArrayRegion(result, 0, count, reinterpret_cast<const jfloat*>(data));
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | value.cpp | 48 result.count = 1; 54 Value MakePtrValue(const BASE* values, int count) { argument 57 result.value = malloc(sizeof(BASE) * count); 58 memcpy(result.value, values, sizeof(BASE) * count); 59 result.count = count; 68 value->count = 1; 78 int SetPtrValue(Value* value, const BASE* new_values, int count) { argument 81 value->value = malloc(sizeof(BASE) * count); 82 value->count 194 MakeIntArrayValue(const int* values, int count) argument 198 MakeFloatArrayValue(const float* values, int count) argument 218 SetIntArrayValue(Value* value, const int* new_values, int count) argument 222 SetFloatArrayValue(Value* value, const float* new_values, int count) argument [all...] |
/frameworks/base/native/android/ |
H A D | asset_manager.cpp | 171 int AAsset_read(AAsset* asset, void* buf, size_t count) argument 173 return asset->mAsset->read(buf, (size_t)count);
|
H A D | sensor.cpp | 154 ASensorEvent* events, size_t count) 156 ssize_t actual = static_cast<SensorEventQueue*>(queue)->read(events, count); 153 ASensorEventQueue_getEvents(ASensorEventQueue* queue, ASensorEvent* events, size_t count) argument
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardPasswordView.java | 307 public void beforeTextChanged(CharSequence s, int start, int count, int after) { argument 314 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | DocumentLoader.java | 313 void loadObjectInfoList(int count) { argument 329 for (int chunkEnd = mPosition + count;
|
/frameworks/base/packages/Osu/src/com/android/ |
H A D | MainActivity.java | 52 private static final int NOTIFICATION_ID = 0; // Used for OSU count 93 Log.d("osu", "osu count:" + osuInfos.size()); 115 showOsuCount(bundle.getInt("osu-count", 0), Collections.<OSUInfo>emptyList()); 325 private void sendNotification(int count) { argument 328 .setContentTitle(String.format("%s OSU available", count))
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_connectivity_Vpn.cpp | 134 int count = 0; local 143 count = BAD_ARGUMENT; 149 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; 156 count = BAD_ARGUMENT; 160 if (count) { 161 sprintf(ifr4.ifr_name, "%s:%d", name, count); 164 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; 171 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; 176 ++count; 179 if (count 286 int count = -1; local [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbMidiDevice.java | 120 public void onSend(byte[] msg, int offset, int count, long timestamp) throws IOException { argument 123 receiver.send(msg, offset, count, timestamp); 234 int count = mInputStreams[index].read(buffer); 235 outputReceivers[index].send(buffer, 0, count, timestamp); 273 outputStreamF.write(event.data, 0, event.count);
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | Transport.java | 231 protected abstract int ioRead(byte[] buffer, int offset, int count) argument 233 protected abstract void ioWrite(byte[] buffer, int offset, int count) argument 304 int count; 306 count = ioRead(buffer.array(), position, buffer.capacity() - position); 307 if (count < 0) { 314 position += count;
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ActivityTestMain.java | 528 void addAppRecents(int count) { argument 534 for (int i=0; i<count; i++) {
|