Move from sampling PGO to AFDO pipeline

This gives 0.35% improvement on app launch performance.

Test: presubmit
Test: http://go/art-benchmark?fb=BootImageProfileId:eq:5656
Change-Id: Ic09820e8322a768d1646e1a59eeda988b9fa4d1d
diff --git a/build/Android.bp b/build/Android.bp
index 7055ad9..657aa12 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -275,36 +275,6 @@
     },
 }
 
-cc_defaults {
-    name: "art_pgo_defaults",
-    visibility: ["//art:__subpackages__"],
-    pgo: {
-        sampling: true,
-    },
-    target: {
-        android_arm64: {
-            pgo: {
-                profile_file: "art/art_arm_arm64.profdata",
-            },
-        },
-        android_arm: {
-            pgo: {
-                profile_file: "art/art_arm_arm64.profdata",
-            },
-        },
-        android_x86_64: {
-            pgo: {
-                profile_file: "art/art_x86_x86_64.profdata",
-            },
-        },
-        android_x86: {
-            pgo: {
-                profile_file: "art/art_x86_x86_64.profdata",
-            },
-        },
-    },
-}
-
 art_debug_defaults {
     name: "art_debug_defaults",
     defaults: ["art_defaults"],
diff --git a/libartbase/Android.bp b/libartbase/Android.bp
index 8aadef9..06c8cfc 100644
--- a/libartbase/Android.bp
+++ b/libartbase/Android.bp
@@ -165,7 +165,6 @@
     defaults: [
         "libartbase_defaults",
         "libart_nativeunwind_defaults",
-        "art_pgo_defaults",
     ],
     visibility: [
         // TODO(b/183483755): Please visibility checks when the prebuilt
@@ -195,6 +194,7 @@
             },
         },
     },
+    afdo: true,
 }
 
 art_cc_library {
diff --git a/runtime/Android.bp b/runtime/Android.bp
index f219cc0..9f8cf68 100644
--- a/runtime/Android.bp
+++ b/runtime/Android.bp
@@ -591,7 +591,6 @@
         "libart_defaults",
         "libart_nativeunwind_defaults",
         "art_hugepage_defaults",
-        "art_pgo_defaults",
     ],
     whole_static_libs: [
     ],
@@ -623,6 +622,7 @@
         "com.android.art",
         "com.android.art.debug",
     ],
+    afdo: true,
 }
 
 // "Broken" version of the ART runtime library, used only for testing.