1# Rename all icing classes to match our module name. OEMs could start using icing lib for some other
2# purpose in system service, which would cause class collisions when loading our apex into the
3# system service.
4rule com.google.protobuf.** com.android.server.appsearch.protobuf.@1
5rule com.google.android.icing.proto.** com.android.server.appsearch.icing.proto.@1
6rule com.google.android.appsearch.proto.** com.android.server.appsearch.appsearch.proto.@1
7
8# Rename all com.android.internal.util classes to prevent class name collisions
9# between this module and the other versions of the utility classes linked into
10# the framework.
11
12# These must be kept in sync with the sources of framework-utils-appsearch
13rule com.android.internal.util.Preconditions* com.android.server.appsearch.internal.util.Preconditions@1
14
15# Repackage generated flag classes.
16# Rename the class names but not literals.
17rule com.android.appsearch.flags.*FeatureFlags* com.android.server.appsearch.flags.@1FeatureFlags@2
18rule com.android.appsearch.flags.FeatureFlags* com.android.server.appsearch.flags.FeatureFlags@1
19rule com.android.appsearch.flags.Flags com.android.server.appsearch.flags.Flags