/external/connectedappssdk/testing/sdk/src/main/java/com/google/android/enterprise/connectedapps/testing/ |
D | FakeConnectedAppsUtils.java | 20 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 28 private final ProfileType primaryProfileType; 31 AbstractFakeProfileConnector fakeProfileConnector, ProfileType primaryProfileType) { in FakeConnectedAppsUtils() 51 if (primaryProfileType != ProfileType.WORK && primaryProfileType != ProfileType.PERSONAL) { in getPrimaryProfile() 62 if (primaryProfileType != ProfileType.WORK && primaryProfileType != ProfileType.PERSONAL) { in getSecondaryProfile() 73 if (fakeProfileConnector.runningOnProfile() == ProfileType.WORK) { in getWorkProfile() 81 if (fakeProfileConnector.runningOnProfile() == ProfileType.WORK) { in getPersonalProfile() 89 return fakeProfileConnector.runningOnProfile() == ProfileType.WORK; in runningOnWork() 94 return fakeProfileConnector.runningOnProfile() == ProfileType.PERSONAL; in runningOnPersonal()
|
D | AbstractFakeProfileConnector.java | 25 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 45 private final ProfileType primaryProfileType; 46 private ProfileType runningOnProfile = ProfileType.PERSONAL; 55 public AbstractFakeProfileConnector(Context context, ProfileType primaryProfileType) { in AbstractFakeProfileConnector() 71 public void setRunningOnProfile(ProfileType currentProfile) { in setRunningOnProfile() 72 if (currentProfile == ProfileType.WORK && workProfileState != WorkProfileState.TURNED_ON) { in setRunningOnProfile() 83 public ProfileType runningOnProfile() { in runningOnProfile() 140 setRunningOnProfile(ProfileType.PERSONAL); in turnOffWorkProfile() 262 return (runningOnProfile == ProfileType.WORK || workProfileState == WorkProfileState.TURNED_ON); in isAvailable()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/testing/ |
D | AbstractFakeProfileConnectorTest.java | 27 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 38 FakeProfileConnector(Context context, ProfileType primaryProfileType) { in FakeProfileConnector() 45 new FakeProfileConnector(context, /* primaryProfileType= */ ProfileType.NONE); 180 fakeProfileConnector.setRunningOnProfile(ProfileType.WORK); in setRunningOnProfile_setsRunningOnProfile() 182 assertThat(fakeProfileConnector.runningOnProfile()).isEqualTo(ProfileType.WORK); in setRunningOnProfile_setsRunningOnProfile() 187 fakeProfileConnector.setRunningOnProfile(ProfileType.WORK); in setRunningOnWorkProfile_startsWorkProfile() 188 fakeProfileConnector.setRunningOnProfile(ProfileType.PERSONAL); in setRunningOnWorkProfile_startsWorkProfile() 228 fakeProfileConnector.setRunningOnProfile(ProfileType.WORK); in getWorkProfile_runningOnWorkProfile_returnsCurrent() 236 fakeProfileConnector.setRunningOnProfile(ProfileType.PERSONAL); in getWorkProfile_runningOnPersonalProfile_returnsOther() 244 fakeProfileConnector.setRunningOnProfile(ProfileType.PERSONAL); in getPersonalProfile_runningOnPersonalProfile_returnsCurrent() [all …]
|
D | FakeCrossProfileTypeTest.java | 34 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 90 connector.setRunningOnProfile(ProfileType.PERSONAL); in setUp() 126 connector.setRunningOnProfile(ProfileType.PERSONAL); in current_runningOnPersonal_callsPersonal() 134 connector.setRunningOnProfile(ProfileType.WORK); in current_runningOnWork_callsWork() 142 connector.setRunningOnProfile(ProfileType.PERSONAL); in other_runningOnPersonal_callsWork() 150 connector.setRunningOnProfile(ProfileType.WORK); in other_runningOnWork_callsPersonal() 183 connector.setRunningOnProfile(ProfileType.WORK); in suppliers_runningOnPrimary_callsPrimaryAndSecondary() 194 connector.setRunningOnProfile(ProfileType.PERSONAL); in suppliers_runningOnSecondary_onlyCallsSecondary() 204 connector.setRunningOnProfile(ProfileType.PERSONAL); in profile_specifiesCurrent_callsCurrent() 213 connector.setRunningOnProfile(ProfileType.PERSONAL); in profile_specifiesOther_callsOther() [all …]
|
/external/perfetto/ui/src/frontend/ |
D | heap_profile_panel.ts | 37 enum ProfileType { enum 42 function isProfileType(s: string): s is ProfileType { 43 return Object.values(ProfileType).includes(s as ProfileType); 46 function toProfileType(s: string): ProfileType { 64 private profileType?: ProfileType = undefined; 130 this.profileType === ProfileType.NATIVE_HEAP_PROFILE ? 153 case ProfileType.NATIVE_HEAP_PROFILE: 155 case ProfileType.JAVA_HEAP_GRAPH: 169 case ProfileType.NATIVE_HEAP_PROFILE: 171 case ProfileType.JAVA_HEAP_GRAPH: [all …]
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/ |
D | FakeProfileConnectorGenerator.java | 22 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 66 if (connector.primaryProfile().equals(ProfileType.UNKNOWN)) { in generateFakeProfileConnector() 72 .addStatement("super(context, $T.NONE)", ProfileType.class) in generateFakeProfileConnector() 79 .addParameter(ProfileType.class, "primaryProfile") in generateFakeProfileConnector() 88 "super(context, $T.$L)", ProfileType.class, connector.primaryProfile().name()) in generateFakeProfileConnector()
|
D | InterfaceGenerator.java | 30 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 165 || crossProfileType.profileConnector().get().primaryProfile() != ProfileType.NONE) { in generateCrossProfileTypeInterface() 210 crossProfileType.profileConnector().get().primaryProfile().equals(ProfileType.WORK) in generateSecondaryMethod() 211 ? Ascii.toLowerCase(ProfileType.PERSONAL.name()) in generateSecondaryMethod() 212 : Ascii.toLowerCase(ProfileType.WORK.name()); in generateSecondaryMethod() 238 crossProfileType.profileConnector().get().primaryProfile().equals(ProfileType.WORK) in generateSuppliersMethod() 239 ? Ascii.toLowerCase(ProfileType.WORK.name()) in generateSuppliersMethod() 240 : Ascii.toLowerCase(ProfileType.PERSONAL.name()); in generateSuppliersMethod() 242 crossProfileType.profileConnector().get().primaryProfile().equals(ProfileType.WORK) in generateSuppliersMethod() 243 ? Ascii.toLowerCase(ProfileType.PERSONAL.name()) in generateSuppliersMethod() [all …]
|
D | ProfileConnectorCodeGenerator.java | 26 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 123 if (connector.primaryProfile() != ProfileType.NONE) { in generateProfileConnectorBuilder() 128 ProfileType.class, in generateProfileConnectorBuilder()
|
D | DefaultProfileClassGenerator.java | 32 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 224 || crossProfileType.profileConnector().get().primaryProfile() != ProfileType.NONE) { in generateDefaultProfileClass()
|
D | FakeCrossProfileTypeGenerator.java | 29 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 192 || crossProfileType.profileConnector().get().primaryProfile() != ProfileType.NONE) { in generateFakeCrossProfileType()
|
/external/connectedappssdk/annotations/src/main/java/com/google/android/enterprise/connectedapps/annotations/ |
D | CustomProfileConnector.java | 29 enum ProfileType { enum 52 ProfileType primaryProfile() default ProfileType.NONE; in primaryProfile()
|
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/ |
D | AbstractProfileConnector.java | 22 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 43 private final @Nullable ProfileType primaryProfileType; 191 if (Objects.equals(primaryProfileType, ProfileType.WORK)) { in getPrimaryProfileIdentifier() 195 if (Objects.equals(primaryProfileType, ProfileType.PERSONAL)) { in getPrimaryProfileIdentifier() 216 @Nullable ProfileType primaryProfileType; 241 public Builder setPrimaryProfileType(ProfileType primaryProfileType) { in setPrimaryProfileType()
|
D | CrossProfileConnector.java | 22 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 29 @CustomProfileConnector(primaryProfile = ProfileType.UNKNOWN)
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/containers/ |
D | ProfileConnectorInfo.java | 20 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 41 abstract ProfileType primaryProfile(); in primaryProfile() 60 public abstract ProfileType primaryProfile(); in primaryProfile() 122 ProfileType.NONE, in extractFromCustomProfileConnectorAnnotation()
|
/external/perfetto/include/perfetto/profiling/ |
D | pprof_builder.h | 35 enum class ProfileType { enum 41 ProfileType profile_type;
|
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/crossuser/ |
D | TestCrossUserConnector.java | 21 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 26 @CustomProfileConnector(primaryProfile = ProfileType.WORK)
|
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/connector/ |
D | TestProfileConnector.java | 21 import com.google.android.enterprise.connectedapps.annotations.CustomProfileConnector.ProfileType; 29 primaryProfile = ProfileType.WORK,
|
/external/perfetto/tools/trace_to_text/ |
D | pprof_builder.cc | 805 SerializedProfile{ProfileType::kHeapProfile, profile_pid, in TraceToHeapPprof() 943 ProfileType::kPerfProfile, process.pid, std::move(profile_proto), ""}); in TraceToPerfPprof()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | xla_data.proto | 250 enum ProfileType { enum 281 repeated ProfileType profile_type = 5;
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_parser.cc | 4781 metadata->add_profile_type(static_cast<ProfileType>(type)); in ParseMetadata()
|