Home
last modified time | relevance | path

Searched refs:resolve (Results 1 – 25 of 92) sorted by relevance

1234

/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DThemeResolverTest.java47 assertThat(themeResolver.resolve("material")).isEqualTo(R.style.SuwThemeMaterial); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
48 assertThat(themeResolver.resolve("material_light")).isEqualTo(R.style.SuwThemeMaterial_Light); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
49 assertThat(themeResolver.resolve("glif")).isEqualTo(R.style.SuwThemeGlif); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
50 assertThat(themeResolver.resolve("glif_light")).isEqualTo(R.style.SuwThemeGlif_Light); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
51 assertThat(themeResolver.resolve("glif_v2")).isEqualTo(R.style.SuwThemeGlifV2); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
52 assertThat(themeResolver.resolve("glif_v2_light")).isEqualTo(R.style.SuwThemeGlifV2_Light); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
53 assertThat(themeResolver.resolve("glif_v3")).isEqualTo(R.style.SuwThemeGlifV3); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
54 assertThat(themeResolver.resolve("glif_v3_light")).isEqualTo(R.style.SuwThemeGlifV3_Light); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
55 assertThat(themeResolver.resolve("unknown_theme")).isEqualTo(defaultTheme); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
62 assertThat(themeResolver.resolve("material")).isEqualTo(R.style.SuwThemeMaterial_DayNight); in resolve_dayNight_shouldReturnDayNightTheme()
[all …]
/frameworks/base/startop/scripts/iorap/lib/
Dinode2filename_test.py65 assert a.resolve(1, 2) == None
69 assert a.resolve(1, 2) == "foo.bar"
70 assert a.resolve(4, 5) == None
74 assert a.resolve(1, 2) == "foo.bar"
75 assert a.resolve(4, 5) == "bar.baz"
79 assert a.resolve(1567, 8910) == "/a/b/c/"
80 assert a.resolve(4, 5) == "bar.baz"
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DProcTimeInStateReaderTest.java59 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testSimple()
75 final Path initialTimeInStateFile = mProcDirectory.toPath().resolve( in testHeaderFormat()
92 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testDifferentFile()
96 Path timeInStateFile = mProcDirectory.toPath().resolve("time-in-state"); in testDifferentFile()
106 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testWrongLength()
110 Path timeInStateFile = mProcDirectory.toPath().resolve("time-in-state"); in testWrongLength()
117 Path initialTimeInStateFile = mProcDirectory.toPath().resolve("initial-time-in-state"); in testEmptyInitialFails()
DKernelCpuThreadReaderTest.java79 setupDirectory(mProcDirectory.toPath().resolve(String.valueOf(uid)), in testReader_byUids()
88 mProcDirectory.toPath().resolve(uids[0] + "/task/" + uids[0] + "/time_in_state"), in testReader_byUids()
111 final Path selfThreadsPath = processPath.resolve("task"); in setupDirectory()
115 Files.write(processPath.resolve("cmdline"), processName.getBytes()); in setupDirectory()
121 final Path threadPath = selfThreadsPath.resolve(String.valueOf(threadIds[i])); in setupDirectory()
125 Files.write(threadPath.resolve("comm"), threadNames[i].getBytes()); in setupDirectory()
129 Files.newOutputStream(threadPath.resolve("time_in_state")); in setupDirectory()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DContextComponentResolver.java60 return resolve(className, mActivityCreators); in resolveActivity()
68 return resolve(className, mBroadcastReceiverCreators); in resolveBroadcastReceiver()
76 return resolve(className, mRecentsCreators); in resolveRecents()
84 return resolve(className, mServiceCreators); in resolveService()
92 return resolve(className, mSystemUICreators); in resolveSystemUI()
95 private <T> T resolve(String className, Map<Class<?>, Provider<T>> creators) { in resolve() method in ContextComponentResolver
/frameworks/av/media/libaaudio/tests/
Dtest_marshalling.cpp79 EXPECT_EQ(AAUDIO_OK, sharedMemoryA.resolve(0, 16, &region1)); // fits in region in TEST()
80 EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(-2, 16, &region1)); // offset is negative in TEST()
81 EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(0, memSizeBytes + 8, &region1)); // size too big in TEST()
82 … EXPECT_NE(AAUDIO_OK, sharedMemoryA.resolve(memSizeBytes - 8, 16, &region1)); // goes past the end in TEST()
96 EXPECT_EQ(AAUDIO_OK, sharedMemoryB.resolve(0, 16, &region2)); in TEST()
115 EXPECT_EQ(AAUDIO_OK, sharedRegionA.resolve(sharedMemories, &region1)); in TEST()
128 EXPECT_EQ(AAUDIO_OK, sharedRegionB.resolve(sharedMemories, &region2)); in TEST()
161 EXPECT_EQ(AAUDIO_OK, ringBufferA.resolve(sharedMemories, &descriptorA)); in TEST()
177 EXPECT_EQ(AAUDIO_OK, ringBufferB.resolve(sharedMemories, &descriptorB)); in TEST()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DThemeResolver.java59 public int resolve(Intent intent) { in resolve() method in ThemeResolver
60 return resolve( in resolve()
72 public int resolve(@Nullable String theme) { in resolve() method in ThemeResolver
73 return resolve(theme, /* suppressDayNight= */ false); in resolve()
77 private int resolve(@Nullable String theme, boolean suppressDayNight) { in resolve() method in ThemeResolver
92 activity.setTheme(resolve(activity.getIntent())); in applyTheme()
DWizardManagerHelper.java296 .resolve(intent); in getThemeRes()
320 .resolve(intent); in getThemeRes()
352 .resolve(theme); in getThemeRes()
382 .resolve(theme); in getThemeRes()
/frameworks/av/media/libaaudio/src/binding/
DAudioEndpointParcelable.cpp84 aaudio_result_t AudioEndpointParcelable::resolve(EndpointDescriptor *descriptor) { in resolve() function in AudioEndpointParcelable
85 aaudio_result_t result = mUpMessageQueueParcelable.resolve(mSharedMemories, in resolve()
88 result = mDownMessageQueueParcelable.resolve(mSharedMemories, in resolve()
92 result = mDownDataQueueParcelable.resolve(mSharedMemories, in resolve()
DRingBufferParcelable.cpp100 aaudio_result_t RingBufferParcelable::resolve(SharedMemoryParcelable *memoryParcels, RingBufferDesc… in resolve() function in RingBufferParcelable
103 result = mReadCounterParcelable.resolve(memoryParcels, in resolve()
109 result = mWriteCounterParcelable.resolve(memoryParcels, in resolve()
115 result = mDataParcelable.resolve(memoryParcels, (void **) &descriptor->dataAddress); in resolve()
DSharedRegionParcelable.cpp60 aaudio_result_t SharedRegionParcelable::resolve(SharedMemoryParcelable *memoryParcels, in resolve() function in SharedRegionParcelable
71 return memoryParcel->resolve(mOffsetInBytes, mSizeInBytes, regionAddressPtr); in resolve()
DSharedRegionParcelable.h42 aaudio_result_t resolve(SharedMemoryParcelable *memoryParcels, void **regionAddressPtr);
DAudioEndpointParcelable.h55 aaudio_result_t resolve(EndpointDescriptor *descriptor);
/frameworks/base/core/tests/coretests/src/android/os/vibrator/
DStepSegmentTest.java82 assertEquals(1f, original.resolve(VibrationEffect.MAX_AMPLITUDE).getAmplitude()); in testResolve()
83 assertEquals(0.2f, original.resolve(51).getAmplitude(), TOLERANCE); in testResolve()
86 assertSame(resolved, resolved.resolve(100)); in testResolve()
88 assertThrows(IllegalArgumentException.class, () -> resolved.resolve(1000)); in testResolve()
/frameworks/base/core/tests/coretests/src/android/os/
DVibrationEffectTest.java198 VibrationEffect.Composed resolved = DEFAULT_ONE_SHOT.resolve(51); in testResolveOneShot()
201 assertThrows(IllegalArgumentException.class, () -> DEFAULT_ONE_SHOT.resolve(1000)); in testResolveOneShot()
206 VibrationEffect.Composed resolved = TEST_WAVEFORM.resolve(102); in testResolveWaveform()
209 assertThrows(IllegalArgumentException.class, () -> TEST_WAVEFORM.resolve(1000)); in testResolveWaveform()
215 assertEquals(effect, effect.resolve(51)); in testResolvePrebaked()
223 assertEquals(effect, effect.resolve(51)); in testResolveComposed()
228 .resolve(51); in testResolveComposed()
/frameworks/compile/mclinker/unittests/
DStaticResolverTest.cpp58 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
84 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
111 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
138 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
159 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
188 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
209 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
234 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
257 bool result = m_pResolver->resolve(*old_sym, *new_sym, override, 0x0); in TEST_F()
/frameworks/base/core/java/android/app/slice/
DSliceManager.java351 ResolveInfo resolve = mContext.getPackageManager().resolveActivity(intent, in resolveStatic() local
353 if (resolve != null && resolve.activityInfo != null in resolveStatic()
354 && resolve.activityInfo.metaData != null in resolveStatic()
355 && resolve.activityInfo.metaData.containsKey(SLICE_METADATA_KEY)) { in resolveStatic()
357 resolve.activityInfo.metaData.getString(SLICE_METADATA_KEY)); in resolveStatic()
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DHostUtils.kt35 deleteFile(partition.baseAppFolder.resolve(it.removeSuffix(".apk")).toString()) in <lambda>()
104 .resolve(file.nameWithoutExtension) in makePathForApk()
105 .resolve(file.name) in makePathForApk()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReader.java93 DEFAULT_PROC_PATH.resolve("self/time_in_state");
273 final Path allThreadsPath = processPath.resolve("task"); in getProcessCpuUsage()
321 final Path threadCpuStatPath = threadDirectory.resolve(CPU_STATISTICS_FILENAME); in getThreadCpuUsage()
340 final Path processNamePath = processPath.resolve(PROCESS_NAME_FILENAME); in getProcessName()
351 final Path threadNamePath = threadPath.resolve(THREAD_NAME_FILENAME); in getThreadName()
/frameworks/compile/mclinker/include/mcld/LD/
DDiagSymbolResolutions.inc11 "Fails to resolve symbols [%0:%1]\nPlease reports to `%2'",
12 "Fails to resolve symbols [%0:%1]\nPlease reports to `%2'")
DResolver.h52 virtual bool resolve(ResolveInfo& __restrict__ pOld,
/frameworks/base/tools/preload/
Dsorttable.js475 var resolve = Object; // default
478 resolve = Function;
485 resolve = String;
488 resolve = Array;
490 resolve.forEach(object, block, context);
/frameworks/base/core/java/org/apache/http/conn/scheme/
DHostNameResolver.java45 InetAddress resolve (String hostname) throws IOException; in resolve() method
/frameworks/base/services/core/java/com/android/server/security/
DFileIntegrityService.java137 .resolve(relativeDir)); in loadAllCertificates()
139 .resolve(relativeDir)); in loadAllCertificates()
/frameworks/base/core/java/android/os/incremental/
DIncrementalManager.java215 final Path sourceBase = sourceAbsolutePath.toPath().resolve(sourceRelativePath); in linkFiles()
222 targetStorage.makeDirectory(targetRelative.resolve(relativeDir).toString()); in linkFiles()
232 targetRelative.resolve(relativeFile).toString()); in linkFiles()

1234