commit | e6a88a8119d59cc703da8c1616172aefbef99379 | [log] [tgz] |
---|---|---|
author | Avichal Rakesh <arakesh@google.com> | Thu Oct 12 12:46:39 2023 -0700 |
committer | Avichal Rakesh <arakesh@google.com> | Thu Nov 02 17:27:43 2023 -0700 |
tree | 8e2011dededce633b685c275d467dac84d264dc9 | |
parent | cadd26dbe70aff1cfc808e83d0775e62afb17c67 [diff] |
ExternalCameraHAL: Check for empty native handle instead of null. AIDL cannot send nullptr when parceling NativeHandles. Instead, it sends an empty handle. Logic which previously relied on null checks should now rely on checking if the native_handle is empty or not. This CL updates ExternalCameraUtils to check for empty handles instead. Bug: 299170474 Test: CameraAidlTest#processCaptureRequestInvalidBuffer passes Change-Id: Id4ba928defaa061708a3c1cd68aa510b376f6cb3