Lines Matching defs:code

128 struct profile { int32 code; int32 count; bigtime_t time; };
232 sMessageProfile[i].code = i;
242 "per call)\n", string_for_message_code(p->code), p->count, p->time / 1000000.0,
597 ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver& link)
599 switch (code) {
881 // comment this code for the time being, as some apps rely
1024 BMessage message(code);
1185 debug_printf("ServerWindow %s received unexpected code - "
1187 Title(), string_for_message_code(code));
1195 _DispatchViewMessage(code, link);
1205 ServerWindow::_DispatchViewMessage(int32 code,
1208 if (_DispatchPictureMessage(code, link))
1211 switch (code) {
2457 // The drawing code handles allocation failures using exceptions;
2460 _DispatchViewDrawingMessage(code, link);
2482 ServerWindow::_DispatchViewDrawingMessage(int32 code,
2488 "message %" B_PRId32 " that needs a reply!\n", code);
2509 if (fCurrentDrawingRegion.CountRects() <= 0 && code != AS_VIEW_END_LAYER) {
2532 switch (code) {
2677 drawingEngine->DrawArc(r, angle, span, code == AS_FILL_ARC);
2718 drawingEngine->DrawBezier(pts, code == AS_FILL_BEZIER);
2752 drawingEngine->DrawEllipse(rect, code == AS_FILL_ELLIPSE);
2790 code == AS_FILL_ROUNDRECT);
2834 drawingEngine->DrawTriangle(pts, rect, code == AS_FILL_TRIANGLE);
2871 if (code == AS_STROKE_POLYGON)
2884 code == AS_FILL_POLYGON, isClosed && pointCount > 2);
2949 ptList, code == AS_FILL_SHAPE, screenOffset,
3093 if (code == AS_DRAW_STRING_WITH_DELTA) {
3199 debug_printf("ServerWindow %s received unexpected code: %s\n",
3200 Title(), string_for_message_code(code));
3215 ServerWindow::_DispatchPictureMessage(int32 code, BPrivate::LinkReceiver& link)
3221 switch (code) {
3418 picture->WriteDrawRect(rect, code == AS_FILL_RECT);
3444 picture->WriteDrawRoundRect(rect, radii, code == AS_FILL_ROUNDRECT);
3453 picture->WriteDrawEllipse(rect, code == AS_FILL_ELLIPSE);
3470 code == AS_FILL_ARC);
3489 true, code == AS_FILL_TRIANGLE);
3498 const bool fill = (code == AS_FILL_POLYGON);
3501 if (code == AS_STROKE_POLYGON)
3521 picture->WriteDrawBezier(points, code == AS_FILL_BEZIER);
3535 picture->WriteDrawRectGradient(rect, *gradient, code == AS_FILL_RECT_GRADIENT);
3556 code == AS_FILL_ARC_GRADIENT);
3572 picture->WriteDrawBezierGradient(points, *gradient, code == AS_FILL_BEZIER_GRADIENT);
3586 picture->WriteDrawEllipseGradient(rect, *gradient, code == AS_FILL_ELLIPSE_GRADIENT);
3604 picture->WriteDrawRoundRectGradient(rect, radii, *gradient, code == AS_FILL_ROUNDRECT_GRADIENT);
3627 true, *gradient, code == AS_FILL_TRIANGLE_GRADIENT);
3637 const bool fill = (code == AS_FILL_POLYGON_GRADIENT);
3640 if (code == AS_STROKE_POLYGON)
3688 const bool fill = (code == AS_FILL_SHAPE_GRADIENT);
3774 if (code == AS_VIEW_SET_HIGH_COLOR) {
3796 if (code != AS_DRAW_STRING_WITH_DELTA) {
3897 ptList, code == AS_FILL_SHAPE);
4161 int32 code;
4162 status_t status = receiver.GetNextMessage(code);
4191 if (code == AS_DELETE_WINDOW || code == kMsgQuitLooper) {
4194 "code\n", Title()));
4196 if (code == AS_DELETE_WINDOW) {
4213 bool needsAllWindowsLocked = _MessageNeedsAllWindowsLocked(code);
4251 _DispatchMessage(code, receiver);
4254 if (code >= 0 && code < AS_LAST_CODE) {
4256 atomic_add(&sMessageProfile[code].count, 1);
4258 atomic_add64(&sMessageProfile[code].time, diff);
4260 sMessageProfile[code].time += diff;
4264 B_PRId64 " usecs\n", Title(), code, diff);
4282 status_t status = receiver.GetNextMessage(code);
4440 ServerWindow::_MessageNeedsAllWindowsLocked(uint32 code) const
4442 switch (code) {