You would be stopping over in Shanghai between Tokyo and Los Angeles, correct? That would qualify for the 144 hour rule assuming the flights are directly between each of those cities, as in Tokyo>Shanghai>Los Angeles. All they care about is that you depart (or "transit" in this case) to a third...