/aosp14/system/core/fastboot/device/ |
H A D | usb.cpp | 133 aio_block* aiob = read ? &h->read_aiob : &h->write_aiob; in usb_ffs_do_aio() 135 int num_bufs = len / h->io_size + (len % h->io_size == 0 ? 0 : 1); in usb_ffs_do_aio() 199 h->bulk_out.reset(); in usb_ffs_close() 200 h->bulk_in.reset(); in usb_ffs_close() 203 h->lock.lock(); in usb_ffs_close() 205 h->lock.unlock(); in usb_ffs_close() 206 h->notify.notify_one(); in usb_ffs_close() 208 exit_io_uring_ffs(h); in usb_ffs_close() 248 h->io_size = io_size; in create_usb_handle() 249 h->close = usb_ffs_close; in create_usb_handle() [all …]
|
H A D | usb_iouring.cpp | 69 const aio_block* aiob = read ? &h->read_aiob : &h->write_aiob; in usb_ffs_do_aio() 70 const int num_requests = DivRoundup<int>(len, h->io_size); in usb_ffs_do_aio() 85 const int ret = io_uring_submit(&h->ring); in usb_ffs_do_aio() 110 io_uring_cqe_seen(&h->ring, cqe); in usb_ffs_do_aio() 119 return usb_ffs_do_aio<true>(h, data, len); in usb_ffs_io_uring_read() 123 return usb_ffs_do_aio<false>(h, data, len); in usb_ffs_io_uring_write() 126 void exit_io_uring_ffs(usb_handle* h) { in exit_io_uring_ffs() argument 127 io_uring_queue_exit(&h->ring); in exit_io_uring_ffs() 130 bool init_io_uring_ffs(usb_handle* h, size_t queue_depth) { in init_io_uring_ffs() argument 137 h->write = usb_ffs_io_uring_write; in init_io_uring_ffs() [all …]
|
H A D | usb_client.cpp | 189 static void CloseFunctionFs(usb_handle* h) { in CloseFunctionFs() argument 190 h->bulk_in.reset(); in CloseFunctionFs() 191 h->bulk_out.reset(); in CloseFunctionFs() 192 h->control.reset(); in CloseFunctionFs() 195 static bool InitFunctionFs(usb_handle* h) { in InitFunctionFs() argument 201 if (h->control < 0) { in InitFunctionFs() 222 if (h->bulk_out < 0) { in InitFunctionFs() 228 if (h->bulk_in < 0) { in InitFunctionFs() 233 h->read_aiob.fd = h->bulk_out.get(); in InitFunctionFs() 234 h->write_aiob.fd = h->bulk_in.get(); in InitFunctionFs() [all …]
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | Half.java | 377 return halfToIntBits(h); in hashCode() 417 return (h & FP16.EXPONENT_SIGNIFICAND_MASK) > FP16.POSITIVE_INFINITY ? NaN : h; in halfToShortBits() 436 return (h & FP16.EXPONENT_SIGNIFICAND_MASK) > FP16.POSITIVE_INFINITY ? NaN : h & 0xffff; in halfToIntBits() 454 return h & 0xffff; in halfToRawIntBits() 526 return FP16.rint(h); in round() 546 return FP16.ceil(h); in ceil() 566 return FP16.floor(h); in floor() 585 return FP16.trunc(h); in trunc() 746 return FP16.isNaN(h); in isNaN() 779 return FP16.toFloat(h); in toFloat() [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | HashCodeHelpers.java | 49 int h = 1; in hashCode() local 52 h = ((h << 5) - h) ^ x; // (h * 31) XOR x in hashCode() 55 return h; in hashCode() 72 int h = 1; in hashCode() local 75 h = ((h << 5) - h) ^ x; // (h * 31) XOR x in hashCode() 78 return h; in hashCode() 95 int h = 1; in hashCodeGeneric() local 98 h = ((h << 5) - h) ^ x; // (h * 31) XOR x in hashCodeGeneric() 101 return h; in hashCodeGeneric()
|
/aosp14/system/core/libcutils/ |
H A D | native_handle.cpp | 54 if (!h) return 0; in close_internal() 58 const int numFds = h->numFds; in close_internal() 63 tag = get_fdsan_tag(h); in close_internal() 108 if (h) { in native_handle_create() 109 h->version = sizeof(native_handle_t); in native_handle_create() 110 h->numFds = numFds; in native_handle_create() 111 h->numInts = numInts; in native_handle_create() 113 return h; in native_handle_create() 144 int native_handle_delete(native_handle_t* h) { in native_handle_delete() argument 145 if (h) { in native_handle_delete() [all …]
|
H A D | hashmap.cpp | 84 int h = map->hash(key); in hashKey() local 88 h += ~(h << 9); in hashKey() 89 h ^= (((unsigned int) h) >> 14); in hashKey() 90 h += (h << 4); in hashKey() 91 h ^= (((unsigned int) h) >> 10); in hashKey() 93 return h; in hashKey() 159 int h = keySize; in hashmapHash() local 163 h = h * 31 + *data; in hashmapHash() 166 return h; in hashmapHash()
|
/aosp14/frameworks/base/core/java/com/android/internal/colorextraction/types/ |
H A D | Tonal.java | 152 float[] h = fit(palette.h, hsl[0], fitIndex, in runTonalExtraction() local 332 FIT_WEIGHT_H * Math.abs(h - palette.h[i]) in bestFit() 359 if (h >= candidate.minHue && h <= candidate.maxHue) { in findTonalPalette() 364 if (candidate.maxHue > 1.0f && h >= 0.0f && h <= fract(candidate.maxHue)) { in findTonalPalette() 369 if (candidate.minHue < 0.0f && h >= fract(candidate.minHue) && h <= 1.0f) { in findTonalPalette() 374 if (h <= candidate.minHue && candidate.minHue - h < error) { in findTonalPalette() 377 } else if (h >= candidate.maxHue && h - candidate.maxHue < error) { in findTonalPalette() 400 public final float[] h; field in Tonal.TonalPalette 412 this.h = h; in TonalPalette() 419 for (float v : h) { in TonalPalette() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/rubidium/assets/ |
H A D | rubidium_scoring_logic_compiled.js | 15 g)&&t(k[g],this.h)};b.prototype.delete=function(k){return d(k)&&t(k,g)&&t(k[g],this.h)?delete k[g][… 16 …h={};return h.v=h.next=h.head=h}function c(h,k){var l=h.h;return fa(function(){if(l){for(;l.head!=… argument 17 …h){this.i={};this.h=b();this.size=0;if(h){h=p(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(… argument 18 …h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.i[l.id]=[]);l.l?l.l.value=k:(l.l={next:this.… argument 19 …h=this.h.v=b();this.size=0};f.prototype.has=function(h){return!!d(this,h).l};f.prototype.get=funct… argument 22 …h.set(c,c);this.size=this.h.size;return this};b.prototype.delete=function(c){c=this.h.delete(c);th… 32 …h||(a.h=a.j[a.i+a.A]={})}function L(a,b,c){return-1===b?null:b>=a.i?a.h?a.h[b]:void 0:c&&a.h&&(c=a… 37 …h=Za(a,c,3,d,e);if(g)e||(Object.isFrozen(g)?f||(g=Array.prototype.slice.call(g),a.m[c]=g):f&&Objec… 42 …h=e;this.i=d-this.A;break a}void 0!==b&&-1<b?(this.i=Math.max(b,d+1-this.A),this.h=void 0):this.i=… 54 …h=g.next();!h.done;h=g.next())h=h.value,c.set(Q(h,1),h);d=p(U(d,Cb,2));for(g=d.next();!g.done;g=d.… [all …]
|
H A D | turtledove_parametrized_generateBid.js | 15 h.prototype.delete=function(k){return c(k)&&u(k,g)&&u(k[g],this.M)?delete k[g][this.M]:!1};return h… 17 …h){h=r(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}};c.prototype.set=function(h… argument 18 …h){return!!d(this,h).j};c.prototype.get=function(h){return(h=d(this,h).j)&&h.value};c.prototype.en… argument 19 h.call(k,m[1],m[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(h,k){var … argument 34 …h||(a.h={});var f=a.h[c];if(f)d=f;else{var h=D(a,c,g);b=Sa(h,b,d);void 0==b?d=f:(d&&b.g!==h&&E(a,c… 35 h=h||C(p);p=Sa(p,b);void 0!==p&&(k.push(p),l&&Ha(p.g))}a.h[c]=k;Ia(g,!h)}b=l||f;f=C(k);b&&!f&&(Obje… 41 …&&Ja(g))for(h in g){var f=+h;Number.isNaN(f)?bb(c)[h]=g[h]:kb(this,c,f,g[h],b,a)}else kb(this,c,e-… 100 …h=f.value;e=L(h,3);if(f=d?g.values().next().value:g.get(I(h,1,""))){a:{b=a;f=G(f,2);h=G(h,2);if(f.… variable 103 …h={Ja:null!=(f=null==g?void 0:W(g))?f:void 0,T:new Map,O:new Map,R:new Map,S:new Map,Z:new Map,int… class in uc 108 …h=void 0;if(null==(f=b)?0:null==(h=W(f))?0:J(h,7)){var k=h=f=void 0,l=void 0,m=void 0,p=void 0;g.H… [all …]
|
H A D | turtledove_generate_bid.js | 16 h.prototype.delete=function(l){return c(l)&&u(l,g)&&u(l[g],this.M)?delete l[g][this.M]:!1};return h… 18 …h){h=r(h);for(var l;!(l=h.next()).done;)l=l.value,this.set(l[0],l[1])}};c.prototype.set=function(h… argument 19 …h){return!!d(this,h).j};c.prototype.get=function(h){return(h=d(this,h).j)&&h.value};c.prototype.en… argument 20 h.call(l,m[1],m[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(h,l){var … argument 35 …h||(a.h={});var f=a.h[c];if(f)d=f;else{var h=db(a,c,g);b=Ta(h,b,d);void 0==b?d=f:(d&&b.g!==h&&D(a,… 41 …&&Ka(g))for(h in g){var f=+h;Number.isNaN(f)?cb(c)[h]=g[h]:nb(this,c,f,g[h],b,a)}else nb(this,c,e-… 103 …h=f.value;e=J(h,3);if(f=d?g.values().next().value:g.get(G(h,1,""))){a:{b=a;f=F(f,2);h=F(h,2);if(f.… variable 106 …h={Ja:null!=(f=null==g?void 0:T(g))?f:void 0,T:new Map,O:new Map,R:new Map,S:new Map,Z:new Map,int… class in yc 107 h.R&&lc(e,e.I.V(),h.R),h.S&&lc(e,e.I.U(),h.S),h.Z&&lc(e,e.I.X(),h.Z)}e=new Map;if(g)for(d=r(N(g,Ob,… 111 …h=void 0;if(null==(f=b)?0:null==(h=T(f))?0:I(h,7)){var l=h=f=void 0,k=void 0,m=void 0,q=void 0;g.H… [all …]
|
H A D | rubidium_bidding_logic_compiled.js | 14 …h="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var g=0;b.prototype… 15 h)&&ta(k[h],this.h)};b.prototype.delete=function(k){return d(k)&&ta(k,h)&&ta(k[h],this.h)?delete k[… 22 …h){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.h.set(c,c);this.size=this.h.… 32 …;Array.isArray(e)||(e=gb);var h=v(e);h&1||$a(e);if(f)h&2||u(e,2),c&1||Object.freeze(e);else{f=!(c&… 36 …h=xb(a,c,3,void 0,f);if(e)f||(Object.isFrozen(e)?d||(e=Array.prototype.slice.call(e),a.o[c]=e):d&&… 39 …h;f&&d.push(f);0!==(v(c)&128)&&jb(d);b=b||w(a.i)?cb:bb;f=a.constructor;pb=d;d=new f(d);pb=void 0;a… 41 …h=e;this.u=d-this.H;break a}void 0!==b&&-1<b?(this.u=Math.max(b,d+1-this.H),this.h=void 0):this.u=… 57 …h){var g=null,k=null,l=null;if(h&&(R(H(h,Zd,12),1)||R(H(h,Zd,12),2))){var n=new le;var t=G(n,2,0,0… argument 67 …h=new Gc;h=G(h,1,b.renderUrl,"");h=G(h,2,b.D,"");h=G(h,3,b.G,"");h=G(h,4,b.L,"");h=G(h,12,b.l,0);h… 68 h.value,ib(k),xb(k,15,2,!1,!1).push(h);M(d,1,e);void 0!==f&&G(a,5,f,0);Object.values(we).includes(c… [all …]
|
/aosp14/frameworks/base/tests/testables/tests/src/android/testing/ |
H A D | TestableLooperTest.java | 58 h.post(r); in testMessageExecuted() 74 h.post(r); in testMessageCallback() 88 h.post(r); in testProcessNumberOfMessages() 89 h.post(r); in testProcessNumberOfMessages() 90 h.post(r); in testProcessNumberOfMessages() 125 h.post(r); in testProcessAllMessages_2Messages() 126 h.post(r2); in testProcessAllMessages_2Messages() 247 h.post(r); in testProcessMessagesNonBlocking_onlyArgNumber() 248 h.post(r); in testProcessMessagesNonBlocking_onlyArgNumber() 249 h.post(r); in testProcessMessagesNonBlocking_onlyArgNumber() [all …]
|
/aosp14/system/core/libutils/abi-dumps/arm_arm64/source-based/ |
H A D | libutils.so.lsdump | 19 "source_file" : "system/core/libutils/include/utils/String16.h" 28 "source_file" : "system/core/libutils/include/utils/Printer.h" 37 "source_file" : "system/logging/liblog/include_vndk/log/log_read.h" 46 "source_file" : "system/core/libsystem/include/system/graphics.h" 53 "source_file" : "system/core/libsystem/include/system/graphics.h" 1978 "source_file" : "system/core/libutils/include/utils/Timers.h", 3915 "source_file" : "system/core/libutils/include/utils/Mutex.h", 4369 "source_file" : "system/core/libutils/include/utils/misc.h" 5679 "source_file" : "system/core/libutils/include/utils/misc.h" 5694 "source_file" : "system/core/libutils/include/utils/misc.h" [all …]
|
/aosp14/system/core/libutils/abi-dumps/arm64/source-based/ |
H A D | libutils.so.lsdump | 19 "source_file" : "system/core/libutils/include/utils/String16.h" 28 "source_file" : "system/core/libutils/include/utils/Printer.h" 37 "source_file" : "system/logging/liblog/include_vndk/log/log_read.h" 46 "source_file" : "system/core/libsystem/include/system/graphics.h" 53 "source_file" : "system/core/libsystem/include/system/graphics.h" 1982 "source_file" : "system/core/libutils/include/utils/Timers.h", 3919 "source_file" : "system/core/libutils/include/utils/Mutex.h", 4373 "source_file" : "system/core/libutils/include/utils/misc.h" 5683 "source_file" : "system/core/libutils/include/utils/misc.h" 5698 "source_file" : "system/core/libutils/include/utils/misc.h" [all …]
|
/aosp14/system/core/init/ |
H A D | firmware_handler_test.cpp | 107 ExternalFirmwareHandler h("/dev/path/a.bin", getuid(), "/test"); in TEST() local 108 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST() 109 ASSERT_FALSE(h.match("/dev/path/a.bi")); in TEST() 112 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST() 113 ASSERT_TRUE(h.match("/dev/path/a.bix")); in TEST() 114 ASSERT_FALSE(h.match("/dev/path/b.bin")); in TEST() 116 h = ExternalFirmwareHandler("/dev/*/a.bin", getuid(), "/test"); in TEST() 117 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST() 118 ASSERT_TRUE(h.match("/dev/other/a.bin")); in TEST() 119 ASSERT_FALSE(h.match("/dev/other/c.bin")); in TEST() [all …]
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | MessageQueue.java | 605 if (h == null) { in hasMessages() 622 if (h == null) { in hasEqualMessages() 640 if (h == null) { in hasMessages() 656 boolean hasMessages(Handler h) { in hasMessages() argument 657 if (h == null) { in hasMessages() 664 if (p.target == h) { in hasMessages() 674 if (h == null) { in removeMessages() 708 if (h == null) { in removeEqualMessages() 811 if (h == null) { in removeCallbacksAndMessages() 844 if (h == null) { in removeCallbacksAndEqualMessages() [all …]
|
H A D | Registrant.java | 28 Registrant(Handler h, int what, Object obj) in Registrant() argument 30 refH = new WeakReference(h); in Registrant() 76 Handler h = getHandler(); in internalNotifyRegistrant() local 78 if (h == null) { in internalNotifyRegistrant() 85 h.sendMessage(msg); in internalNotifyRegistrant() 97 Handler h = getHandler(); in messageForRegistrant() local 99 if (h == null) { in messageForRegistrant() 104 Message msg = h.obtainMessage(); in messageForRegistrant()
|
H A D | RegistrantList.java | 34 add(Handler h, int what, Object obj) in add() argument 36 add(new Registrant(h, what, obj)); in add() 41 addUnique(Handler h, int what, Object obj) in addUnique() argument 44 remove(h); in addUnique() 45 add(new Registrant(h, what, obj)); in addUnique() 126 remove(Handler h) in remove() argument 137 if (rh == null || rh == h) { in remove()
|
/aosp14/frameworks/base/tests/CoreTests/android/core/ |
H A D | HttpHeaderTest.java | 49 Headers h = new Headers(); in testCacheControl() local 53 h.parseHeader(buffer); in testCacheControl() 57 h.parseHeader(buffer); in testCacheControl() 58 assertEquals("max-age=15", h.getCacheControl()); in testCacheControl() 62 h.parseHeader(buffer); in testCacheControl() 63 assertEquals("max-age=15,private", h.getCacheControl()); in testCacheControl()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | CoordinateTransforms.java | 107 final int h = flipped ? info.logicalWidth : info.logicalHeight; in transformToRotation() local 111 transformLogicalToPhysicalCoordinates(oldRotation, w, h, out); in transformToRotation() 112 transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in transformToRotation() 129 final int h = flipped ? newWidth : newHeight; in transformToRotation() local 133 transformLogicalToPhysicalCoordinates(oldRotation, w, h, out); in transformToRotation() 134 transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in transformToRotation() 139 public static void computeRotationMatrix(int rotationDelta, int w, int h, Matrix outMatrix) { in computeRotationMatrix() argument 146 outMatrix.postTranslate(h, 0); in computeRotationMatrix() 150 outMatrix.postTranslate(w, h); in computeRotationMatrix()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
H A D | AdaptiveIconDrawableTest.java | 219 final int h = a.getHeight(); in equalBitmaps() local 220 int[] aPix = new int[w * h]; in equalBitmaps() 221 int[] bPix = new int[w * h]; in equalBitmaps() 253 final int h = a.getHeight(); in findBitmapDifferences() local 254 int[] aPix = new int[w * h]; in findBitmapDifferences() 255 int[] bPix = new int[w * h]; in findBitmapDifferences() 260 L("bitmap a (%dx%d)", w, h); in findBitmapDifferences() 261 printBits(aPix, w, h); in findBitmapDifferences() 262 L("bitmap b (%dx%d)", w, h); in findBitmapDifferences() 263 printBits(bPix, w, h); in findBitmapDifferences() [all …]
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | android_graphics_ColorSpace.cpp | 44 __fp16 h; in halfToFloat() local 45 memcpy(&h, &bits, 2); in halfToFloat() 46 return (float)h; in halfToFloat() 52 static uint16_t halfMantissa(uint16_t h) { in halfMantissa() argument 53 return h & 0x03ff; in halfMantissa() 56 static uint16_t halfExponent(uint16_t h) { in halfExponent() argument 57 return (h >> 10) & 0x001f; in halfExponent() 60 static uint16_t halfSign(uint16_t h) { in halfSign() argument 61 return h >> 15; in halfSign()
|
/aosp14/frameworks/base/tools/obbtool/ |
H A D | Main.cpp | 156 bool fromHex(char h, unsigned char *b) { in fromHex() argument 157 if (h >= '0' && h <= '9') { in fromHex() 158 *b = h - '0'; in fromHex() 160 } else if (h >= 'a' && h <= 'f') { in fromHex() 161 *b = h - 'a' + 10; in fromHex() 163 } else if (h >= 'A' && h <= 'F') { in fromHex() 164 *b = h - 'A' + 10; in fromHex()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
H A D | DecorViewTest.java | 52 int h = 12; in setBackgroundDrawableSameAsSetWindowBackground() local 53 Bitmap expectedBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in setBackgroundDrawableSameAsSetWindowBackground() 63 Bitmap resultBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in setBackgroundDrawableSameAsSetWindowBackground() 73 int[] expPixels = new int[w * h]; in setBackgroundDrawableSameAsSetWindowBackground() 74 int[] resPixels = new int[w * h]; in setBackgroundDrawableSameAsSetWindowBackground() 75 resultBitmap.getPixels(resPixels, 0, w, 0, 0, w, h); in setBackgroundDrawableSameAsSetWindowBackground() 76 expectedBitmap.getPixels(expPixels, 0, w, 0, 0, w, h); in setBackgroundDrawableSameAsSetWindowBackground()
|