Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 148) sorted by relevance

123456

/aosp14/system/core/libcutils/include/cutils/
H A Dtrace.h187 #define ATRACE_ASYNC_BEGIN(name, cookie) \ argument
188 atrace_async_begin(ATRACE_TAG, name, cookie)
190 int32_t cookie) in atrace_async_begin() argument
194 atrace_async_begin_body(name, cookie); in atrace_async_begin()
202 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) argument
207 atrace_async_end_body(name, cookie); in atrace_async_end()
219 #define ATRACE_ASYNC_FOR_TRACK_BEGIN(track_name, name, cookie) \ argument
233 #define ATRACE_ASYNC_FOR_TRACK_END(track_name, cookie) \ argument
234 atrace_async_for_track_end(ATRACE_TAG, track_name, cookie)
236 int32_t cookie) { in atrace_async_for_track_end() argument
[all …]
/aosp14/system/core/libcutils/include_outside_system/cutils/
H A Dtrace.h187 #define ATRACE_ASYNC_BEGIN(name, cookie) \ argument
188 atrace_async_begin(ATRACE_TAG, name, cookie)
190 int32_t cookie) in atrace_async_begin() argument
194 atrace_async_begin_body(name, cookie); in atrace_async_begin()
202 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) argument
207 atrace_async_end_body(name, cookie); in atrace_async_end()
219 #define ATRACE_ASYNC_FOR_TRACK_BEGIN(track_name, name, cookie) \ argument
233 #define ATRACE_ASYNC_FOR_TRACK_END(track_name, cookie) \ argument
234 atrace_async_for_track_end(ATRACE_TAG, track_name, cookie)
236 int32_t cookie) { in atrace_async_for_track_end() argument
[all …]
/aosp14/frameworks/base/core/java/android/content/
H A DAsyncQueryHandler.java56 public Object cookie; field in AsyncQueryHandler.WorkerArgs
164 public void startQuery(int token, Object cookie, Uri uri, in startQuery() argument
178 args.cookie = cookie; in startQuery()
207 public final void startInsert(int token, Object cookie, Uri uri, in startInsert() argument
216 args.cookie = cookie; in startInsert()
233 public final void startUpdate(int token, Object cookie, Uri uri, in startUpdate() argument
242 args.cookie = cookie; in startUpdate()
261 public final void startDelete(int token, Object cookie, Uri uri, in startDelete() argument
270 args.cookie = cookie; in startDelete()
299 protected void onInsertComplete(int token, Object cookie, Uri uri) { in onInsertComplete() argument
[all …]
/aosp14/frameworks/base/core/java/android/os/
H A DTrace.java142 String trackName, String name, int cookie); in nativeAsyncTraceForTrackBegin() argument
145 String trackName, int cookie); in nativeAsyncTraceForTrackEnd() argument
266 nativeAsyncTraceBegin(traceTag, methodName, cookie); in asyncTraceBegin()
288 nativeAsyncTraceEnd(traceTag, methodName, cookie); in asyncTraceEnd()
368 @NonNull String trackName, @NonNull String methodName, int cookie) { in asyncTraceForTrackBegin() argument
392 @NonNull String trackName, int cookie) { in asyncTraceForTrackEnd() argument
394 nativeAsyncTraceForTrackEnd(traceTag, trackName, cookie); in asyncTraceForTrackEnd()
481 public static void beginAsyncSection(@NonNull String methodName, int cookie) { in beginAsyncSection() argument
482 asyncTraceBegin(TRACE_TAG_APP, methodName, cookie); in beginAsyncSection()
493 public static void endAsyncSection(@NonNull String methodName, int cookie) { in endAsyncSection() argument
[all …]
H A DHwRemoteBinder.java48 public native boolean linkToDeath(DeathRecipient recipient, long cookie); in linkToDeath() argument
64 private static final void sendDeathNotice(DeathRecipient recipient, long cookie) { in sendDeathNotice() argument
65 recipient.serviceDied(cookie); in sendDeathNotice()
/aosp14/frameworks/base/core/jni/
H A Dandroid_os_Trace.cpp79 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceBegin() argument
80 withString(env, nameStr, [tag, cookie](const char* str) { in android_os_Trace_nativeAsyncTraceBegin()
81 atrace_async_begin(tag, str, cookie); in android_os_Trace_nativeAsyncTraceBegin()
86 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceEnd() argument
87 withString(env, nameStr, [tag, cookie](const char* str) { in android_os_Trace_nativeAsyncTraceEnd()
88 atrace_async_end(tag, str, cookie); in android_os_Trace_nativeAsyncTraceEnd()
93 jlong tag, jstring trackStr, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceForTrackBegin() argument
96 atrace_async_for_track_begin(tag, track, name, cookie); in android_os_Trace_nativeAsyncTraceForTrackBegin()
102 jlong tag, jstring trackStr, jint cookie) { in android_os_Trace_nativeAsyncTraceForTrackEnd() argument
103 withString(env, trackStr, [tag, cookie](const char* track) { in android_os_Trace_nativeAsyncTraceForTrackEnd()
[all …]
/aosp14/system/core/libcutils/
H A Dtrace-dev.cpp82 void atrace_async_begin_body(const char* name, int32_t cookie) in atrace_async_begin_body() argument
84 WRITE_MSG("S|%d|", "|%" PRId32, "", name, cookie); in atrace_async_begin_body()
87 void atrace_async_end_body(const char* name, int32_t cookie) in atrace_async_end_body() argument
89 WRITE_MSG("F|%d|", "|%" PRId32, "", name, cookie); in atrace_async_end_body()
92 void atrace_async_for_track_begin_body(const char* track_name, const char* name, int32_t cookie) { in atrace_async_for_track_begin_body() argument
93 WRITE_MSG("G|%d|", "|%" PRId32, track_name, name, cookie); in atrace_async_for_track_begin_body()
96 void atrace_async_for_track_end_body(const char* track_name, int32_t cookie) { in atrace_async_for_track_end_body() argument
97 WRITE_MSG("H|%d|", "|%" PRId32, "", track_name, cookie); in atrace_async_for_track_end_body()
H A Dtrace-container.cpp208 void atrace_async_begin_body(const char* name, int32_t cookie) in atrace_async_begin_body() argument
211 WRITE_MSG_IN_CONTAINER("S", "|", "|%d", "", name, cookie); in atrace_async_begin_body()
217 WRITE_MSG("S|%d|", "|%" PRId32, "", name, cookie); in atrace_async_begin_body()
220 void atrace_async_end_body(const char* name, int32_t cookie) in atrace_async_end_body() argument
223 WRITE_MSG_IN_CONTAINER("F", "|", "|%d", "", name, cookie); in atrace_async_end_body()
229 WRITE_MSG("F|%d|", "|%" PRId32, "", name, cookie); in atrace_async_end_body()
234 WRITE_MSG_IN_CONTAINER("G", "|", "|%d", track_name, name, cookie); in atrace_async_for_track_begin_body()
240 WRITE_MSG("G|%d|", "|%" PRId32, track_name, name, cookie); in atrace_async_for_track_begin_body()
243 void atrace_async_for_track_end_body(const char* track_name, int32_t cookie) { in atrace_async_for_track_end_body() argument
245 WRITE_MSG_IN_CONTAINER("H", "|", "|%d", "", track_name, cookie); in atrace_async_for_track_end_body()
[all …]
H A Dproperties.cpp100 void (*callback)(const char* name, const char* value, void* cookie);
101 void* cookie; member
106 data->callback(name, value, data->cookie); in trampoline()
113 int property_list(void (*fn)(const char* name, const char* value, void* cookie), void* cookie) { in property_list() argument
114 callback_data data = {fn, cookie}; in property_list()
/aosp14/frameworks/base/libs/androidfw/
H A DZipFileRO.cpp43 void *cookie; member in _ZipEntryRO
45 _ZipEntryRO() : cookie(NULL) {} in _ZipEntryRO()
48 EndIteration(cookie); in ~_ZipEntryRO()
145 bool ZipFileRO::startIteration(void** cookie) { in startIteration() argument
146 return startIteration(cookie, NULL, NULL); in startIteration()
152 int32_t error = StartIteration(mHandle, &(ze->cookie), in startIteration()
161 *cookie = ze; in startIteration()
165 ZipEntryRO ZipFileRO::nextEntry(void* cookie) in nextEntry() argument
167 _ZipEntryRO* ze = reinterpret_cast<_ZipEntryRO*>(cookie); in nextEntry()
180 void ZipFileRO::endIteration(void* cookie) in endIteration() argument
[all …]
H A DAssetManager2.cpp66 ApkAssetsCookie cookie; member
299 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in GetStringPoolForCookie()
603 if (cookie < 0 || static_cast<size_t>(cookie) >= apk_assets_.size()) { in OpenNonAsset()
689 result->cookie = id_map.cookie; in FindEntry()
736 result->cookie = overlay_result->cookie; in FindEntry()
754 last_resolution_.cookie = result->cookie; in FindEntry()
917 const ApkAssetsCookie cookie = last_resolution_.cookie; in GetLastResourceResolution() local
1181 new_entry->cookie = entry->cookie; in GetBag()
1253 new_entry->cookie = entry->cookie; in GetBag()
1296 new_entry->cookie = entry->cookie; in GetBag()
[all …]
/aosp14/frameworks/base/telecomm/java/android/telecom/
H A DCallerInfoAsyncQuery.java75 public void onQueryComplete(int token, Object cookie, CallerInfo ci); in onQueryComplete() argument
89 public Object cookie; field in CallerInfoAsyncQuery.CookieWrapper
183 CookieWrapper cw = (CookieWrapper) args.cookie; in handleMessage()
232 CookieWrapper cw = (CookieWrapper) args.cookie; in handleGeoDescription()
278 CookieWrapper cw = (CookieWrapper) cookie; in onQueryComplete()
406 OnQueryCompleteListener listener, Object cookie) { in startQuery() argument
416 cw.cookie = cookie; in startQuery()
436 OnQueryCompleteListener listener, Object cookie) { in startQuery() argument
459 Log.d(LOG_TAG, "- cookie: " + cookie); in startQuery()
480 cw.cookie = cookie; in startQuery()
[all …]
/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DAssetManager2.h59 ApkAssetsCookie cookie; member
128 const ApkAssetsPtr& GetApkAssets(ApkAssetsCookie cookie) const;
135 const ResStringPool* GetStringPoolForCookie(ApkAssetsCookie cookie) const;
194 std::unique_ptr<Asset> Open(const std::string& filename, ApkAssetsCookie cookie,
213 std::unique_ptr<Asset> OpenNonAsset(const std::string& filename, ApkAssetsCookie cookie,
247 cookie(entry.cookie), data(entry.value.data), type(entry.value.dataType), in SelectedValue()
251 ApkAssetsCookie cookie = kInvalidCookie; member
272 cookie(cookie), data(value_data), type(value_type), flags(type_flags), in SelectedValue()
376 ApkAssetsCookie cookie; member
501 ApkAssetsCookie cookie = kInvalidCookie; member
[all …]
H A DZipFileRO.h103 bool startIteration(void** cookie);
104 bool startIteration(void** cookie, const char* prefix, const char* suffix);
110 ZipEntryRO nextEntry(void* cookie);
112 void endIteration(void* cookie);
H A DAssetManager.h94 bool addAssetPath(const String8& path, int32_t* cookie,
96 bool addOverlayPath(const String8& path, int32_t* cookie);
109 bool addAssetFd(int fd, const String8& debugPathName, int32_t* cookie,
125 int32_t nextAssetPath(const int32_t cookie) const;
131 String8 getAssetPath(const int32_t cookie) const;
166 Asset* openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode);
180 AssetDir* openNonAssetDir(const int32_t cookie, const char* dirName);
/aosp14/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnection.java264 mRecentOperations.endOperation(cookie); in open()
292 mRecentOperations.endOperation(cookie); in dispose()
698 mRecentOperations.endOperation(cookie); in prepare()
741 mRecentOperations.endOperation(cookie); in execute()
786 mRecentOperations.endOperation(cookie); in executeForLong()
831 mRecentOperations.endOperation(cookie); in executeForString()
879 mRecentOperations.endOperation(cookie); in executeForBlobFileDescriptor()
973 mRecentOperations.endOperation(cookie); in executeForLastInsertedRowId()
1549 public void endOperation(int cookie) { in endOperation() argument
1552 logOperationLocked(cookie, null); in endOperation()
[all …]
/aosp14/frameworks/base/native/android/
H A Dtrace.cpp32 void ATrace_beginAsyncSection(const char* sectionName, int32_t cookie) { in ATrace_beginAsyncSection() argument
33 atrace_async_begin(ATRACE_TAG_APP, sectionName, cookie); in ATrace_beginAsyncSection()
36 void ATrace_endAsyncSection(const char* sectionName, int32_t cookie) { in ATrace_endAsyncSection() argument
37 atrace_async_end(ATRACE_TAG_APP, sectionName, cookie); in ATrace_endAsyncSection()
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/
H A DBiometricSensor.java109 long requestId, int cookie, boolean allowBackgroundAuthentication, in goToStateWaitingForCookie() argument
112 mCookie = cookie; in goToStateWaitingForCookie()
119 void goToStateCookieReturnedIfCookieMatches(int cookie) { in goToStateCookieReturnedIfCookieMatches() argument
120 if (cookie == mCookie) { in goToStateCookieReturnedIfCookieMatches()
121 Slog.d(TAG, "Sensor(" + id + ") matched cookie: " + cookie); in goToStateCookieReturnedIfCookieMatches()
139 void goToStoppedStateIfCookieMatches(int cookie, int error) { in goToStoppedStateIfCookieMatches() argument
140 if (cookie == mCookie) { in goToStoppedStateIfCookieMatches()
/aosp14/frameworks/base/libs/androidfw/tests/
H A DIdmap_test.cpp71 asset_manager.GetApkAssets(value.cookie)->GetLoadedArsc()->GetStringPool(); in GetStringFromApkAssets()
83 ASSERT_EQ(value->cookie, 2U); in TEST_F()
94 ASSERT_EQ(value->cookie, 0U); in TEST_F()
105 ASSERT_EQ(value->cookie, 2U); in TEST_F()
116 ASSERT_EQ(value->cookie, 2U); in TEST_F()
127 ASSERT_EQ(value->cookie, 2U); in TEST_F()
138 ASSERT_EQ(value->cookie, 2U); in TEST_F()
149 ASSERT_EQ(value->cookie, 2U); in TEST_F()
153 auto asset = asset_manager.OpenNonAsset("res/layout/hello_view.xml", value->cookie, in TEST_F()
155 auto dynamic_ref_table = asset_manager.GetDynamicRefTableForCookie(value->cookie); in TEST_F()
[all …]
H A DAssetManager2_test.cpp123 EXPECT_EQ(0, value->cookie); in TEST_F()
147 EXPECT_EQ(1, value->cookie); in TEST_F()
168 EXPECT_EQ(2, value->cookie); in TEST_F()
174 EXPECT_EQ(1, value->cookie); in TEST_F()
183 EXPECT_EQ(2, value->cookie); in TEST_F()
189 EXPECT_EQ(0, value->cookie); in TEST_F()
494 value.cookie = 1; in TEST_F()
500 EXPECT_EQ(1, value.cookie); in TEST_F()
516 EXPECT_EQ(0, value.cookie); in TEST_F()
549 EXPECT_EQ(-1, value.cookie); in TEST_F()
[all …]
/aosp14/frameworks/base/core/java/android/content/res/
H A DAssetManager.java555 final int cookie = nativeGetResourceValue( in getResourceValue() local
557 if (cookie <= 0) { in getResourceValue()
606 if (cookie <= 0) { in getResourceBagText()
615 return getPooledStringForCookie(cookie, outValue.data); in getResourceBagText()
690 int cookie = rawInfoArray[i]; in getResourceTextArray() local
692 retArray[j] = (index >= 0 && cookie > 0) in getResourceTextArray()
740 if (cookie <= 0) { in getThemeValue()
869 CharSequence getPooledStringForCookie(int cookie, int id) { in getPooledStringForCookie() argument
871 return getApkAssets()[cookie - 1].getStringFromPool(id); in getPooledStringForCookie()
1008 return openNonAsset(cookie, fileName, ACCESS_STREAMING); in openNonAsset()
[all …]
/aosp14/frameworks/base/core/java/android/view/textservice/
H A DTextInfo.java51 public TextInfo(String text, int cookie, int sequenceNumber) { in TextInfo() argument
52 this(text, 0, getStringLengthOrZero(text), cookie, sequenceNumber); in TextInfo()
68 public TextInfo(CharSequence charSequence, int start, int end, int cookie, int sequenceNumber) { in TextInfo() argument
83 mCookie = cookie; in TextInfo()
H A DSuggestionsInfo.java108 public SuggestionsInfo(@ResultAttrs int suggestionsAttributes, String[] suggestions, int cookie, in SuggestionsInfo() argument
118 mCookie = cookie; in SuggestionsInfo()
151 public void setCookieAndSequence(int cookie, int sequence) { in setCookieAndSequence() argument
152 mCookie = cookie; in setCookieAndSequence()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/
H A DBiometricSchedulerOperationTest.java103 final int cookie = 200; in testStartWithCookie() local
104 when(mInterruptableClientMonitor.getCookie()).thenReturn(cookie); in testStartWithCookie()
107 assertThat(mInterruptableOperation.isReadyToStart(mOnStartCallback)).isEqualTo(cookie); in testStartWithCookie()
113 final boolean started = mInterruptableOperation.startWithCookie(mOnStartCallback, cookie); in testStartWithCookie()
142 final int cookie = 5; in testSecondStartWithCookieCrashesWhenDebuggable() local
144 when(mInterruptableClientMonitor.getCookie()).thenReturn(cookie); in testSecondStartWithCookieCrashesWhenDebuggable()
147 final boolean started = mInterruptableOperation.startWithCookie(mOnStartCallback, cookie); in testSecondStartWithCookieCrashesWhenDebuggable()
151 () -> mInterruptableOperation.startWithCookie(mOnStartCallback, cookie)); in testSecondStartWithCookieCrashesWhenDebuggable()
156 final int cookie = 5; in testSecondStartWithCookieFailsNicelyWhenNotDebuggable() local
158 when(mInterruptableClientMonitor.getCookie()).thenReturn(cookie); in testSecondStartWithCookieFailsNicelyWhenNotDebuggable()
[all …]
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/util/
H A DTraceUtils.kt80 val cookie = lastCookie.incrementAndGet() regex
81 Trace.asyncTraceForTrackBegin(Trace.TRACE_TAG_APP, trackName, method, cookie)
85 Trace.asyncTraceForTrackEnd(Trace.TRACE_TAG_APP, trackName, cookie)

123456