Home
last modified time | relevance | path

Searched refs:constants (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassificationConstantsTest.java57 final TextClassificationConstants constants = new TextClassificationConstants(() -> s); in testLoadFromString() local
60 .that(constants.isLocalTextClassifierEnabled()).isTrue(); in testLoadFromString()
62 .that(constants.isSystemTextClassifierEnabled()).isTrue(); in testLoadFromString()
64 .that(constants.isModelDarkLaunchEnabled()).isTrue(); in testLoadFromString()
66 .that(constants.isSmartSelectionEnabled()).isTrue(); in testLoadFromString()
68 .that(constants.isSmartTextShareEnabled()).isTrue(); in testLoadFromString()
70 .that(constants.isSmartLinkifyEnabled()).isTrue(); in testLoadFromString()
72 .that(constants.isSmartSelectionAnimationEnabled()).isTrue(); in testLoadFromString()
74 .that(constants.getSuggestSelectionMaxRangeLength()).isEqualTo(10); in testLoadFromString()
76 .that(constants.getClassifyTextMaxRangeLength()).isEqualTo(11); in testLoadFromString()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyConstantsTest.java38 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString(""); in testDefaultValues() local
40 assertEquals(1 * 60 * 60, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testDefaultValues()
41 assertEquals(24 * 60 * 60, constants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC); in testDefaultValues()
42 assertEquals(2.0, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE); in testDefaultValues()
46 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString( in testCustomValues() local
52 assertEquals(10, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testCustomValues()
53 assertEquals(15, constants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC); in testCustomValues()
54 assertEquals(1.25, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE); in testCustomValues()
58 final DevicePolicyConstants constants = DevicePolicyConstants.loadFromString( in testMinMax() local
64 assertEquals(5, constants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC); in testMinMax()
[all …]
/frameworks/rs/
DrsProgramVertex.cpp43 if (mHal.state.constants[0] == nullptr) { in setup()
49 rsc, mHal.state.constants[0])); in setup()
58 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setup()
72 if (mHal.state.constants[0] == nullptr) { in setProjectionMatrix()
78 rsc, mHal.state.constants[0])); in setProjectionMatrix()
81 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setProjectionMatrix()
90 if (mHal.state.constants[0] == nullptr) { in setModelviewMatrix()
96 rsc, mHal.state.constants[0])); in setModelviewMatrix()
99 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setModelviewMatrix()
108 if (mHal.state.constants[0] == nullptr) { in setTextureMatrix()
[all …]
DrsProgram.cpp53 mHal.state.constants = new Allocation*[mHal.state.constantsCount]; in Program()
101 delete[] mHal.state.constants; in ~Program()
134 mHal.state.constants = nullptr; in initMemberVars()
174 mHal.state.constants[slot] = alloc; in bindAllocation()
212 void rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants) { in rsi_ProgramBindConstants() argument
214 p->bindAllocation(rsc, static_cast<Allocation *>(constants), slot); in rsi_ProgramBindConstants()
DrsProgramFragment.cpp48 if (mHal.state.constants[0] == nullptr) { in setConstantColor()
57 void *p = rsc->mHal.funcs.allocation.lock1D(rsc, mHal.state.constants[0]); in setConstantColor()
60 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); in setConstantColor()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueBackupJob.java66 public static void schedule(int userId, Context ctx, BackupManagerConstants constants) { in schedule() argument
67 schedule(userId, ctx, 0, constants); in schedule()
71 BackupManagerConstants constants) { in schedule() argument
82 synchronized (constants) { in schedule()
83 interval = constants.getKeyValueBackupIntervalMilliseconds(); in schedule()
84 fuzz = constants.getKeyValueBackupFuzzMilliseconds(); in schedule()
85 networkType = constants.getKeyValueBackupRequiredNetworkType(); in schedule()
86 needsCharging = constants.getKeyValueBackupRequireCharging(); in schedule()
DFullBackupJob.java46 BackupManagerConstants constants) { in schedule() argument
49 synchronized (constants) { in schedule()
51 .setRequiredNetworkType(constants.getFullBackupRequiredNetworkType()) in schedule()
52 .setRequiresCharging(constants.getFullBackupRequireCharging()); in schedule()
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java64 public HealthStatsWriter(HealthKeys.Constants constants) { in HealthStatsWriter() argument
65 mConstants = constants; in HealthStatsWriter()
68 final int timerCount = constants.getSize(HealthKeys.TYPE_TIMER); in HealthStatsWriter()
74 final int measurementCount = constants.getSize(HealthKeys.TYPE_MEASUREMENT); in HealthStatsWriter()
79 final int statsCount = constants.getSize(HealthKeys.TYPE_STATS); in HealthStatsWriter()
83 final int timersCount = constants.getSize(HealthKeys.TYPE_TIMERS); in HealthStatsWriter()
87 final int measurementsCount = constants.getSize(HealthKeys.TYPE_MEASUREMENTS); in HealthStatsWriter()
/frameworks/base/services/core/java/com/android/server/appbinding/finders/
DCarrierMessagingClientServiceFinder.java57 protected boolean isEnabled(AppBindingConstants constants) { in isEnabled() argument
58 return constants.SMS_SERVICE_ENABLED in isEnabled()
117 public int getBindFlags(AppBindingConstants constants) { in getBindFlags() argument
118 return constants.SMS_APP_BIND_FLAGS; in getBindFlags()
DAppServiceFinder.java73 protected boolean isEnabled(AppBindingConstants constants) { in isEnabled() argument
99 AppBindingConstants constants) { in findService() argument
105 if (!isEnabled(constants)) { in findService()
192 public abstract int getBindFlags(AppBindingConstants constants); in getBindFlags() argument
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java323 NetworkCapabilities capabilities, Constants constants) { in isInsane() argument
354 NetworkCapabilities capabilities, Constants constants) { in isCongestionDelayed() argument
358 return jobStatus.getFractionRunTime() < constants.CONN_CONGESTION_DELAY_FRAC; in isCongestionDelayed()
366 NetworkCapabilities capabilities, Constants constants) { in isStrictSatisfied() argument
373 NetworkCapabilities capabilities, Constants constants) { in isRelaxedSatisfied() argument
385 return jobStatus.getFractionRunTime() > constants.CONN_PREFETCH_RELAX_FRAC; in isRelaxedSatisfied()
393 NetworkCapabilities capabilities, Constants constants) { in isSatisfied() argument
398 if (isInsane(jobStatus, network, capabilities, constants)) return false; in isSatisfied()
401 if (isCongestionDelayed(jobStatus, network, capabilities, constants)) return false; in isSatisfied()
404 if (isStrictSatisfied(jobStatus, network, capabilities, constants)) return true; in isSatisfied()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNonAbUpdateInstaller.java36 DevicePolicyConstants constants) { in NonAbUpdateInstaller() argument
37 super(context, updateFileDescriptor, callback, injector, constants); in NonAbUpdateInstaller()
DUpdateInstaller.java55 DevicePolicyConstants constants) { in UpdateInstaller() argument
60 mConstants = constants; in UpdateInstaller()
/frameworks/base/core/java/android/net/metrics/
DValidationProbeEvent.java161 return Decoder.constants.get(probeType & 0xff, "PROBE_???"); in getProbeName()
165 return Decoder.constants.get(probeType & 0xff00, "UNKNOWN"); in getValidationStage()
185 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in ValidationProbeEvent.Decoder
DIpReachabilityEvent.java95 String eventName = Decoder.constants.get(hi); in toString()
107 static final SparseArray<String> constants = field in IpReachabilityEvent.Decoder
DDhcpErrorEvent.java115 return String.format("DhcpErrorEvent(%s)", Decoder.constants.get(errorCode)); in toString()
119 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in DhcpErrorEvent.Decoder
DIpManagerEvent.java104 Decoder.constants.get(eventType), durationMs); in toString()
116 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in IpManagerEvent.Decoder
DNetworkEvent.java124 Decoder.constants.get(eventType), durationMs); in toString()
136 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in NetworkEvent.Decoder
/frameworks/base/core/proto/android/os/
Denums.proto23 // These constants are defined in hardware/interfaces/health/1.0/types.hal
38 // Note that NONE is not in BatteryManager.java's constants.
48 // These constants are defined in hardware/interfaces/health/1.0/types.hal
59 // These constants are defined in hardware/interfaces/thermal/1.0/types.hal
82 // These constants are defined in hardware/interfaces/thermal/2.0/types.hal.
104 // These constants are defined in hardware/interfaces/thermal/2.0/types.hal.
/frameworks/rs/script_api/
DGenerateDocumentation.cpp289 static void writeSummaryTables(GeneratedFile* file, const map<string, Constant*>& constants, in writeSummaryTables() argument
294 for (auto e : constants) { in writeSummaryTables()
642 const auto& constants = specFile.getDocumentedConstants(); in writeDetailedDocumentationFile() local
646 writeSummaryTables(&file, constants, types, functions, NON_DEPRECATED_ONLY, false); in writeDetailedDocumentationFile()
647 writeSummaryTables(&file, constants, types, functions, DEPRECATED_ONLY, false); in writeDetailedDocumentationFile()
650 if (!constants.empty()) { in writeDetailedDocumentationFile()
652 for (auto i : constants) { in writeDetailedDocumentationFile()
/frameworks/base/services/core/java/com/android/server/biometrics/
DEnumerateClient.java33 public EnumerateClient(Context context, Constants constants, in EnumerateClient() argument
37 super(context, constants, daemon, halDeviceId, token, listener, userId, groupId, restricted, in EnumerateClient()
DRemovalClient.java36 public RemovalClient(Context context, Constants constants, in RemovalClient() argument
40 super(context, constants, daemon, halDeviceId, token, listener, userId, groupId, restricted, in RemovalClient()
DEnrollClient.java43 public EnrollClient(Context context, Constants constants, in EnrollClient() argument
48 super(context, constants, daemon, halDeviceId, token, listener, userId, groupId, restricted, in EnrollClient()
/frameworks/base/services/core/java/com/android/server/appbinding/
DAppBindingService.java429 AppServiceConnection(Context context, int userId, AppBindingConstants constants, in AppServiceConnection() argument
433 constants.SERVICE_RECONNECT_BACKOFF_SEC, in AppServiceConnection()
434 constants.SERVICE_RECONNECT_BACKOFF_INCREASE, in AppServiceConnection()
435 constants.SERVICE_RECONNECT_MAX_BACKOFF_SEC, in AppServiceConnection()
436 constants.SERVICE_STABLE_CONNECTION_THRESHOLD_SEC); in AppServiceConnection()
438 mConstants = constants; in AppServiceConnection()
/frameworks/base/cmds/incidentd/
DAndroid.bp46 generated_headers: ["gen-platform-proto-constants"],
101 generated_headers: ["gen-platform-proto-constants"],

123