In this work, we consider the exponential stability of piecewise affine systems with time- And state-dependent delay, and delayed-state-dependent switching. The stability analysis is based on the use of Lyapunov-Krasovskii functionals, and is divided into two parts. First, global stability conditions are proposed in the case of systems with (state-independent) time-varying delay. Then, local stability conditions are derived in the case of systems with time- And state-dependent delay. In the latter case, estimations of the domain of attraction are also proposed. The theoretical results are applied to the congestion control problem, which can be modelled by such systems.