Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/build/build/make/tools/aconfig/aconfig_flags/src/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 2 kB image not shown  

Quelle  lib.rs

  Sprache: Rust
 

/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


//! `aconfig_flags` is a crate for reading aconfig flags from Rust
// When building with the Android tool-chain
//
//   - the flag functions will read from aconfig_flags_inner
//   - the feature "cargo" will be disabled
//
// When building with cargo
//
//   - the flag functions will all return some trivial value, like true
//   - the feature "cargo" will be enabled
//
// This module hides these differences from the rest of aconfig.

/// Module used when building with the Android tool-chain
#[cfg(not(feature = "cargo"))]
pub mod auto_generated {
    /// Returns the value for the enable_aconfigd_from_mainline flag.
    pub fn enable_aconfigd_from_mainline() -> bool {
        aconfig_flags_rust::enable_only_new_storage()
    }

    /// Returns the value for the aflags_list_mainline_beta flag.
    pub fn aflags_list_mainline_beta() -> bool {
        aconfig_flags_rust::aflags_list_mainline_beta()
    }
}

/// Module used when building with cargo
#[cfg(feature = "cargo")]
pub mod auto_generated {
    /// Returns a placeholder value for the enable_aconfigd_from_mainline flag.
    pub fn enable_aconfigd_from_mainline() -> bool {
        // Used only to enable typechecking and testing with cargo
        true
    }

    /// Returns the value for the aflags_list_mainline_beta flag.
    pub fn aflags_list_mainline_beta() -> bool {
        // Used only to enable typechecking and testing with cargo
        true
    }
}

Messung V0.5 in Prozent
C=86 H=92 G=88

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-28) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.