Remove libnativehelper methods AFileDescriptor_{get,set}FD

These are replaced by AFileDescriptor_{get,set}Fd.

Bug: 185256332
Test: TH

(cherry picked from commit 7d753f819b1de0e4ba3d7d059b08a28f65101b6e)
Merged-In: Ib327fcfbc442e5c0e9d3aea8ef60fc670ac38b26
Change-Id: I60c7dbc2c24b073b7139b0948aedb28cf2a6d551
diff --git a/libnativehelper/stubs_arm.cc b/libnativehelper/stubs_arm.cc
index 1281ff3..b6cd163 100644
--- a/libnativehelper/stubs_arm.cc
+++ b/libnativehelper/stubs_arm.cc
@@ -18,9 +18,7 @@
 #include "native_bridge_support/vdso/interceptable_functions.h"
 
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_create);
-DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_getFD);
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_getFd);
-DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_setFD);
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_setFd);
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlCloseLibrary);
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlGetError);
@@ -71,9 +69,7 @@
 
 static void __attribute__((constructor(0))) init_stub_library() {
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_create);
-  INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_getFD);
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_getFd);
-  INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_setFD);
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_setFd);
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlCloseLibrary);
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlGetError);
diff --git a/libnativehelper/stubs_arm64.cc b/libnativehelper/stubs_arm64.cc
index 1281ff3..b6cd163 100644
--- a/libnativehelper/stubs_arm64.cc
+++ b/libnativehelper/stubs_arm64.cc
@@ -18,9 +18,7 @@
 #include "native_bridge_support/vdso/interceptable_functions.h"
 
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_create);
-DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_getFD);
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_getFd);
-DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_setFD);
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(AFileDescriptor_setFd);
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlCloseLibrary);
 DEFINE_INTERCEPTABLE_STUB_FUNCTION(DlGetError);
@@ -71,9 +69,7 @@
 
 static void __attribute__((constructor(0))) init_stub_library() {
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_create);
-  INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_getFD);
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_getFd);
-  INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_setFD);
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", AFileDescriptor_setFd);
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlCloseLibrary);
   INIT_INTERCEPTABLE_STUB_FUNCTION("libnativehelper.so", DlGetError);