Reimplement afdo support for rust

Ignore-AOSP-First: The parent CL is internal
Bug: 267229065
Test: go test
Change-Id: Ia14679285b92f3f14ff269392a61f978c71311b2
Merged-In: Ia14679285b92f3f14ff269392a61f978c71311b2
diff --git a/cc/fdo_profile.go b/cc/fdo_profile.go
index 18af8b5..7fbe719 100644
--- a/cc/fdo_profile.go
+++ b/cc/fdo_profile.go
@@ -50,7 +50,7 @@
 // module types that can depend on an fdo_profile module
 type FdoProfileMutatorInterface interface {
 	// FdoProfileMutator eithers set or get FdoProfileProvider
-	FdoProfileMutator(ctx android.BottomUpMutatorContext)
+	fdoProfileMutator(ctx android.BottomUpMutatorContext)
 }
 
 var _ FdoProfileMutatorInterface = (*fdoProfile)(nil)
@@ -60,7 +60,7 @@
 
 // FdoProfileMutator sets FdoProfileProvider to fdo_profile module
 // or sets afdo.Properties.FdoProfilePath to path in FdoProfileProvider of the depended fdo_profile
-func (fp *fdoProfile) FdoProfileMutator(ctx android.BottomUpMutatorContext) {
+func (fp *fdoProfile) fdoProfileMutator(ctx android.BottomUpMutatorContext) {
 	if fp.properties.Profile != nil {
 		path := android.PathForModuleSrc(ctx, *fp.properties.Profile)
 		ctx.SetProvider(FdoProfileProvider, FdoProfileInfo{
@@ -69,11 +69,11 @@
 	}
 }
 
-// fdoProfileMutator calls the generic FdoProfileMutator function of FdoProfileMutator
+// fdoProfileMutator calls the generic fdoProfileMutator function of fdoProfileMutator
 // which is implemented by cc and cc.FdoProfile
 func fdoProfileMutator(ctx android.BottomUpMutatorContext) {
 	if f, ok := ctx.Module().(FdoProfileMutatorInterface); ok {
-		f.FdoProfileMutator(ctx)
+		f.fdoProfileMutator(ctx)
 	}
 }