Home
last modified time | relevance | path

Searched refs:native_info (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DTestExtensions.cpp134 auto native_info = [&](const std::string& binaryPath) -> android::nn::AppInfoFetcher::AppInfo { in TEST_F() local
143 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info(""), in TEST_F()
147 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/foobar/foo"), in TEST_F()
151 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/data/foo"), in TEST_F()
155 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/vendor/foo"), in TEST_F()
159 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/odm/foo"), in TEST_F()
163 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/system/foo"), in TEST_F()
167 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/system/allowlisted"), in TEST_F()
171 EXPECT_FALSE(TypeManager::isExtensionsUseAllowed(native_info("/product/foo"), in TEST_F()
175 EXPECT_TRUE(TypeManager::isExtensionsUseAllowed(native_info("/product/foo"), in TEST_F()
[all …]
/packages/modules/Virtualization/libs/apkmanifest/src/
Dapkmanifest.rs48 let native_info = unsafe { extractManifestInfo(manifest.as_ptr() as _, manifest.len()) }; in get_manifest_info() localVariable
49 if native_info.is_null() { in get_manifest_info()
57 unsafe { freeManifestInfo(native_info); } in get_manifest_info()
63 let package = unsafe { CStr::from_ptr(getPackageName(native_info)) }; in get_manifest_info()
67 let version_code = unsafe { getVersionCode(native_info) }; in get_manifest_info()