Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassificationConstantsTest.java46 final TextClassificationConstants constants = in testLoadFromString() local
49 constants.isLocalTextClassifierEnabled()); in testLoadFromString()
51 constants.isSystemTextClassifierEnabled()); in testLoadFromString()
52 assertTrue("model_dark_launch_enabled", constants.isModelDarkLaunchEnabled()); in testLoadFromString()
53 assertTrue("smart_selection_enabled", constants.isSmartSelectionEnabled()); in testLoadFromString()
54 assertTrue("smart_text_share_enabled", constants.isSmartTextShareEnabled()); in testLoadFromString()
55 assertTrue("smart_linkify_enabled", constants.isSmartLinkifyEnabled()); in testLoadFromString()
56 assertTrue("smart_select_animation_enabled", constants.isSmartSelectionAnimationEnabled()); in testLoadFromString()
58 10, constants.getSuggestSelectionMaxRangeLength()); in testLoadFromString()
60 11, constants.getClassifyTextMaxRangeLength()); 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/base/services/backup/java/com/android/server/backup/
DKeyValueBackupJob.java50 public static void schedule(Context ctx, BackupManagerConstants constants) { in schedule() argument
51 schedule(ctx, 0, constants); in schedule()
54 public static void schedule(Context ctx, long delay, BackupManagerConstants constants) { in schedule() argument
65 synchronized (constants) { in schedule()
66 interval = constants.getKeyValueBackupIntervalMilliseconds(); in schedule()
67 fuzz = constants.getKeyValueBackupFuzzMilliseconds(); in schedule()
68 networkType = constants.getKeyValueBackupRequiredNetworkType(); in schedule()
69 needsCharging = constants.getKeyValueBackupRequireCharging(); in schedule()
DFullBackupJob.java37 public static void schedule(Context ctx, long minDelay, BackupManagerConstants constants) { in schedule() argument
40 synchronized (constants) { in schedule()
42 .setRequiredNetworkType(constants.getFullBackupRequiredNetworkType()) in schedule()
43 .setRequiresCharging(constants.getFullBackupRequireCharging()); in schedule()
/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()
DrsProgram.h50 Allocation **constants; member
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java113 NetworkCapabilities capabilities, Constants constants) { in isInsane() argument
144 NetworkCapabilities capabilities, Constants constants) { in isCongestionDelayed() argument
148 return jobStatus.getFractionRunTime() < constants.CONN_CONGESTION_DELAY_FRAC; in isCongestionDelayed()
156 NetworkCapabilities capabilities, Constants constants) { in isStrictSatisfied() argument
163 NetworkCapabilities capabilities, Constants constants) { in isRelaxedSatisfied() argument
175 return jobStatus.getFractionRunTime() > constants.CONN_PREFETCH_RELAX_FRAC; in isRelaxedSatisfied()
183 NetworkCapabilities capabilities, Constants constants) { in isSatisfied() argument
188 if (isInsane(jobStatus, network, capabilities, constants)) return false; in isSatisfied()
191 if (isCongestionDelayed(jobStatus, network, capabilities, constants)) return false; in isSatisfied()
194 if (isStrictSatisfied(jobStatus, network, capabilities, constants)) return true; in isSatisfied()
[all …]
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java62 public HealthStatsWriter(HealthKeys.Constants constants) { in HealthStatsWriter() argument
63 mConstants = constants; in HealthStatsWriter()
66 final int timerCount = constants.getSize(HealthKeys.TYPE_TIMER); in HealthStatsWriter()
72 final int measurementCount = constants.getSize(HealthKeys.TYPE_MEASUREMENT); in HealthStatsWriter()
77 final int statsCount = constants.getSize(HealthKeys.TYPE_STATS); in HealthStatsWriter()
81 final int timersCount = constants.getSize(HealthKeys.TYPE_TIMERS); in HealthStatsWriter()
85 final int measurementsCount = constants.getSize(HealthKeys.TYPE_MEASUREMENTS); in HealthStatsWriter()
/frameworks/base/core/java/android/net/metrics/
DValidationProbeEvent.java97 return Decoder.constants.get(probeType & 0xff, "PROBE_???"); in getProbeName()
101 return Decoder.constants.get(probeType & 0xff00, "UNKNOWN"); in getValidationStage()
111 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in ValidationProbeEvent.Decoder
DIpReachabilityEvent.java95 String eventName = Decoder.constants.get(hi); in toString()
100 static final SparseArray<String> constants = field in IpReachabilityEvent.Decoder
DIpManagerEvent.java91 Decoder.constants.get(eventType), durationMs); in toString()
95 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in IpManagerEvent.Decoder
DNetworkEvent.java105 Decoder.constants.get(eventType), durationMs); in toString()
109 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in NetworkEvent.Decoder
DDhcpErrorEvent.java103 return String.format("DhcpErrorEvent(%s)", Decoder.constants.get(errorCode)); in toString()
107 static final SparseArray<String> constants = MessageUtils.findMessageNames( field in DhcpErrorEvent.Decoder
DApfProgramEvent.java118 names.add(Decoder.constants.get(bit)); in namesOf()
124 static final SparseArray<String> constants = field in ApfProgramEvent.Decoder
/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/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
/frameworks/native/libs/ui/
DAndroid.bp41 // We use four-character constants for the GraphicBuffer header, and don't care
43 "-Wno-four-char-constants",
/frameworks/base/cmds/incident_helper/
DAndroid.bp22 generated_headers: ["gen-platform-proto-constants"],
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDeviceAdminServiceController.java89 DevicePolicyConstants constants) { in DeviceAdminServiceController() argument
94 mConstants = constants; in DeviceAdminServiceController()
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dshared.rsh35 /* These constants must match those in UnitTest.java */
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dshared.rsh35 /* These constants must match those in UnitTest.java */
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dshared.rsh35 /* These constants must match those in UnitTest.java */
/frameworks/av/services/oboeservice/
DAAudioService.h109 enum constants { enum

123